Support » Fixing WordPress » admin-ajax.php 404 (Not Found)

  • I’m having this error since I updated to 4.5.3 in a lot of cases and y many of my sites.

    I don’t think it’s a pluggin incompatibility since I’m experiencing this in 4 of my WP sites and with plugins disabled.

    This is one of the errors I get (for example using Updraft Plus plugin)

    POST http://new2.evinex.es/wp-admin/admin-ajax.php 404 (Not Found)

    load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery…:4

    I also get a lot using Visual Composer or just loading WP Media gallery or posts.

    I’m desperate and I find a lot of “SOLVED” posts over there from 2 or 3 years ago, I’ve tried a lot of things but nothing works.

    Any thoughts?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Moderator t-p

    (@t-p)

    – Does this /wp-admin/admin-ajax.php file exist? Please check.
    – Also, what exactly did do before this error appear on your site?

    Thread Starter drasier

    (@drasier)

    Yes, the file exists and it’s available. In fact, sometimes it works.
    I don’t remember doing anything. I think this started once I upgraded to WordPress 4.5.3.

    Moderator t-p

    (@t-p)

    – Try MANUALLY updating. Download a fresh copy of the WordPress .zip file to your computer, unzip it, and use that to copy up all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory. You may need to delete the old wp-admin and wp-includes folders and files on your server before uploading the new ones. Please read the Manual Update directions first.
    Backup: If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong.

    Thread Starter drasier

    (@drasier)

    Thank you Tara, I will try, but I doubt that will fix, because It’s now happening in 4 of my WordPress Instalations, so I don’t think this is caused by a wrong upgrade or anything like that.
    Thanks

    Thread Starter drasier

    (@drasier)

    I’ve allreadt tried what Tara suggested.
    Still nothing.
    Sometimes everything works great but sometimes the admin-ajax.php error pops out.
    Do anyone know if it could be a hosting issue?

    Moderator t-p

    (@t-p)

    Sometimes everything works great but sometimes the admin-ajax.php error pops out.

    Can you quote the exact error?

    Also check the error logs on your server for a more specific error message and see why it’s failing. If you need help locating them, ask your hosting provider to help you with that.

    I also have this error in 4.5.3. The URL /wp-admin/admin-ajax.php is returning a 404 in the admin screens, for example in Appearance->Themes->Add New->Featured.

    I have checked file permissions and that the file is actually present and I get the following response:

    Date: Wed, 13 Jul 2016 21:22:59 GMT
    Server: lighttpd/1.4.39
    X-Powered-By: PHP/7.0.7
    Transfer-Encoding: chunked
    Content-type: text/html; charset=UTF-8

    404 Not Found

    I did have to set define(‘CONCATENATE_SCRIPTS’, false); in wp-config to fix another issue, so I wonder if this is related (removing CONCATENATE_SCRIPTS makes the admin screens practically unusable).

    I’m *very* new to WP so any help gratefully received!

    Moderator t-p

    (@t-p)

    @6ruff,

    If the troubleshooting already posted made no difference for you, then, as per the Forum Welcome, please post your own topic.

    Thread Starter drasier

    (@drasier)

    I still running the same error with admin-ajax and load-scripts.

    – I’ve checked with my hosting provider. They have told me there’s nothing wrong with the server.

    – The error log I’ve been having in chrome is this:

    load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,thickbox,plupload&ver=4.5.3:4 POST http://dfl.evinex.es/wp-admin/admin-ajax.php 404 (Not Found)send @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,thickbox,plupload&ver=4.5.3:4ajax @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,thickbox,plupload&ver=4.5.3:4j @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,wp-ajax-response,jquery…:4(anonymous function) @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,wp-ajax-response,jquery…:4

    I’ve tried increasing the Maximum Upload and PHP Memory Limit in WordPress as some people suggested. Didn’t work.

    Thank you for your help.

    I also have this error with 4.5.3

    I see this error when trying to add new menu items:

    POST http://shero.dk/wp-admin/admin-ajax.php 404 (Not Found)

    load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:4 POST http://shero.dk/wp-admin/admin-ajax.php 404 (Not Found)send @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:4ajax @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:4(anonymous function) @ load-scripts.php?c=1&load[]=underscore,customize-base,wp-a11y,customize-controls,backbone,wp-util,w…:13a.Deferred @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:9send @ load-scripts.php?c=1&load[]=underscore,customize-base,wp-a11y,customize-controls,backbone,wp-util,w…:13post @ load-scripts.php?c=1&load[]=underscore,customize-base,wp-a11y,customize-controls,backbone,wp-util,w…:13c @ load-scripts.php?c=1&load[]=underscore,customize-base,wp-a11y,customize-controls,backbone,wp-util,w…:10save @ load-scripts.php?c=1&load[]=underscore,customize-base,wp-a11y,customize-controls,backbone,wp-util,w…:10(anonymous function) @ load-scripts.php?c=1&load[]=underscore,customize-base,wp-a11y,customize-controls,backbone,wp-util,w…:10dispatch @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:3r.handle @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mo…:3

    Moderator t-p

    (@t-p)

    @systemaddict,

    If the troubleshooting already posted made no difference for you, then, as per the Forum Welcome, please post your own topic.

    @drasier – Experienced the same issue on a client’s side. Dug a bit in the forums here and and Stack overflow and found that adding

    <IfModule mod_security.c>
      SecFilterEngine Off
      SecFilterScanPOST Off
    </IfModule>

    to your .htaccess file fixes it in some instances, as some hosts block your own IP address for making requests to it (from what I’ve read)

    @drasier Same issue here.
    After update to WP 4.7, getting 404 error. I’ve tried the solution presented by @jarryd-long

    <IfModule mod_security.c>
      SecFilterEngine Off
      SecFilterScanPOST Off
    </IfModule>

    and after that I’m getting error 500: PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

    Do you find any solution?

    Moderator t-p

    (@t-p)

    @alemac,

    If you noticed this is over 6-month old topic!!

    If the troubleshooting already posted made no difference for you, then, as per the Forum Welcome, please post your own topic. That way you stand a good chance of getting the assistance you want.

    I’m closing this.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘admin-ajax.php 404 (Not Found)’ is closed to new replies.