I’m still new to WordPress. I have been encountering Failed to load resource: the server responded with a status of 404 (Not Found) error and its pointing it in wp-admin/admin-ajax.php. I have check the folder and admin-ajax.php is there. I also tried calling admin-ajax.php using network_admin_url() instead of admin_url(). But I still keeps on having that error. Is there anyway to solve it? Thank you very much for your help.

Here is the sample code

var ajaxurl="<?php echo admin_url("admin-ajax.php'); ?>';
  $.ajax({
    type: "POST",
    url: ajaxurl,
    cache: false,
    data: { action: 'getInfo' },
    success: function(data) {
      mIDs= mDisplay(data);
    }
  }).done(function( msg ) {

  });

3 Answers
3

I contact the hosting provider regarding it. They advise me to fix the .htaccess which causing the error.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *