Title: Can&#8217;t activate. Parse error: syntax error
Last modified: January 12, 2021

---

# Can’t activate. Parse error: syntax error

 *  Resolved [gcdels46](https://wordpress.org/support/users/gcdels46/)
 * (@gcdels46)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/cant-activate-parse-error-syntax-error/)
 * Hi team,
 * I’ve tried to active this plugin in a couple of domains today, and getting the
   same error in both – different servers.
 * Once I try to active, the message I got is:
 * Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier(
   T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in /usr/home/domain.com/web/
   wp-content/plugins/wp-staging/wp-staging.php on line 45.
 * I wonder what may the issue here 🙁
 * Thanks a lot!

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

 *  Plugin Contributor [alaasalama](https://wordpress.org/support/users/alaasalama/)
 * (@alaasalama)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/cant-activate-parse-error-syntax-error/#post-13899178)
 * Hi [@gcdels46](https://wordpress.org/support/users/gcdels46/)
    It looks like 
   both servers have PHP version older than 5.5? Actually the plugin supports PHP
   version 5.5 or greater, and WordPress itself recommends PHP version 7.4 or greater.
   [https://wordpress.org/about/requirements/](https://wordpress.org/about/requirements/)
 * Actually, PHP 5.5 was released back in 2013, if you are running an older version
   than that, then you are running something that is more than 8 years old! I highly
   recommend upgrading PHP version on these servers for both security and performance
   reasons.
 * Thanks,
    Alaa
 *  Plugin Author [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/cant-activate-parse-error-syntax-error/#post-13906582)
 * Hello [@gcdels46](https://wordpress.org/support/users/gcdels46/)
 * Please let us know your PHP version.

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

The topic ‘Can’t activate. Parse error: syntax error’ 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/cant-activate-parse-error-syntax-error/#post-13906582)
 * Status: resolved