Kurt Payne I can’t switch to the twentyeleven theme I will lose all widgets setup and menu. The site is live
Hi jumust, can you e-mail me a screenshot at kpayne -at- godaddy -dot- com?
Hi.
Why this issue marked as resolved when it is actually not?
I just (1 hour ago) installed the plugin. Same issue – no “Start scan” button.
There are 2 errors in console:
1-css file jquery-ui.css is not found in plugin/css folder
2-propAttr function is not defined
Solution.
1-in plugin/css folder copy jquery-ui-classic.css and rename to jquery-ui.css
2-open plugin/classes/class.p3-profiler-plugin-admin.php
and comment line 74 so:
//wp_enqueue_script( ‘jquery-ui-dialog’ );
In line 73 you can redirected jquery script to exact new version file (download and place last version of jquery in plugin/js folder to be sure). But for me “Start scan” button appears just after commenting line 74.
Hi zorl-zorl,
This is marked resolved because I’ve worked offline with several different people to determine a root cause and/or fix this.
When a theme / plugin includes a duplicate version of jQuery UI on the WordPress admin page, it causes a conflict.
You can recreate this effect with this proof-of-concept code in another plugin / theme:
add_action( 'admin_init', function() {
wp_enqueue_script( 'cdn_jquery_ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js' );
} );
1-css file jquery-ui.css is not found in plugin/css folder
Thank you for pointing this out. This is a bug. We’ll get it fixed in the next release.
2-open plugin/classes/class.p3-profiler-plugin-admin.php
and comment line 74 so:
//wp_enqueue_script( ‘jquery-ui-dialog’ );
On a stock WordPress site (3.4.2, twenty eleven, no active plugins except P3), this actually causes an error — no start scan button.
Same problem.
The firebug console return:
TypeError: this.element.propAttr is not a function IN wp-admin/load-scripts.php
I got this error just after the transition from Wp 3.4 to Wp 3.4.2
There is solution of resolving jQuery conflicts with other libs or another version of jQuery itself. Check this http://docs.jquery.com/Using_jQuery_with_Other_Libraries
This page is about including jQuery with other libraries (including another version of jQuery itself). It does not address the problem of using multiple versions of jQuery UI running in the same page.