Error PHP 7.2 array warnings Issue Issue

charles
charles
Offline
0
Updated PHP to 7.2 and now I am getting the following error and would like to know how to fix it without lower PHP!

Warning: count(): Parameter must be an array or an object that implements Countable in /home/xxxxx/xxxxxxx/components/com_muscol/models/artist.php on line 170


Thanks
Responses (5)
  • Accepted Answer

    Saturday, September 22 2018, 08:45 AM - #Permalink
    0
    I'll take a look at this.
    in the meantime, you can set your error reporting to "simple" in joomla global config.
    The reply is currently minimized Show
  • Accepted Answer

    charles
    charles
    Offline
    Sunday, September 23 2018, 10:29 PM - #Permalink
    0
    From what I am learning it seem to be a problem with a number of component, Module and Plugins thats having problem with Php 7.2...

    Joomla recommends updating php to 7.1 or above so when I updated to php 7.2 this is when I started to get the above error. I have since updated all my components, modules and plugins. But music-collection is still at 3.0.6 I believe and haven't been updated in the last 5 months and there have been 3 updates to Joomla.

    So I look forward for the next update and new features for Music-Collection...
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, February 06 2020, 06:12 AM - #Permalink
    0
    charles wrote:

    Updated PHP to 7.2 and now I am getting the following error and would like to know how to fix it without lower PHP!

    Warning: count(): Parameter must be an array or an object that implements Countable in /home/xxxxx/xxxxxxx/components/com_muscol/models/artist.php on line 170


    Thanks


    I have the same error. Fresch install Joomla 3.9.15 and PHP 7.4. All plugin and component are updated to the latest version. Error reporting to "simple" in joomla global config.
    The reply is currently minimized Show
  • Accepted Answer

    skyfly24
    skyfly24
    Offline
    Tuesday, April 07 2020, 12:17 PM - #Permalink
    0
    Is there anything new about it?
    When will there be an update in general?
    • Germinal Camps
      more than a month ago
      we're preparing an update for J4. I'll try to fix this PHP 7.2 warning before. working on it.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, April 09 2020, 09:14 AM - #Permalink
    0
    I have just published version 3.0.7 which should get ride of the PHP 7.2 warnings.
    Please if you still encounter any, let me know!
    thanks!
    The reply is currently minimized Show
Your Reply