Keyword

Parameter must be an array

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
8 months 1 week ago #171200 by Fotis
Fotis replied the topic: Parameter must be an array
This is your template's override that conflicts with PHP 7.x, not K2. Simply upgrade your overrides like the K2 source template files.

github.com/getk2/k2/blob/master/components/com_k2/templates/default/item.php

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 month 2 weeks ago #173071 by trogladyte
trogladyte replied the topic: Parameter must be an array
I just upgraded my server from PHP7.1.31 to PHP7.3.x yesterday as I was getting EOL warnings from Joomla. Since that, I can confirm that this K2 warning has now appeared,

Warning: count(): Parameter must be an array or an object that implements Countable in /home/tastewas/public_html/components/com_k2/models/item.php on line 763

While I understand that it's only a warning and only appears if the error reporting in Joomla is set to anything other than none or Sys Def, and it doesn't affect site operation, does this not mean that the K2 code isn't completely in line with current PHP versions?

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 2 weeks ago #173072 by Fotis
Fotis replied the topic: Parameter must be an array
Please upgrade to K2 v2.10.0 (dev) from github.com/getk2/k2/archive/master.zip - these warnings are resolved there.

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.

Moderators: william white

Powered by Kunena Forum