IMPORTANT MESSAGE REGARDING THE FORUM

As you may already know, the JoomlaWorks Forum is powered by Kunena (the only decent forum component for Joomla).

Unfortunately, the latest update for Kunena has seemingly broken all code snippets (old and new) in the forum.

Until this message is removed, please paste any code as regular text - in other words, don't use the [code]...[/code] tags in Kunena's post editor.

Keyword

Warning: count(): Parameter must be an array or an object that implements

  • Everybody Can Dive
  • Everybody Can Dive's Avatar Topic Author
  • Offline
  • New Member
More
2 years 1 month ago #173310 by Everybody Can Dive
I installed the new K2 version 9 and now i get every time this. How can i solve the problem. Can someone help me out please
Attachments:

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #173313 by Fotis

Please Log in or Create an account to join the conversation.

  • Everybody Can Dive
  • Everybody Can Dive's Avatar Topic Author
  • Offline
  • New Member
More
2 years 1 month ago #173354 by Everybody Can Dive
Thank you so much. !!! It solves the problem.

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #173359 by Fotis

Please Log in or Create an account to join the conversation.

More
2 years 4 weeks ago #173466 by yarak
I have same I guess:
Warning: count(): Parameter must be an array or an object that implements Countable in /home/rapigukk/public_html/templates/bemax/html/com_k2/blog-list/item.php on line 228

The master file didnt helped...any idea ?

Please Log in or Create an account to join the conversation.

More
2 years 4 weeks ago #173467 by Fotis
That's because your overrides for K2 in your template require some changes. Just compare the files with errors with the source K2 template files and pass along any changes to the ones in your Joomla template.

Please Log in or Create an account to join the conversation.

More
2 years 4 weeks ago #173468 by yarak
You've got me stumped.

So I should check from my template this:
bemax/html/com_k2/blog-list/item.php on line 228

with the source K2 template. right ?

I extracted the zip file github.com/getk2/k2/archive/master.zip and checking the folder structure.
Is this in components/com_k2/.......... inside ?

Appreciate your help

Please Log in or Create an account to join the conversation.

More
2 years 3 weeks ago #173469 by Fotis
/components/com_k2/templates/default/item.php is the actual location.

Please Log in or Create an account to join the conversation.

More
2 years 3 weeks ago #173498 by yarak
Fotis, okey in Summary:

On the homepage is the warning:
Warning: count(): Parameter must be an array or an object that implements Countable in /home/rapigukk/public_html/templates/bemax/html/com_k2/blog-list/item.php on line 228

This is the line 228 on item.php from my template (downloaded):
<?php if($this->item->params->get('itemExtraFields') && count($this->item->extra_fields)): ?>

and in the /components/com_k2/templates/default/item.php is:
<?php if($this->item->params->get('itemExtraFields') && isset($this->item->extra_fields) && count($this->item->extra_fields)): ?>

My questions:
Shall I change from master-template with this on my page ?

Thank you for your help

Please Log in or Create an account to join the conversation.

More
2 years 3 weeks ago #173504 by Fotis

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum