WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
jQuery is not defined

When I try to edit a post, rearange categories the "jQuery is not defined" keeps poping up in firebug. But If I change my theme to another it allows me to change the categories and stuff like that. I checked my functions.php there is no line about jquery...

share|improve this question

closed as off-topic by toscho Jun 17 at 9:24

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

Can you provide a link to the theme you are using? – Matthew Muro May 27 '11 at 13:29

As you have pointed out; the problem fixes itself if you change to another theme. That says to me that your current theme is stopping jquery from loading, hence why you are getting jQuery is not defined.

Look in your theme files and make sure you don't have something like this: wp_deregister_script('jquery');. You should never de-register it from the admin. If you want to de-register jquery on the front end but not the admin screen then use something like this

if(!is_admin()) {
share|improve this answer
Thank you for your help. I found out that I was deregistering then registering the new jquery 1.6 but I didn't enqueue it :). Thats why the Wordpress broke. Thank you for your help again! – Zenger May 27 '11 at 13:48
@Zenger - that wouldn't cause it. If you post up your theme functions file somewhere we can maybe take a look and see if there is anything left to cause jquery from not loading. Also have you got any code in your theme header that might be causing issue? I take it that this is you own theme? – Brady May 27 '11 at 13:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.