PHP Errors in Ajax Response: Constant DONOTCACHEPAGE already defined

Home Forums AdRotate for WordPress Bug Reports PHP Errors in Ajax Response: Constant DONOTCACHEPAGE already defined

  • #152969

    robwatsondz
    Badges:

    On a dev site, I’m using Adrotate version 5.8.22. The Query Monitor WordPress plugin on that dev site is reporting PHP errors in Ajax responses in the browser inspector. It grows to hundreds of these errors in the console and seems to correspond to one error per banner rotation (every 6 seconds for two banner groups). I’ve looked in adrotate-statistics.php (lines 473 and 496) and have also searched the entirety of the codebase for all “DONOTCACHEPAGE” definitions. All seem to be isolated to just their function scopes. So I’m not sure how to fix this.

    PHP Errors in Ajax Response
    query-monitor.js?ver=1649391163:379 
    {key: 'fdb52097aa3e8ae4e2b8b565c4bc75b8', type: 'notice', message: 'Constant DONOTCACHEPAGE already defined', file: 'wp-content/plugins/adrotate/adrotate-statistics.php', line: 473, …}component: "Plugin: adrotate"file: "wp-content/plugins/adrotate/adrotate-statistics.php"key: "fdb52097aa3e8ae4e2b8b565c4bc75b8"line: 473message: "Constant DONOTCACHEPAGE already defined"stack: (2) ['adrotate_impression_callback()', "do_action('wp_ajax_adrotate_impression')"]type: "notice"[[Prototype]]: Object
    (anonymous) @ query-monitor.js?ver=1649391163:379
    dispatch @ jquery.min.js?ver=3.6.0:2
    v.handle @ jquery.min.js?ver=3.6.0:2
    trigger @ jquery.min.js?ver=3.6.0:2
    l @ jquery.min.js?ver=3.6.0:2
    (anonymous) @ jquery.min.js?ver=3.6.0:2
    nrWrapper @ (index):5
    load (async)
    r @ (index):5
    o @ (index):5
    nrWrapper @ (index):5
    XMLHttpRequest.send (async)
    (anonymous) @ VM121:1
    nrWrapper @ (index):5
    send @ jquery.min.js?ver=3.6.0:2
    ajax @ jquery.min.js?ver=3.6.0:2
    S.<computed> @ jquery.min.js?ver=3.6.0:2
    impressiontracker @ jquery.adrotate.dyngroup.js:73
    transitionTo @ jquery.adrotate.dyngroup.js:52
    play @ jquery.adrotate.dyngroup.js:58
    (anonymous) @ jquery.adrotate.dyngroup.js:38
    nrWrapper @ (index):5
    #152982

    Arnan de Gans
    Badges:

    Notices can generally be ignored as they don’t really affect the website or its performance.
    But I’ll look into it for the next update.

    I haven’t seen any issues with them being there, nor did I get other reports. So it might be a thing isolated to your website.

    #153191

    Arnan de Gans
    Badges:

    This’ll be addressed in the next update.

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

The topic ‘PHP Errors in Ajax Response: Constant DONOTCACHEPAGE already defined’ is closed to new replies.

You may be interested in