Search
  • Sotware by
  • Christoph Amthor
Search Menu

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

jquery photo

While installing the Mailchimp Pop-up form, 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. The error is odd, because 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?

One common solutions seems to be, putting 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 line1 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 

Show 1 footnote

  1. You possibly have to adjust the target, if you installed WordPress in a subdirectory.
Share

Leave a Comment

Required fields are marked *.