Support » Plugin: Configure SMTP » [Plugin: Configure SMTP] Notice: register_uninstall_hook

  • Resolved vegan

    (@vegan)


    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?

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

    (@evil-genius)

    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

    Plugin Author Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

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

    ray

    (@evil-genius)

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Configure SMTP] Notice: register_uninstall_hook’ is closed to new replies.