views:

47

answers:

2

Well I have really strange problem with the wordpress and with Jquery. Since few week ago when we upgraded the hosting, the Wordpress Jquery in the ACP and in some parts of the widgets on the site is broken. I tried disabling plugins it's same. Tried reinstalling and not adding any plugin, still same. Tried downloading and adding new Jquery files still same. The Ajax/Jquery part of ACP is unresponsive, widget area is unmovable and pages usually are white when loaded. Footer is also not loaded. Other scripts work fine on the server. I think there is incompatible PHP extension that could be causing this. Any idea about what could be the problem?

A: 

Use Firebug with Firefox to see what JS are loading or are conflicting.

songdogtech
I already used the firebug to look for the problem.
NickS
A: 

try loading jquery in the template head tags by using the following command

<?php wp_enqueue_script("jquery"); ?>

remove all other verbose loading instructions for jquery in the head.

This will load jQuery in NoConflict mode.

In this mode, the $ value is no longer the delegate name instead you must use jQuery For example:

$(document).ready(function(){
     $(#somefunction) ...
});

Becomes:

jQuery(document).ready(function(){
    jQuery(#somefunction) ...
});
Si Robinson
If I add it the page turns to white. Added it in functions.php file and in load-scripts.php.
NickS
i should add that this causes the jquery to load in NoConflict mode so there are ramifications on the way you use jquery. I have eddited the answer.
Si Robinson