• Resolved 61pixels

    (@61pixels)


    I notice that my debug.log file is getting hundreds of Warnings when clicking around the site, all regarding Events Calendar. Is this a compatibility thing with PHP 7.2? If so, any proposed date when 7.2 will be supported, or should I see if the host can downgrade to 7.1 ?

    Warning:
    PHP Warning: count(): Parameter must be an array or an object that implements Countable in xxx/wp-content/plugins/the-events-calendar/common/src/Tribe/Customizer/Section.php on line 204

Viewing 5 replies - 1 through 5 (of 5 total)
  • PHP 7.2 is only in beta – it specifically should not be used on production sites — see https://php.net/index.php#id2017-08-17-1. It is not scheduled for final release until November – see https://wiki.php.net/todo/php72

    So I am surprised that you would be on a platform using 7.2 as default.

    I’m just a user, but I think it would be unreasonable to expect a plugin to support software at this stage, because the whole purpose of beta testing is to debug.

    I think it’s great that you are alert to errors and reporting them – just premature to expect PHP 7.2 support in any software. So yes — if you have a live production site, definitely you should be running PHP 7.1, which is the latest stable, supported version.

    In the meantime it might be better to report problems with PHP 7.2 to the PHP bug tracking system at https://bugs.php.net/

    There appears to be an open issue related to this error here:
    https://github.com/yiisoft/yii2/issues/14489

    Thread Starter 61pixels

    (@61pixels)

    Appreciate the response. Trust me, I completely know 7.2 is in beta and am not comfortable with it at all. My client’s IT department who set up the server installed it. I had already informed them that it was beta and I would prefer to downgrade it to a version of 7 or 7.1. I was just curious if it was on the roadmap here to update in case they refuse to downgrade.

    Hey @61pixels

    First off, I would like to apologize for the delay answering.
    We are currently experiencing a higher level of requests than usual.

    Please rest assured that we are working hard at correcting this situation.
    We appreciate your patience while we try to normalize things.

    @abigailm provided the best answer possible. Kudos!

    Making sure our plugins play well with the different PHP versions is something we take very seriously.

    Let me check what the status is for that specific version and get back to you

    Have a good weekend,

    Geoff B.

    Thread Starter 61pixels

    (@61pixels)

    No worries Geoff, I appreciate the response. For this particular client, their IT department went ahead and downgraded to PHP 7.1 at my request and the warnings are gone. Appreciate you guys looking into it though as it may help others in the future.

    Hi guys! I am experiencing the same problem:

    
    Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/wp-content/plugins/the-events-calendar/common/src/Tribe/Customizer/Section.php on line 204
    

    PHP version: 7.2

    • This reply was modified 6 years, 11 months ago by bora-89.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP 7.2, warnings galore’ is closed to new replies.