WordPress.org

Ready to get started?Download WordPress

Forums

Configure SMTP
[resolved] Notice: register_uninstall_hook (4 posts)

  1. vegan
    Member
    Posted 3 years ago #

    when I try to activate the plugin I get the following php notice:

    Notice: register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. (This message was added in version 3.1.) in /mysite/wp-includes/functions.php on line 3422

    in the dashboard the following message is displayed:

    The plugin generated 321 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    do you need further information?

  2. ray
    Member
    Posted 3 years ago #

    Hi
    open the file plugins/configure-smtp/c2c-plugin.php in your favorite text editor.

    around line 96 change the line that reads:
    register_uninstall_hook( $this->plugin_file, array( &$this, 'uninstall' ) );
    to:
    register_uninstall_hook( $this->plugin_file, 'uninstall');
    now around line 125 change the line that reads:
    delete_option( $this->admin_options_name );
    to:
    delete_option( 'c2c_configure_smtp' );

    For the The plugin generated 321 characters of unexpected output during activation bit check to be sure there is no whitespace after the final ?> in this same file.

    thanks and good luck.
    Ray

    http://twentyfiveautumn.com

  3. Scott Reilly
    WordPress & Plugin Dev
    Plugin Author

    Posted 3 years ago #

    I've released v3.1 of the Configure SMTP plugin, which fixes this reported bug. Thanks.

  4. ray
    Member
    Posted 3 years ago #

    thanks Scott. This plugin is awesome for localhost development...
    Ray

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic