Keyword

Error after upgrade PHP to version 7.2

More
6 months 1 day ago #170954 by Igor
Igor created the topic: Error after upgrade PHP to version 7.2
Hello,
after upgrade PHP to 7.2 I receive this error message when open all article:
Warning: count(): Parameter must be an array or an object that implements Countable in /home/editfi5/public_html/editnews/components/com_k2/models/item.php on line 763

Before and after article like here:
editfiume.info/editnews/politica/3632-il-fronte-dei-lavoratori-punta-in-alto

What I can do?

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
6 months 1 day ago #170955 by Mohamed Abdelaziz
Mohamed Abdelaziz replied the topic: Error after upgrade PHP to version 7.2
Hi Igor,

This is just a warning, not error.
As a quick solution, go to Global Configuration > Server
Set Error Reporting to None

This will hide the message.

Then, you can try to update K2 to the latest dev release, this warning should have been resolved.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
5 months 3 weeks ago #170986 by Fotis
Fotis replied the topic: Error after upgrade PHP to version 7.2
This has been fixed in K2 v2.9.1. Simply install on top from: github.com/getk2/k2/archive/master.zip

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
5 months 3 weeks ago #171010 by Igor
Igor replied the topic: Error after upgrade PHP to version 7.2
Thanks to all. In the end I put 2.9.1 and all is fine

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
5 months 3 weeks ago #171015 by Fotis
Fotis replied the topic: Error after upgrade PHP to version 7.2
Great! If you spot anything else, let me know.

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