Constant php errors on Statistics.PHP

Trouble updating AdRotate Professional to the latest version?

If your license is not expired and you are having trouble with updates for AdRotate Professional I want to hear from you!
Known issues; The update will not install or no update is visible in your dashboard.
Affected versions; Most versions of AdRotate Professional since December 2019.

Click here for the solution - AdRotate Pro update not working or not offered.

Home Forums AdRotate for WordPress Bug Reports Constant php errors on Statistics.PHP

  • #107571

    Robert Deighton

    Hello there,

    I am massive fan of this plugin and only have positive things to say.

    However, I have recently checked my error logs and this keeps pounding my error logs: [Wed Aug 26 16:52:47 2020] [error] [client] PHP Warning: A non-numeric value encountered in /wp-content/plugins/adrotate-pro/adrotate-statistics.php on line 420

    This error is constantly pounding the site.

    Is there anything I can do to resolve it?

    Many thanks,



    Arnan de Gans

    What version of AdRotate Pro do you use?


    Robert Deighton

    Hi Arnan,

    I use 5.8.5



    Arnan de Gans

    Hmm, that’s the time function.
    Can you see which timezone your website is set to?
    And which version of WordPress do you have?


    Arnan de Gans

    I’m not entirely sure what goes wrong, but it seems the gmt_offest variable is not reliable anymore.
    For the next version I’ll replace it with a WordPress function, that should work better.


    Robert Deighton


    Thanks for your reply. I am running the latest 5.5 of WordPress.

    My timezone is ‘London’
    Week starts on ‘Monday’

    Is there some temporary code I can place on the site to stop the error hammering the site?

    Many thanks!


    Arnan de Gans

    You can replace line 420 with;

    return current_time('timestamp');

    The next version will do it properly.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

You may be interested in