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
1 month 1 day ago #173310 by Everybody Can Dive
Everybody Can Dive created the topic: Warning: count(): Parameter must be an array or an object that implements
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.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 12 hours ago #173313 by Fotis
Fotis replied the topic: Warning: count(): Parameter must be an array or an object that implements
Try v2.10 (dev) from github.com/getk2/k2/archive/master.zip please.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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
1 month 27 minutes ago #173354 by Everybody Can Dive
Everybody Can Dive replied the topic: Warning: count(): Parameter must be an array or an object that implements
Thank you so much. !!! It solves the problem.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
4 weeks 2 days ago #173359 by Fotis
Fotis replied the topic: Warning: count(): Parameter must be an array or an object that implements
Great :)

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

More
2 weeks 2 days ago #173466 by yarak
yarak replied the topic: Warning: count(): Parameter must be an array or an object that implements
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.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 2 days ago #173467 by Fotis
Fotis replied the topic: Warning: count(): Parameter must be an array or an object that implements
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.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

More
2 weeks 2 days ago #173468 by yarak
yarak replied the topic: Warning: count(): Parameter must be an array or an object that implements
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.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 2 days ago #173469 by Fotis
Fotis replied the topic: Warning: count(): Parameter must be an array or an object that implements
/components/com_k2/templates/default/item.php is the actual location.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

More
1 week 5 days ago #173498 by yarak
yarak replied the topic: Warning: count(): Parameter must be an array or an object that implements
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.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 5 days ago #173504 by Fotis
Fotis replied the topic: Warning: count(): Parameter must be an array or an object that implements
Correct.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum