Title: WordPress warning upon plugin activation
Last modified: August 30, 2016

---

# WordPress warning upon plugin activation

 *  [harman79](https://wordpress.org/support/users/harman79/)
 * (@harman79)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/wordpress-warning-upon-plugin-activation/)
 * When I activate your plugin with Debug On I get: “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.) in /var/www/vhosts/m… on line 3622”
    I suppose
   this is something you have to look at.
 * [https://wordpress.org/plugins/mojo-under-construction/](https://wordpress.org/plugins/mojo-under-construction/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [mojowill](https://wordpress.org/support/users/mojowill/)
 * (@mojowill)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/wordpress-warning-upon-plugin-activation/#post-6831729)
 * I’ll add this to the list of things to fix. Thanks.

Viewing 1 replies (of 1 total)

The topic ‘WordPress warning upon plugin activation’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mojo-under-construction_ffffff.svg)
 * [Mojo Under Construction](https://wordpress.org/plugins/mojo-under-construction/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mojo-under-construction/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mojo-under-construction/)
 * [Active Topics](https://wordpress.org/support/plugin/mojo-under-construction/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mojo-under-construction/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mojo-under-construction/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [mojowill](https://wordpress.org/support/users/mojowill/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/wordpress-warning-upon-plugin-activation/#post-6831729)
 * Status: not resolved