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
    Badges:

    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:

    http://www.route-one.net [Wed Aug 26 16:52:47 2020] [error] [client 172.69.63.92:0] 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,

    Rob

    #107580

    Arnan de Gans
    Badges:

    What version of AdRotate Pro do you use?

    #107582

    Robert Deighton
    Badges:

    Hi Arnan,

    I use 5.8.5

    🙂

    #107591

    Arnan de Gans
    Badges:

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

    #107594

    Arnan de Gans
    Badges:

    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.

    #107608

    Robert Deighton
    Badges:

    Hi,

    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!

    #107733

    Arnan de Gans
    Badges:

    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