Title: Parse Error After Plugin Activation
Last modified: March 6, 2018

---

# Parse Error After Plugin Activation

 *  Resolved [nicol3](https://wordpress.org/support/users/nicol3/)
 * (@nicol3)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/parse-error-after-plugin-activation/)
 * Hi
 * I get the following error after activating the plugin:
 * Parse error: syntax error, unexpected T_STRING in /public_html/wp-content/plugins/
   wp-staging/wp-staging.php on line 68
 * Line 68 is $wpStaging = \WPStaging\WPStaging::getInstance();
 * My site is running on PHP version 5.4.45
 * Could you please help to resolve this problem? Thank you.
 * Nicole

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

 *  Plugin Author [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/parse-error-after-plugin-activation/#post-10043824)
 * Hi Nicole,
 * it looks like your site is running php 5.2.
    This error indicates your php version
   does not support namespaces.
 * Please check out the php version in: tools>system info: [http://take.ms/8hUAA](http://take.ms/8hUAA)
 * Is it really php 5.4.45?
 *  Thread Starter [nicol3](https://wordpress.org/support/users/nicol3/)
 * (@nicol3)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/parse-error-after-plugin-activation/#post-10044499)
 * Hi Rene
 * In the cpanel, here are some details listed under “General Server Info”:
 * Apache Version 2.2.34
    PHP Version 5.4.45 MySQL Version 5.5.51-38.2
 * 1. Should I double check with my hosting company?
    2. What is the php version
   that supports the wp staging plugin?
 * Thank you.
 *  Plugin Author [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/parse-error-after-plugin-activation/#post-10044568)
 * Please check out the php version in: tools>system info: [http://take.ms/8hUAA](http://take.ms/8hUAA)
 * It could be that cpanel is showing wrong data.
 * WP Staging runs with php 5.3 and later.
 *  Thread Starter [nicol3](https://wordpress.org/support/users/nicol3/)
 * (@nicol3)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/parse-error-after-plugin-activation/#post-10044868)
 * Plugin could not be activated because it triggered a fatal error (ie. parse error)
 * Since plugin could not be activated, I can’t do as you advised –> “Please check
   out the php version in: tools>system info: [http://take.ms/8hUAA&#8221](http://take.ms/8hUAA&#8221);
   
   There’s no such option available.
 *  Thread Starter [nicol3](https://wordpress.org/support/users/nicol3/)
 * (@nicol3)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/parse-error-after-plugin-activation/#post-10045183)
 * I just checked with my hosting company and they confirmed that the site is running
   on PHP version 5.4.
 *  Plugin Author [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/parse-error-after-plugin-activation/#post-10045266)
 * You are right. That’s not possible – my fault.
 * Before I proceed I need to make 100% sure the php version you are using.
 * Please create a file with the following input:
 * <?php echo phpinfo();
 * Save it as info.php and upload it with ftp to your website and open it by visiting
   yoursite.com/info.php
 * Than please send me a link to your site to [support@wp-staging.com](https://wordpress.org/support/topic/parse-error-after-plugin-activation/support@wp-staging.com?output_format=md)
 * Do not post the link to that page here! These informations should not be shared
   to the public for the sake of security purposes.
 *  Plugin Author [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/parse-error-after-plugin-activation/#post-10045281)
 * I can also assist you with doing the steps so you can send me a mail either way.
 *  Thread Starter [nicol3](https://wordpress.org/support/users/nicol3/)
 * (@nicol3)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/parse-error-after-plugin-activation/#post-10045363)
 * I finally activated the plugin!
 * The system’s default version of PHP is 5.4 but it was configured to use PHP 5.2,
   hence the parse error, as you explained.
    I configured it to use PHP 5.4 but 
   my site went completely down and showing error 500. Then I set it to PHP 5.3 
   and managed to activate the plugin without parse error.
 * Let’s see if I can create a staging site and test plugin updates and a theme 
   change.
 * Thank you so much for your assistance, Rene.
 *  Plugin Author [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/parse-error-after-plugin-activation/#post-10048089)
 * You are welcome:-)

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

The topic ‘Parse Error After Plugin Activation’ is closed to new replies.

 * ![](https://ps.w.org/wp-staging/assets/icon-256x256.png?rev=2972932)
 * [WP STAGING - WordPress Backup, Restore & Migration](https://wordpress.org/plugins/wp-staging/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-staging/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-staging/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-staging/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-staging/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-staging/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/parse-error-after-plugin-activation/#post-10048089)
 * Status: resolved