Support » Plugin: Page Meta » [Plugin: Page Meta] Errors on activation and deactivation

  • Resolved wpsecuritylock


    I copied this from a previous reply I posted on the forum and realized I should put it here since this plugin appears to be broken.

    The plugin generated 278 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.

    When I deactivate it, I get this error (but it flashes really fast):

    Warning: call_user_func_array()[]: First argument is expected to be a valid callback, ‘Array’ was giving in /wp-includes/plugin.php on line 405.

    Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I found the source of the activation error and am looking for the most appropriate place to post about it. (This is my first plugin bug find!)

    Inside the pagemeta folder, in the file index.php lines 29-30 show the following:

    register_activation_hook(__FILE__, array(&$pageMeta, 'activate'));
    register_deactivation_hook(__FILE__, array(&$pageMeta, 'deactivate'));

    Change both of the ‘$pageMeta’ variables to ‘$this’:

    register_activation_hook(__FILE__, array(&$this, 'activate'));
    register_deactivation_hook(__FILE__, array(&$this, 'deactivate'));

    After this change I no longer get the warning message on activation.

    this does indeed fix the plugin for wp 3.3.2 as well

    … though not entirely. it also apparently alters the in-page Title as well as the <title> which is completely undesirable. This *may* be due to how the particular theme operates, so I will test further.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Page Meta] Errors on activation and deactivation’ is closed to new replies.