Keyword

Error after upgrade PHP to version 7.2

More
1 year 5 days 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
1 year 4 days 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
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
1 year 5 hours 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
11 months 4 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
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
11 months 4 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.

More
1 month 2 weeks ago #173991 by John
John replied the topic: Error after upgrade PHP to version 7.2
Hi Everyone I tried to install the github package but still not working the error still on the end of every article

www.new.pickuptrucks.de/berichte/item/217-road-ranger

Is there anyone can help me for this? I am using 7.2 php version then when I tried to which to 7.1 its working fine but I want to use 7.2 version so I don't have any issue on the future

Thanks

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
1 month 2 weeks ago #174019 by Fotis
Fotis replied the topic: Error after upgrade PHP to version 7.2
Your page is currently inaccessible.

Just make sure your template overrides are updated wherever you have a "count(...)" reference. Just compare it to the source K2 template files, it's not difficult.

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