Title: error: register_uninstall_hook
Last modified: November 20, 2019

---

# error: register_uninstall_hook

 *  Resolved [kirillm](https://wordpress.org/support/users/kirillm/)
 * (@kirillm)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-register_uninstall_hook/)
 * Hello. After uninstalling old version of plugin that was distributed via your
   website and installing and activating new one via wordpress plugin page I’ve 
   got this error message.
 * Notice: register_uninstall_hook was called incorrectly. Only a static class method
   or function can be used in an uninstall hook. Please see Debugging in WordPress
   for more information. (This message was added in version 3.1.0.) in /home/viewcyco/
   public_html/wp-includes/functions.php on line 4903
    Warning: Cannot modify header
   information – headers already sent by (output started at /home/viewcyco/public_html/
   wp-includes/functions.php:4903) in /home/viewcyco/public_html/wp-includes/functions.
   php on line 5946 Warning: Cannot modify header information – headers already 
   sent by (output started at /home/viewcyco/public_html/wp-includes/functions.php:
   4903) in /home/viewcyco/public_html/wp-admin/includes/misc.php on line 1252 Warning:
   Cannot modify header information – headers already sent by (output started at/
   home/viewcyco/public_html/wp-includes/functions.php:4903) in /home/viewcyco/public_html/
   wp-admin/admin-header.php on line 9
 * I was trying to switch themes, deactivated and uninstall other plugins and scripts
   but while ‘Garden Gnome Package’ is activated I’m seeing this error message.
 * Is there anything else I could do to solve the problem.
 * Regards,
    Kirill M.

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

 *  Thread Starter [kirillm](https://wordpress.org/support/users/kirillm/)
 * (@kirillm)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/error-register_uninstall_hook/#post-12399616)
 * Anybody alive?
 *  [rickoz1](https://wordpress.org/support/users/rickoz1/)
 * (@rickoz1)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-register_uninstall_hook/#post-12665444)
 * Hi, I am having exactly the same issue ? Did you get a resolution ? Did you find
   a work around ?
 * I activate the plugin and get he same results.
 *  Thread Starter [kirillm](https://wordpress.org/support/users/kirillm/)
 * (@kirillm)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/error-register_uninstall_hook/#post-12665473)
 * Hello rickoz1.
    The only solution I’ve found is to turn off all WP debug options(
   debug itself, notifications). So problem is not resolved completely but now there’s
   no error messages and plugin seems to be working fine.
 *  Plugin Author [Chief Gnome](https://wordpress.org/support/users/ggnomes/)
 * (@ggnomes)
 * [6 years ago](https://wordpress.org/support/topic/error-register_uninstall_hook/#post-12857522)
 * I have now fixed this with version 2.2.1
 *  Thread Starter [kirillm](https://wordpress.org/support/users/kirillm/)
 * (@kirillm)
 * [6 years ago](https://wordpress.org/support/topic/error-register_uninstall_hook/#post-12858042)
 * Thank you!

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

The topic ‘error: register_uninstall_hook’ is closed to new replies.

 * ![](https://ps.w.org/garden-gnome-package/assets/icon.svg?rev=2307787)
 * [Garden Gnome Package](https://wordpress.org/plugins/garden-gnome-package/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/garden-gnome-package/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/garden-gnome-package/)
 * [Active Topics](https://wordpress.org/support/plugin/garden-gnome-package/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/garden-gnome-package/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/garden-gnome-package/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [kirillm](https://wordpress.org/support/users/kirillm/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/error-register_uninstall_hook/#post-12858042)
 * Status: resolved