Title: Fatal errors when activating SG Optimizer
Last modified: December 6, 2018

---

# Fatal errors when activating SG Optimizer

 *  Resolved [cmatt](https://wordpress.org/support/users/cmatt/)
 * (@cmatt)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/fatal-errors-when-activating-sg-optimizer/)
 * Hi
 * I have a client who has three sites on his account each using SG Optimizer. I
   have been having an issue since the 5.0.4 update. The plugin installs but will
   not activate.
 * Getting error (some of parts omitted for privacy):
 * Fatal error: Can’t use method return value in write context in /home/(user)/public_html/(
   site root folder)/wp-content/plugins/sg-cachepress/core/Admin/Admin.php on line
   25
 * I have tried updating to 5.0.5 and today with 5.0.6 and still get errors when
   trying to activate.
 * I tried also removing the plugin folder and doing and fresh install to 5.0.5 
   but still got stuck with activate. However, I have not tried that today to 5.0.6

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

 *  Plugin Author [Hristo Pandjarov](https://wordpress.org/support/users/hristo-sg/)
 * (@hristo-sg)
 * SiteGround Representative
 * [7 years, 5 months ago](https://wordpress.org/support/topic/fatal-errors-when-activating-sg-optimizer/#post-10956769)
 * You are using an old PHP version for your site. Please, switch to PHP 5.6 at 
   least and everything will work just fine. You can do this from the PHP Version
   Manager tool in cPanel.
 *  [ppmcgeehan](https://wordpress.org/support/users/ppmcgeehan/)
 * (@ppmcgeehan)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-errors-when-activating-sg-optimizer/#post-11079781)
 * Hi,
 * Having an issue activating your plugin:
 * Fatal error: Can’t use method return value in write context in /var/www/vhosts/(
   site).ie/httpdocs/wp-content/plugins/sg-cachepress/core/Admin/Admin.php on line
   28
 * Line 28 reads: Line 28: if ( empty( $this->modules->get_active_tabs() ) ) {
 * Can you advise?
 * Thanks
    -  This reply was modified 7 years, 4 months ago by [ppmcgeehan](https://wordpress.org/support/users/ppmcgeehan/).
 *  Plugin Author [Hristo Pandjarov](https://wordpress.org/support/users/hristo-sg/)
 * (@hristo-sg)
 * SiteGround Representative
 * [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-errors-when-activating-sg-optimizer/#post-11079812)
 * From the folder structure I can see that you’re not on a SiteGround account. 
   The plugin won’t work on local host or other histing company.
 *  [ppmcgeehan](https://wordpress.org/support/users/ppmcgeehan/)
 * (@ppmcgeehan)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/fatal-errors-when-activating-sg-optimizer/#post-11082602)
 * Thanks for your reply… Any suggestions of how I can update the PHP version to
   either 5.6 or to 7.0 or 7.1, without SG?
    Thanks
 *  [nerebiglie](https://wordpress.org/support/users/nerebiglie/)
 * (@nerebiglie)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/fatal-errors-when-activating-sg-optimizer/#post-11678775)
 * Hi! I’ve used SG in my site today and all is down. I can’t open my access to 
   my homepage on wordpress. How can I back to previous situation before the installed
   SG?
    Thanks 🙁
 *  Plugin Author [Stanimir Stoyanov](https://wordpress.org/support/users/sstoqnov/)
 * (@sstoqnov)
 * SiteGround Representative
 * [6 years, 11 months ago](https://wordpress.org/support/topic/fatal-errors-when-activating-sg-optimizer/#post-11678780)
 * [@nerebiglie](https://wordpress.org/support/users/nerebiglie/) Please provide
   url to your site?
 *  [nerebiglie](https://wordpress.org/support/users/nerebiglie/)
 * (@nerebiglie)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/fatal-errors-when-activating-sg-optimizer/#post-11678790)
 * [http://www.lidodellesirenecavi.it](http://www.lidodellesirenecavi.it)
 *  Plugin Author [Stanimir Stoyanov](https://wordpress.org/support/users/sstoqnov/)
 * (@sstoqnov)
 * SiteGround Representative
 * [6 years, 11 months ago](https://wordpress.org/support/topic/fatal-errors-when-activating-sg-optimizer/#post-11678825)
 * Well I’ve checked your site and you are using Aruba, while this plugin works 
   on SiteGround hosting environment only.
 * Please delete the plugin folder and your site should work
 *  [nerebiglie](https://wordpress.org/support/users/nerebiglie/)
 * (@nerebiglie)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/fatal-errors-when-activating-sg-optimizer/#post-11678989)
 * I would to cancel the plugin, but I can’t made the login on WordPress!
 *  Thread Starter [cmatt](https://wordpress.org/support/users/cmatt/)
 * (@cmatt)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/fatal-errors-when-activating-sg-optimizer/#post-11679094)
 * Log into your hosting and use file manager to the plugins directory. You can 
   either delete or rename that folder. This should allow you to get back into WordPress.
 *  [btpcours](https://wordpress.org/support/users/btpcours/)
 * (@btpcours)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/fatal-errors-when-activating-sg-optimizer/#post-12247454)
 * i cant activate SG Optimizer can you help me to solve the problem, this the message
   of error:
    Plugin could not be activated because it triggered a fatal error. 
   The SG Optimizer plugin is designed to work only on SiteGround Servers. We’ve
   deactivated it because it may render your site blank if used on another environment.

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

The topic ‘Fatal errors when activating SG Optimizer’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

 * 11 replies
 * 1 participant
 * Last reply from: [btpcours](https://wordpress.org/support/users/btpcours/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/fatal-errors-when-activating-sg-optimizer/#post-12247454)
 * Status: resolved