• Resolved Sascha_Foerster

    (@sascha_foerster)


    When the list of webinars is empty, I get the following error message sent with every cron-job:

    PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/wordpress/wp-content/plugins/wp-gotowebinar/wp-gotowebinar.php on line 140
    Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/wordpress/wp-content/plugins/wp-gotowebinar/wp-gotowebinar.php on line 140

    Is this an error on our side? Or can the plugin be optimized to not send an error message for every cron-job, when the list is empty? Thanks! ??

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Sascha_Foerster

    (@sascha_foerster)

    PHP Version: 7.3.19-1~deb10u1
    Wordpress Version: 5.6
    Plugin Version: 14.21
    Current Theme: Newspaper
    Application Used: Own Application
    Active Plugins:
    Antispam Bee
    Avatar Privacy
    Disable Emojis (GDPR friendly)
    EWWW Image Optimizer
    Global SMTP
    WPBakery Page Builder
    Ninja Forms
    Really Simple SSL
    Remove Comment IPs
    tagDiv Cloud Library
    tagDiv Composer
    tagDiv Social Counter
    tagDiv Standard Pack
    Yoast SEO
    WP GoToWebinar
    WP Rocket

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @sascha_foerster,

    Thanks for your message. We will fix this in the next version, for now if you want to resolve it should just update that line 140 to:

    if(is_array($jsondata) && is_countable($jsondata) &&count($jsondata)>0){

    and this should resolve things. Thanks ??

    Hi, We are experiencing the same issue.
    Is there an estimated date for the next release? Ideally, we’d like to get this fixed as soon as possible due to errors showing on the front-end of the website.

    We resolved the issue using your solution above.
    Thanks

    • This reply was modified 3 years, 9 months ago by Darrell.
    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    @infini7yone great to hear ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘count(): Parameter must be an array or an object that implements Countable’ is closed to new replies.