Yep, found it. In the js console of Chrome:
“Uncaught ReferenceError: jQuery is not defined”
Basically, jQuery isn’t defined when the header styles are printed. You are including jQuery manually for your theme AFTER crayon has initiated.
<script type=’text/javascript’ src=’http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js’>
Make sure this appears BEFORE <?php wp_head(); ?> in your theme header.php. WordPress will automatically enqueue jQuery for you usually, not sure why you’re specifying it manually. It might be faster also from your local server than from Google’s, not sure.
Thread Starter
rolito
(@rolito)
Problem solved when I uninstalled a plugin called “Use Google Libraries”
(Allows your site to use common javascript libraries from Google’s AJAX Libraries CDN, rather than from WordPress’s own copies.)
Without that plugin now it works perfect!
Thanks!
No problem, glad you like it 🙂
I also have the same problem… I just moved jquery to the top and it started to work on my winodws machine… But in my ubuntu machine its not working yet! http://techhamlet.com/2012/02/how-to-install-the-latest-vlc-2-0-in-ubuntu/
I think it’s something to do with your minified js and CSS plugin or something. You’re not including crayon.js etc, and these must be generated within wordpress. Make sure your theme has <?php wp_head();> in the header.php. I’m not so sure how the minified plugin you’re using will handle this, but you don’t want to be printing all this out manually! Also, I’m getting like 1 error per second. Please see the js console in chrome:
XMLHttpRequest cannot load http://realtime.services.disqus.com/api/2/thread/593111062. Origin http://mediacdn.disqus.com is not allowed by Access-Control-Allow-Origin.
Thanks a lot bro! I just turned off w3 total cache’s minify and added Better WordPress Minify plugin to handle it… Now its working 🙂 Thanks again 😀
I have the same problem and I have no idea how to solve it.
This is the post at which the problem occurs:
http://blog.mjnaderi.ir/?p=26
I use WordPress 3.3.2 and Crayon Syntax Highlighter 1.9.12.
Remove this line:
<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js”></script>
It’s probably from a plugin or something. It’s a very old version of jQuery also. You’ve got a newer one in the head from WordPress, no need for another.
Thanks a lot! It worked! That line was from my theme