Title: Cannot uninstall wordpress plugin &#8220;Speed Optimizer&#8221;
Last modified: April 21, 2024

---

# Cannot uninstall wordpress plugin “Speed Optimizer”

 *  Resolved [nek12](https://wordpress.org/support/users/nek12/)
 * (@nek12)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/cannot-uninstall-wordpress-plugin-speed-optimizer/)
 * Hello, i cannot uninstall the plugin, i see in wordpress a message “Deletion 
   failed: There has been a critical error on this website.Learn more about troubleshooting
   WordPress.”
 * I have tried to activate / deactivate / uninstall but no luck
 * Looking in my server logs i see this error
 * 2550149#0: *72816 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught
   TypeError: array_key_exists(): Argument #1 ($key) must be a valid array offset
   type in /var/www/vhosts/mywebsite.com/httpdocs/wp-content/plugins/sg-cachepress/
   vendor/siteground/siteground-data/src/Settings.php:352
   Stack trace:#0 /var/www/
   vhosts/mywebsite.com/httpdocs/wp-content/plugins/sg-cachepress/vendor/siteground/
   siteground-data/src/Settings.php(352): array_key_exists()#1 /var/www/vhosts/mywebsite.
   com/httpdocs/wp-content/plugins/sg-cachepress/vendor/siteground/siteground-data/
   src/Settings.php(292): SiteGround_Data\Settings->get_hosting_provider()#2 /var/
   www/vhosts/[](https://ip-server.athenspsirihotel.com:8443/smb/file-manager/code-editor?currentDir=%2Fhttpdocs%2Fwp-content%2Fplugins%2Fsg-cachepress%2Fvendor%2Fsiteground%2Fsiteground-data%2Fsrc&subscriptionId=4&file=Settings.php&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F4)
   mywebsite.com/httpdocs/wp-content/plugins/sg-cachepress/vendor/siteground/siteground-
   data/src/Settings.php(213): SiteGround_Data\Settings->get_main_data()#3 /var/
   www/vhosts/[](https://ip-server.athenspsirihotel.com:8443/smb/file-manager/code-editor?currentDir=%2Fhttpdocs%2Fwp-content%2Fplugins%2Fsg-cachepress%2Fvendor%2Fsiteground%2Fsiteground-data%2Fsrc&subscriptionId=4&file=Settings.php&redirect=%2Fsmb%2Flog-file%2Fbrowser%2Fid%2F4)
   mywebsite.com/httpdocs/wp-content/plugins/sg-cachepress/vendor/siteground/siteground-
   data/src/Settings.php(139): SiteGround_Data\Settings->prepare_data()#4 /var/www/
   vhosts/mywebsite.com” while reading response header from upstream
    -  This topic was modified 2 years, 1 month ago by [nek12](https://wordpress.org/support/users/nek12/).
    -  This topic was modified 2 years, 1 month ago by [nek12](https://wordpress.org/support/users/nek12/).
    -  This topic was modified 2 years, 1 month ago by [nek12](https://wordpress.org/support/users/nek12/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcannot-uninstall-wordpress-plugin-speed-optimizer%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Simeon Boev](https://wordpress.org/support/users/k3llanved/)
 * (@k3llanved)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/cannot-uninstall-wordpress-plugin-speed-optimizer/#post-17702873)
 * Hello,
 * I recommend deactivating all plugins and changing the theme to a default WordPress
   theme if possible and then attempting to delete the plugin. Another method you
   could try is using WP-CLI if it’s available. Last but not least take a look if
   the plugin files/folders have sufficient writing/reading permissions.
 * Best Regards,
 * Simeon Boev
 *  Thread Starter [nek12](https://wordpress.org/support/users/nek12/)
 * (@nek12)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/cannot-uninstall-wordpress-plugin-speed-optimizer/#post-17702892)
 * Deactivating all plugins and changing theme didnt work, i deleted the SG folder
   from the sites file directory in plesk 👍
 *  [generosus](https://wordpress.org/support/users/generosus/)
 * (@generosus)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/cannot-uninstall-wordpress-plugin-speed-optimizer/#post-17708362)
 * Hi [@nek12](https://wordpress.org/support/users/nek12/),
 * Please follow [these instructions](https://wordpress.org/support/topic/how-to-completely-uninstall-sg-optimizer-detailed-instructions/)
   to completely uninstall Speed Optimizer.
 * Hi [@k3llanved](https://wordpress.org/support/users/k3llanved/),
 * Can you guys kindly pin [this topic](https://wordpress.org/support/topic/how-to-completely-uninstall-sg-optimizer-detailed-instructions/)?
   Helpful and a time saver!
 * Thank you!

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

The topic ‘Cannot uninstall wordpress plugin “Speed 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/)

 * 3 replies
 * 3 participants
 * Last reply from: [generosus](https://wordpress.org/support/users/generosus/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/cannot-uninstall-wordpress-plugin-speed-optimizer/#post-17708362)
 * Status: resolved