Keyword

K2 - PHP-Probleme <7.1.x

  • ANDweb
  • ANDweb's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 month ago - 5 years 1 month ago #173392 by ANDweb
K2 - PHP-Probleme <7.1.x was created by ANDweb
Hallo zusammen,
ich habe mit den PHP-Versionen neuer 7.1.x Probleme bei K2. Wenn ich die Details eines Beitrages aufrufe, erscheint oberhalb nachstehende Fehlermeldung:

Warning: count(): Parameter must be an array or an object that implements Countable in /pages/xxxx/xxx/xxxxxx/xxxxx/htdocs/webseiten/natur/components/com_k2/models/item.

In einem anderen Beitrag wurde von Fotis auf die DEV-Version verwiesen: github.com/getk2/k2/archive/master.zip
Löst die auch mein Problem? Wie müsste ich die installieren?

Danke und Grüße
Uli
Last edit: 5 years 1 month ago by ANDweb.

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

More
5 years 1 month ago #173395 by JoomlaWorks
Replied by JoomlaWorks on topic K2 - PHP-Probleme <7.1.x
Yes, it does solve such issues. Simply install the zip from GitHub on top of v2.9.0.

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

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

  • ANDweb
  • ANDweb's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 month ago #173402 by ANDweb
Replied by ANDweb on topic K2 - PHP-Probleme <7.1.x
Thx Fotis.
Problem is solved :)

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

More
5 years 4 weeks ago #173407 by JoomlaWorks
Replied by JoomlaWorks on topic K2 - PHP-Probleme <7.1.x
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.

  • ANDweb
  • ANDweb's Avatar Topic Author
  • Offline
  • New Member
More
5 years 2 weeks ago #173526 by ANDweb
Replied by ANDweb on topic K2 - PHP-Probleme <7.1.x
Hi,
ich meinte, dass das Problem gelöst war ... zumindest nach dem Update auf Joomla 3.9.13 habe ich die Fehlermeldung wieder, nur nicht oberhalb eines Blogbeitrages sondern am Ende (war vielleich zuvor auch schon ...):

Warning: count(): Parameter must be an array or an object that implements Countable in /pages/xxx/xxx/xxxxxxx/xxxx/htdocs/webseiten/natur/templates/rt_chimera/html/com_k2/naturnahes_leben/item.php on line 248

Die Fehlermeldung weicht aber auch von der letzten ab. Das master.zip habe ich nochmals installiert (falls neue Version), es hat aber den gewünschten Erfolg nicht gebracht.

Grüße
Uli

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

More
5 years 2 weeks ago #173535 by JoomlaWorks
Replied by JoomlaWorks on topic K2 - PHP-Probleme <7.1.x
Your overrides need to be updated. In the case of /pages/xxx/xxx/xxxxxxx/xxxx/htdocs/webseiten/natur/templates/rt_chimera/html/com_k2/naturnahes_leben/item.php, you probably need to add an "isset($variable) &&" before the "count()" declaration. See how it's done in /components/com_k2/templates/default/item.php.

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
5 years 2 weeks ago #173538 by JoomlaWorks
Replied by JoomlaWorks on topic K2 - PHP-Probleme <7.1.x

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

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

  • ANDweb
  • ANDweb's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 week ago #173543 by ANDweb
Replied by ANDweb on topic K2 - PHP-Probleme <7.1.x
Thank you Fotis, also for the link with the summary of Yarak.
Problem solved.

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

More
5 years 1 week ago #173545 by JoomlaWorks
Replied by JoomlaWorks on topic K2 - PHP-Probleme <7.1.x
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.


Powered by Kunena Forum