Support » Plugin: WP PHP Console » Plugin Source Code Error

  • Resolved mrjman006


    When I installed the plugin, I got a syntax error “unexpected T-String”.

    It was in <plugin-source-root>/wp-php-console/wp-php-console.php on line 71.

    I changed

    return new \WP_PHP_Console\Plugin();


    return new Plugin();

    and it seemed to work. It says my php version is not supported, but that is a different problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Fulvio Notarstefano


    What is your PHP version?
    Do you have by any chance multiple copies of this plugin running?

    Thread Starter mrjman006


    I tried this on my live site through a hosting provider. I only had one copy running and the php version of my hosting provider is 5.2.17.

    The plugin seems to activate just fine my localhost installation which is php version 7.2.3.

    Hope this helps.

    Plugin Author Fulvio Notarstefano


    As mentioned in the plugin page, you need 5.4.0 minimum to run this plugin. I believe 5.2.17 is even below standard WordPress requirement, which should be 5.2.4. Your host is vulnerable as such outdated version of PHP hasn’t been supported for years. Try have them update to at least 5.6.


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin Source Code Error’ is closed to new replies.