• Resolved sarahweb

    (@sarahweb)


    Hiya – I am getting this warning in my log files using version 1.5.1 WP 5.2.2

    [04-Jul-2019 08:19:24 UTC] PHP Warning: Invalid argument supplied for foreach() in wp-content/plugins/countdown-builder/classes/countdown/Countdown.php on line 266

    Thanks
    Sarah

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author adamskaat

    (@adamskaat)

    Hi @sarahweb,

    I’m sorry for any inconvenience.

    We have fixed that issue and it’s will be included on our upcoming update.

    Currently, I can suggest these two solutions

    1. Disable debug mode inside your wp-config file.
    2. Please add this PHP code into this file wp-content/plugins/countdown-builder/classes/countdown/Countdown.php at line 265

    if (empty($data)) {
    return $cdData;
    }

    Regards,
    Adam

    Thread Starter sarahweb

    (@sarahweb)

    Thanks Adam I will give that 2nd option a go and see – and its only showing in error logs

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Warning: Invalid argument supplied for foreach()’ is closed to new replies.