Title: Error when uninstalling plugin
Last modified: April 8, 2024

---

# Error when uninstalling plugin

 *  [tomass55](https://wordpress.org/support/users/tomass55/)
 * (@tomass55)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/error-when-uninstalling-plugin/)
 * Hello,
 * I downloaded a plugin and then chose to deatctivate and delete. The plugin is
   called **Social Web Suite – Social Media Auto Post, Auto Publish and Schedule**.
 * WordPress is showing it as “deleting” but I recevied and error message. The error
   messages reads… _**Deletion failed: Fatal error: Uncaught Error: Undefined constant&
   quot;WP\_UNINSTALL\_PLUGIN&quot; in /var/www/wp-content/plugins/social-web-suite/
   includes/libs/class-socialwebsuite-setup.php:92 Stack trace: #0 /var/www/wp-content/
   plugins/social-web-suite/includes/class-socialwebsuite.php(160): SocialWebSuite\
   _Setup::uninstall() #1 /var/www/wp-includes/class-wp-hook.php(324): SocialWebSuite::
   uninstall\_plugin(”) #2 /var/www/wp-includes/class-wp-hook.php(348): WP\_Hook-&
   gt;apply\_filters(”, Array) #3 /var/www/wp-includes/plugin.php(517): WP\_Hook-&
   gt;do\_action(Array) #4 /var/www/wp-admin/includes/plugin.php(1269): do\_action(‘
   uninstall\_socia…’) #5 /var/www/wp-admin/includes/plugin.php(960): uninstall\
   _plugin(‘social-web-suit…’) #6 /var/www/wp-admin/includes/ajax-actions.php(4748):
   delete\_plugins(Array) #7 /var/www/wp-includes/class-wp-hook.php(324): wp\_ajax\
   _delete\_plugin(”) #8 /var/www/wp-includes/class-wp-hook.php(348): WP\_Hook-&
   gt;apply\_filters(”, Array) #9 /var/www/wp-includes/plugin.php(517): WP\_Hook-&
   gt;do\_action(Array) #10 /var/www/wp-admin/admin-ajax.php(188): do\_action(‘wp\
   _ajax\_delete-…’) #11 {main} thrown in /var/www/wp-content/plugins/social-web-
   suite/includes/libs/class-socialwebsuite-setup.php on line 92 There has been 
   a critical error on this website.Learn more about troubleshooting WordPress.**_
 * can you please assist.
 * thank you.

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

 *  Plugin Author [Dejan Markovic](https://wordpress.org/support/users/dejanmarkovic/)
 * (@dejanmarkovic)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/error-when-uninstalling-plugin/#post-17560682)
 * Hi [@tomass55](https://wordpress.org/support/users/tomass55/),
 * Thank you for reaching out!
 * We are looking into the issue and will let you know when we fix it.
 * Sorry for the inconvenience.
 * Dejan
 *  Plugin Author [Dejan Markovic](https://wordpress.org/support/users/dejanmarkovic/)
 * (@dejanmarkovic)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/error-when-uninstalling-plugin/#post-17639719)
 * Hi [@tomass55](https://wordpress.org/support/users/tomass55/), the issue has 
   been fixed and you shouild just update the plugin to get the latest code and 
   then uninstal it.
 * Note for developers ‘check_admin_referer’ was throwing the false.

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

The topic ‘Error when uninstalling plugin’ is closed to new replies.

 * ![](https://ps.w.org/social-web-suite/assets/icon-256x256.png?rev=2164918)
 * [Social Web Suite - Social Media Auto Post, Social Media Auto Publish](https://wordpress.org/plugins/social-web-suite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/social-web-suite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/social-web-suite/)
 * [Active Topics](https://wordpress.org/support/plugin/social-web-suite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/social-web-suite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/social-web-suite/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dejan Markovic](https://wordpress.org/support/users/dejanmarkovic/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/error-when-uninstalling-plugin/#post-17639719)
 * Status: not resolved