How to fix the “Failed to Load Resource” error in WordPress

A research for this error shows that many WordPress users have encountered the “Failed To Load Resource” issue in several different ways.

Below are few examples of the error:

  • Failed to load resource net::ERR_CONNECTION_REFUSED
  • Failed to load resource: the server responded with a status of 404 (Not Found)
  • Failed to load resource: the server responded with a status of 500 (Internal Server Error)
  • Failed to load resource: net::err_name_not_resolved

The error may present in the following ways:

-Browser developer console,

-WordPress admin dashboard,

-WordPress plugin permissions issue in the /wp-content/plugins folder (WRONG FILE PERMISSIONS.)

– While performing tasks such as uploading media files.

As you know, the WordPress system, plugins, and themes run on PHP scripts. These scripts send requests to communicate with the resources stored on your server. When something interferes with these requests, WordPress fails to fetch the resources. This is when you usually encounter issues such as the “Failed To Load Resource” error. A missing resource can cause your website to misbehave or not function properly.

Always ensure you get a good hosting company, we recommend Bluehost, click here to get the best hosting bargains.

The first solution is to Replace The Missing Resource

This is the first and the most common solution. Ensure that the failed resource actually exists in your system and database. For example, if the missing resource is an image or PDF document in one of your blog posts or page, then try to locate for it in the media library.

If the search yields nothing, and it is not found in the media library, then try to re-upload it to add it again by editing the post or page. If you cannot see the file in the media library, then try adding it again.

Theme or plugin files replacement

If the failed resource is a WordPress theme file or plugin, then locate it in the original folder in your local storage and start reinstalling the plugin or theme. But first, deactivate your current WordPress theme. You can do that by visiting Appearance » Themes page or the plugins folder and rename them for example if you have mytheme, you can rename it to mytheme2019.

Read: How to add or install a new WordPress Theme

Alternatively you could try disabling all plugins on your WordPress website and reactivate the plugins one by one, while each time refresh the website for checking is if the resoruce error still appears.

Deactivate Your security plugins

The “Failed To Load Resource” error with a 400 status error, like this: “Failed to load resource: the server responded with a status of 400 () /wp-admin/admin-ajax.php” could be as a result of a resource URL change or a security plugin is preventing WordPress from accessing the specified file because it flagged it as suspicious.

If you have any antivirus plugins or firewalls installed on your WordPress website, try disabling them to see if the issue clears.

Read: How to install, manage and uninstall or delete a WordPress Plugin

Fix the WordPress URLs to Avoid Failed Resource Error (https and http)

Another common reason that triggers the failed resource error is incorrect WordPress URL settings.

Simply head over to Settings » General page and look for WordPress Address and Site Address options. Here, ensure that all your two URL options are correct. This is because WordPress treats www and non-www URLs as two different addresses. If you have activated SSL settings on your website, then ensure that your URLs should begin with https in place of http.

Always save any changes to store your settings. Your error should now be fixed and you can clear your cache and now visit your website to confirm if the error has been resolved.

You can also check this link: WordPress Crashed? Fast Site Restoration After a Sudden Crash

If all the methods above didn’t fix or current the Failed to Load Resource error, you might also consider contacting your web hosting provider customer support team or consult an experienced WordPress developer.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 151 other subscribers

2 Comments

%d bloggers like this: