Support » Plugin: P3 (Plugin Performance Profiler) » PHP and JS Errors in Plugin

  • Resolved freakyleaf

    (@freakyleaf)


    Hey!

    Have just run P3 for the first time. The tests ran successfully, but when I view the results I don’t get any visuals (see http://postimg.org/image/i9i4of1a7/).

    I also get a PHP error:

    Warning: Invalid argument supplied for foreach() in /var/sites/t/xxxxx/public_html/wp-content/plugins/p3-profiler/classes/class.p3-profiler-reader.php on line 293

    And a JS error:

    Uncaught SyntaxError: Unexpected token }
    tools.php?page=p3-profiler&p3_action=view-scan&name=scan_2013-11-24_11155cb5.json:1130

    I’m using WordPress 3.7.1, P3 1.4.1 and Chrome 31.

    Any help greatly appreciated! 🙂

    Many thanks

    Gareth

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Sorry – link to screenshot is http://postimg.org/image/i9i4of1a7/

    WP included the braket in the URL.

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    Hi freakyleaf,

    Two questions: Can you repeat this with all plugins disabled and your theme reverted to twentythirteen?

    In the P3 help page, there’s a question about “Is my site using an opcode cache” … what does it say for your site?

    Hey Kurt & Others,

    Its an issue regarding floating numbers (i think due to locale). On my locale floats were outputted as such ‘0,000124′. The comma should be a dot in javascript in order to be valid.

    Converting line 172 in view-scan.php to: data: <?php echo str_replace(‘,’,’.’, $v); ?> worked for me

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    Hi 42functions,

    What is your system’s locale?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP and JS Errors in Plugin’ is closed to new replies.