WordPress.org

Ready to get started?Download WordPress

Forums

P3 (Plugin Performance Profiler)
[resolved] Can't Start Scan (24 posts)

  1. ball7571
    Member
    Posted 2 years ago #

    I am confused. I installed this plugin and it tells me to start scan but if I click it just unchecks the box next to it and nothing happens. I am not sure how to get this plugin to run?

    http://wordpress.org/extend/plugins/p3-profiler/

  2. ball7571
    Member
    Posted 2 years ago #

    To clarify, I do not have a click to start button in this plugin, mine only shows a checkbox next to the words "click to start" but if I click on "click to start" nothing happens, it just unchecks the box.

  3. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    It sounds like there's a problem loading the script/styles for P3's admin UI.

    Do you have any errors in your javascript console?

  4. ball7571
    Member
    Posted 2 years ago #

    Kurt,

    Where can I see the Javascript console?

  5. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    Which browser are you using?

  6. ball7571
    Member
    Posted 2 years ago #

    Chrome on Mac, but I have Safari and Firefox on my Mac as well if that is helpful.

  7. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    Go to settings (wrench icon), then tools, then javascript console.

    If you see any errors, can you take a screenshot and send it over? If there's sensitive data or you don't want to post it online, you can e-mail me at kpayne -at- godaddy -dot- com.

  8. ball7571
    Member
    Posted 2 years ago #

    Just emailed you a screen shot

  9. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    Thanks for working with me offline to resolve this.

  10. xanaftp
    Member
    Posted 2 years ago #

    This thread did not help. "Thanks for working with me offline to resolve this.".

    What exactly did you do?

    I am faced with the exact same problem, however javascript console shows errors (like unsecured content) that are completely unrelated to P3.

    Suggestions?

  11. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi xanaftp,

    For javascript errors with P3, the number 1 culprit is themes / plugins which include an outdated version of jQuery UI.

    As of WordPress 3.3, all of jQuery UI (javsacript) is included in the WordPress core and plugins/themes only need to ship with their jQuery UI theme. Some plugins/themes ship with their own version of jQuery UI which conflicts with the WordPress version used by P3.

    You can test this by switching your theme back to Twenty Eleven. If that's not it, try turning off plugins until you find which one is causing the conflict. Once you find the conflict, you can contact the author for an update.

  12. nothin7
    Member
    Posted 2 years ago #

    The current version of the Font plugin (http://wordpress.org/extend/plugins/font/) is one example that causes this conflict. I'll let the Font plugin developer know.

  13. mbova3
    Member
    Posted 1 year ago #

    I have the same problem. Disabled all other plugins besides p3 and still can't see the scan button.

  14. Kurt Payne
    Member
    Plugin Contributor

    Posted 1 year ago #

    mbova3, This may be related to your theme, then. If your theme includes a copy of jQuery or jQuery UI (perhaps from a CDN), this could cause a problem.

    Do you see any errors in your javascript console?

  15. jumust
    Member
    Posted 1 year ago #

    Same problem.
    I have no errors in javascript console, only two that are related to ads, nothing related to P3. However my theme is loading those two files:

    <script type='text/javascript' src='http://www.mysite.com/wp-includes/js/jquery/jquery.js?ver=1.7.2'></script>
    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js?ver=3.4.1'></script>

    Is this the problem? How can I fix it?

    Thanks

  16. Kurt Payne
    Member
    Plugin Contributor

    Posted 1 year ago #

    jumust, If you switch to the twentyeleven theme temporarily, does it resolve the problem?

  17. jumust
    Member
    Posted 1 year ago #

    Kurt Payne I can't switch to the twentyeleven theme I will lose all widgets setup and menu. The site is live

  18. Kurt Payne
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hi jumust, can you e-mail me a screenshot at kpayne -at- godaddy -dot- com?

  19. jumust
    Member
    Posted 1 year ago #

    Just sent! Thanks

  20. zorl-zorl
    Member
    Posted 1 year ago #

    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.

  21. Kurt Payne
    Member
    Plugin Contributor

    Posted 1 year ago #

    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.

  22. Stefano Colarelli
    Member
    Posted 1 year ago #

    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

  23. zorl-zorl
    Member
    Posted 1 year ago #

    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

  24. Kurt Payne
    Member
    Plugin Contributor

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.