2

I'm receiving a $ is not a function error. This is new since I updated from 3.2.1.

I have an identical setup working on 3.1.

Have folks run into this issue? I have turned off all plugins and am just attempting to load the superfish (or any jquery) and am receiving this error.

What changed that I'm missing? These are all currently on the same server if that is any help.

thank you,

Marc Plano-Lesay
  • 6,808
  • 10
  • 44
  • 75

2 Answers2

4

What happens if you change $ to jQuery? Does that work? $ is simply a variable for the jQuery object. In some setups, you need to use jQuery rather than $.

maxedison
  • 17,243
  • 14
  • 67
  • 114
  • 1
    Also, you should use it in the ["noConflict"-mode](http://stackoverflow.com/questions/134572/jquery-prototype-conflict). – Lukas Knuth Sep 22 '11 at 18:18
0

EDIT

I had the same error, and it was because of jQuery not loaded.

You can this error if your jquery is not loading. To determine if this is the case, you need to debug your webpage network traffic using IE9 -> F12 -> Network -> Capture to see if you get 404 for jQuery files (i.e. something/wp-includes/jquery.js), or use same thing in Firefox's Firebug extension.

You can also search for jquery in page source, it should be in tag, and when you find src (i.e. http://code.jquery.com/jquery-1.6.4.min.js) try open it, if it says 404 not found then you need to place jquery in that file on server (or change whatever php/plugin loads that script tag to correct path)

If you do not know how to do this, please provide link to your wordpress installation.

Goran Obradovic
  • 8,951
  • 9
  • 50
  • 79