Keyword

error with extra fields v2.9 php 7.2

  • Brigitte Kuschel
  • Brigitte Kuschel's Avatar Topic Author
  • Offline
  • New Member
More
1 week 13 hours ago #170856 by Brigitte Kuschel
Brigitte Kuschel created the topic: error with extra fields v2.9 php 7.2
Hello,

i love the extra fields of k2.

i upgrade to joomla 3.9.1 and newest version k2 v2.9 no problem at all.
i installed the newest simple image gallery pro too.

but set server to php 7.2 i have an error with it (it works fine on php 7.1.)

Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/www/nbm/administrator/components/com_k2/views/item/view.html.php on line 442

and at the extra file tab

Warning: count(): Parameter must be an array or an object that implements Countable in /home/www/nbm/administrator/components/com_k2/models/extrafield.php on line 211


The error ist only at new items. At old items, there is no error.

at frontend there is no error

Can somebody please help me?

THank you very much.

Brigitte

Attachments:

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
6 days 12 hours ago #170861 by Mohamed Abdelaziz
Mohamed Abdelaziz replied the topic: error with extra fields v2.9 php 7.2
Hello

This is not an error, it is only a tip to enhance the code.

To hide these messages, got Global Configuration ==> Server and set Error Reporting to None

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
6 days 7 hours ago #170867 by Fotis
Fotis replied the topic: error with extra fields v2.9 php 7.2
Most of these warnings in PHP 7.2 have been corrected in K2 v2.9.1 (dev) which you can install directly 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.

  • Brigitte Kuschel
  • Brigitte Kuschel's Avatar Topic Author
  • Offline
  • New Member
More
5 days 10 hours ago #170881 by Brigitte Kuschel
Brigitte Kuschel replied the topic: error with extra fields v2.9 php 7.2
Thank you very much. This worked fine.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
5 days 4 hours ago #170889 by Fotis
Fotis replied the topic: error with extra fields v2.9 php 7.2
You're welcome :)


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