Fixing 403 Forbidden Error on Divi Booster's wp_footer.js File

If you're unlucky you may find that some of Divi Booster's features, such as the social icons and the footer text, don't apply to your site as you would expect, or stop working when previously they did.

One possible reason for this is that something may be blocking the browser from accessing the JavaScript file generated by Divi Booster. The JavaScript file contains the code needed to make certain features works so, if the browser can't access it, these features won't be applied to your site.

The JavaScript file is located at:

https://www.YOURSITE.com/wp-content/uploads/wtfdivi/wp_footer.js

If you browse to this URL (replacing www.YOURSITE.com with your own domain name) you would normally expect to see a file containing JavaScript code. If something is blocking access to this file, you will instead get a 403 Forbidden error page with the message:

Forbidden

You don't have permission to access /wp-content/uploads/wtfdivi/wp_footer.js on this server.

Here are possible methods for resolving this error:

Method 1: Allow Access to the wp_footer.js File

One way to solve it is to figure out what is blocking access to the wp_footer.js file.

This isn't actually an error in Divi Booster. When Divi Booster is installed on a basic Divi / WordPress installation, the file will not be blocked.

However, some security plugins (e.g. WordFence) and server configurations may disallow access to JavaScript files within the /wp-content/uploads/ folder by default. While the details of how to do this will vary depending on what is applying this restriction on your site, the solution is to update the configuration to either allow access to either all JavaScript files from within /wp-content/uploads, or better yet to create a rule specifically allowing access to the /wp-content/uploads/wtfdivi/wp_footer.js file.

Once this is done, you should be able to browse to the wp_footer.js file URL and correctly access the JavaScript code. At this point, the Divi Booster features should be working correctly again.

Method 2: Enable Inline JavaScript

If for some reason you are unable to track down the cause of the blocked access, there is a way to bypass it from within Divi Booster. In the Divi Booster settings, you'll find the following option:

Developer Tools > Generated JS > Use inline JavaScript

Enable this option and save. Now Divi Booster will include the JavaScript code directly within your site's HTML pages, rather than loading it from the separate wp_footer.js file. This means the features should work, despite the blocked access to the wp_footer.js file.

This post may contain referral links which may earn a commission for this site

Divi Booster

Hundreds of new features for Divi
in one easy-to-use plugin

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

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