Tips

Solution for Mailchimp Pop-up Form Error on WordPress: “jQuery.js not found (404)”

jquery photo

While installing the Mailchimp Pop-up form on WordPress, I ran into a problem that many others seem to have encountered as well: The script “jQuery.js” cannot be found at “https://chattymango.com/jQuery.js”, which of course breaks the entire pop-up. Actually, jQuery comes bundled with WordPress and just needs to be loaded from the right location.

Unfortunately, you cannot simply fix the script that comes from Mailchimp. So, how to solve that error?

According to one common solutions you simply add or move the required file into the root directory. I prefer to use the default WordPress file, however, since it will receive automatic updates in future. And why should I host that file twice on the same web?

For me the easiest solution was to add one line[1.You possibly have to adjust the path, if you installed WordPress in a subdirectory.] to the .htaccess file in the WordPress root, after “RewriteEngine On”:

RewriteRule ^jquery\.js$ /wp-includes/js/jquery/jquery.js [R=301,L]

Now, the request for the script will be redirected to the right location.

Photo by yukop 

Search For Tags:

This animated and filterable tag cloud is the Shuffle Box. It is available with my plugin Tag Groups. Sort your tags into groups and tidy up WordPress site. 🧡

Christoph