Created
August 14, 2013 15:19
-
-
Save clare485/6232073 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Easy Fix for WordPress 3.5 ‘jQuery is not defined’ Error December 21st, 2012 | By: Jean Galea | 17 Responses On some of my blogs I encountered issues when upgrading to WordPress 3.5. The first indicator that something was amiss was the fact that the editor was not working properly in the admin. I couldn’t even click on the content pane to add or edit content. Hovering my mouse over the left side dashboard menu I noticed that the submenus where not displaying on hover, a clear indication that something Javascript related was awry. Sure enough, when I opened the console I found a few ‘jQuery is not defined’ errors. Some Google searches later and the solution was easy enough. It appears that the new version of WordPress has some new performance optimisation features that concatenate all JavaScript resources into a single request. While in itself that is a good thing, the bad thing is that it was creating the problem on some installs. The solution is easy, just open up your wp-config.php file and insert the following code along with the other define statements: 1 2 3 4 5 /** Absolute path to the WordPress directory. */ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); define('CONCATENATE_SCRIPTS', false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment