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
4 years 5 months 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
4 years 5 months ago #173313 by JoomlaWorks
Try v2.10 (dev) from github.com/getk2/k2/archive/master.zip please.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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
4 years 5 months 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
4 years 5 months ago #173359 by JoomlaWorks
Great :)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
4 years 4 months 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
4 years 4 months ago #173467 by JoomlaWorks
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.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
4 years 4 months 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
4 years 4 months ago #173469 by JoomlaWorks
/components/com_k2/templates/default/item.php is the actual location.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
4 years 4 months 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
4 years 4 months ago #173504 by JoomlaWorks
Correct.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum