Keyword

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

  • Ed Morton
  • Ed Morton's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #175787 by Ed Morton
Since upgrading to K2 version 2.10.3 and Joomla version 3.9.18 I get this warning towards the bottom every page on my site that has a K2 article:

Warning: count(): Parameter must be an array or an object that implements Countable in /home/tourna/public_html/templates/youresponsecopy/html/com_k2/default/item.php on line 238

See for example tournamart.com/events/past-events/sas-easter-futsal-tournament-2017. Is there a new K2 version coming or a fix available?

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

More
4 years 6 months ago #175790 by JoomlaWorks
You need to slightly update your K2 template overrides for PHP 7.

The issue has been discussed extensively here: www.joomlaworks.net/forum/k2-en/51050-warning-count-parameter-must-be-an-array-or-an-object-that-implements

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

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

  • Ed Morton
  • Ed Morton's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #175792 by Ed Morton
That fixed it, thanks.

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

More
4 years 6 months ago #175793 by JoomlaWorks
You're welcome.

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