Title: Plugin Source Code Error
Last modified: March 22, 2018

---

# Plugin Source Code Error

 *  Resolved [mrjman006](https://wordpress.org/support/users/mrjman006/)
 * (@mrjman006)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/plugin-source-code-error/)
 * 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();
 * to
 *  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](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/plugin-source-code-error/#post-10152297)
 * What is your PHP version?
    Do you have by any chance multiple copies of this 
   plugin running?
 *  Thread Starter [mrjman006](https://wordpress.org/support/users/mrjman006/)
 * (@mrjman006)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/plugin-source-code-error/#post-10158986)
 * 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](https://wordpress.org/support/users/nekojira/)
 * (@nekojira)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/plugin-source-code-error/#post-10159834)
 * 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.
 * Cheers

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin Source Code Error’ is closed to new replies.

 * ![](https://ps.w.org/wp-php-console/assets/icon-256x256.png?rev=1070278)
 * [WP PHP Console](https://wordpress.org/plugins/wp-php-console/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-php-console/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-php-console/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-php-console/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-php-console/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-php-console/reviews/)

## Tags

 * [bugfix](https://wordpress.org/support/topic-tag/bugfix/)

 * 3 replies
 * 2 participants
 * Last reply from: [Fulvio Notarstefano](https://wordpress.org/support/users/nekojira/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/plugin-source-code-error/#post-10159834)
 * Status: resolved