• Resolved Andrew Comb

    (@tecazwebdev)


    Ok when I switch to PHP 8.4 – I don’t get an error, but the Optimisations area of Database fail to load. Everything below ‘Run all selected optimisations’ fails to load.

    In the console, I see the following errors:


    Failed to load resource: the server responded with a status of 502 ()Understand this error
    index.js?ver=131f730748a778c1cff2:1 Error retrieving simulate error options: Object
    (anonymous) @ index.js?ver=131f730748a778c1cff2:1Understand this error
    /wp-admin/admin-ajax.php?action=updraft_ajax&subaction=ping&nonce=870275252c:1 Failed to load resource: the server responded with a status of 502 ()Understand this error
    updraft-admin-common-1-25-9.min.js?ver=1.25.9:1 updraft_send_command: error: error ()
    updraft-admin-common-1-25-9.min.js?ver=1.25.9:1 Object
    /wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a status of 502 ()Understand this error
    load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9:2 POST https://staging.comparethebathroom.com/wp-admin/admin-ajax.php 502 (Bad Gateway)
    send @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9:2
    ajax @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9:2
    (anonymous) @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9:5
    e. @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9:5
    wp_optimize.send_command @ send-command-4-4-0.min.js?ver=4.4.0:1
    (anonymous) @ wpoadmin-4-4-0.min.js?ver=4.4.0:2Understand this error
    load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9:2 POST https://staging.comparethebathroom.com/wp-admin/admin-ajax.php 502 (Bad Gateway)
    send @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9:2
    ajax @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9:2
    (anonymous) @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9:5
    e. @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-dom-ready,wp-hooks&ver=6.9:5
    l @ heartbeat.min.js?ver=6.9:2
    (anonymous) @ heartbeat.min.js?ver=6.9:2Understand this error

    I’ve tested this on 2 of our development sites. It’s not critical as I am not running on 8.4, and I have not (currently) got any errors on 8.3 on our production sites.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi,

    Thanks for reporting this! I will try to reproduce this on some of my test sites after switching to PHP8.4. Can you let me know what web server type these sites are running? I want to make sure I test in a similar environment as you.

    Are you seeing anything in the web server or PHP error logs when these errors are happening in the javascript console?

    Does the same error happen if you try to open that page in an incognito / private browsing window?

    Thank you!

    Thread Starter Andrew Comb

    (@tecazwebdev)

    Sure. It’s on a Litespeed server, and I am using the Kadence theme. I’m not seeing anything in the PHP or WooCommerce error logs areas, for this issue, it just silently fails. It’s slightly maddening because it doesn’t do it on all the sites I have tested, and they are all on the same server, so it could be an incompatibility with a third party plugin, but they all have similar plugin ecosystems, as it’s various testing environments.

    You load the page, it does it’s little whirry thing while it loads the table options, asynchronously, and then it just shows blank. So it’s not an error on the page, but in the jquery scripts.

    I wonder if it’s something to do with this area of the script:

    4.4.0 – 12/Dec/2025
    FIX: Fixed a potential fatal error in the WPO_Page_Optimizer class

    Because on 2 of my sites I got a fatal error on my sites (only on this page though, it did not crash my site) on the older version, but on php8.3 – updating to this version fixed it, but on php8.4 i just get a failure to show anything. Reverting to php8.3 allows the plugin to work as usual.

    Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi @tecazwebdev,

    So unfortunately on my Litespeed server running PHP8.4 with the Kadence theme I’m not able to reproduce the error.

    The fix for 4.4.0 with the fatal error was about a missing function wp_optimize_minify_config so it should be unrelated.

    If you’re not seeing anything in the PHP error logs are you seeing anything in the Litespeed error logs?

    It might at this point be a good idea to do some plugin conflict testing, which I know can be a bit of a pain. Could you try deactivating your plugins except for WP-Optimize and let me know if you have the same error?

    Thank you!

    Thread Starter Andrew Comb

    (@tecazwebdev)

    Thanks for checking. That would take quite a while to narrow down, as we have a quite large store, with a lot of functions. If I get anywhere with it, I will update you.

    Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi Andrew,

    That sounds good, definitely keep me updated!

    Thank you!

    Plugin Support vupdraft

    (@vupdraft)

    Hi Andrew,

    As we have not heard from you in a while we are closing the thread. If you are still experiencing issues, please start a new one.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.