Support » Plugin: Asset CleanUp: Page Speed Booster » jquery 400 error in admin > Posts page

  • Resolved dreamzspl

    (@dreamzspl)


    Hello, I seem to have 400 bad request error at the admin dashboard page > All Posts page. Will you be able to advise please? Below is the console log reproduced.

    Thank you.

    jquery.js?ver=1.12.4-wp:4 POST https:// pawmeal(dot)com/wp-admin/admin-ajax.php 400 (Bad Request)

    send @ jquery.js?ver=1.12.4-wp:4
    ajax @ jquery.js?ver=1.12.4-wp:4
    n.<computed> @ jquery.js?ver=1.12.4-wp:4
    (anonymous) @ script.min.js?wpacuversion=1603561600:1
    i @ jquery.js?ver=1.12.4-wp:2
    fireWith @ jquery.js?ver=1.12.4-wp:2
    x @ jquery.js?ver=1.12.4-wp:4
    c @ jquery.js?ver=1.12.4-wp:4
    XMLHttpRequest.send (async)
    send @ jquery.js?ver=1.12.4-wp:4
    ajax @ jquery.js?ver=1.12.4-wp:4
    (anonymous) @ script.min.js?wpacuversion=1603561600:1
    i @ jquery.js?ver=1.12.4-wp:2
    fireWith @ jquery.js?ver=1.12.4-wp:2
    ready @ jquery.js?ver=1.12.4-wp:2
    J @ jquery.js?ver=1.12.4-wp:2

    • This topic was modified 11 months, 1 week ago by dreamzspl.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @dreamzspl the easiest way to debug this would be if you go to the Console and check the parameters sent to the admin-ajax.php file. So, while the console is open in Google Chrome, you select “Network” and then “XHR”. On the right side, click on the request in question which will show in red, and then check the “action” parameter from “Form Data” (all within the “Headers” tab).

    If there are any errors generated in the background (unseen PHP ones), they are already stored in the server logs or you can install and configure the “Error Log Monitor” plugin that will nicely display in the WordPress Dashboard (main page) a widget with the PHP errors that were generated. If there’s any related to Asset CleanUp, it will be printed.

    Let me know if you can find the information I mentioned and any errors that might have been recorded.

    UPDATE: I have a strong suspicion the call that is made in “All Posts” and shouldn’t be made is the one for fetching the hardcoded list of the assets which is only meant for the front-end view. So, it’s redundant, it will be fixed in the next tag release and you shouldn’t worry about it because it’s harmless.

    Thread Starter dreamzspl

    (@dreamzspl)

    Dear @gabelivan
    I have done up a quick screen record for your reference. Tried to follow your instructions and showed the error in question:
    https://streamable.com/8nolqw

    Do you mean it will be fixed in the next Asset Cleanup release? 🙂

    Plugin Author Gabe Livan

    (@gabelivan)

    @dreamzspl yes, that’s the one I suspected! It will not happen again in the next release. You can even ignore it now as it’s harmless, but if you don’t want to have extra AJAX calls (e.g. you have limited resources on your hosting package) on every page from your Dashboard, then you can download the development version which has the fix.

    Here are the instructions you need to install it: https://assetcleanup.com/docs/how-to-get-the-development-version-of-asset-cleanup/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘jquery 400 error in admin > Posts page’ is closed to new replies.