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

  • Resolved freakyleaf



    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

    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 }

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

    Any help greatly appreciated! 🙂

    Many thanks


Viewing 4 replies - 1 through 4 (of 4 total)
  • Sorry – link to screenshot is

    WP included the braket in the URL.

    Plugin Contributor Kurt Payne


    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


    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.