• Resolved Joey Kudish

    (@jkudish)


    When I have this plugin network activated on a multisite network and create a new site, I get the following PHP warning:

    PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'new_blog' not found or invalid function name in .../wp-includes/plugin.php on line 406

    The error comes from, line 15:

    add_action('wpmu_new_blog', 'new_blog', 10, 6);

    It should read instead:

    add_action('wpmu_new_blog', array( $this, 'new_blog' ), 10, 6);

    Thanks

    http://wordpress.org/extend/plugins/taxonomy-metadata/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Excellent fix. I wasn’t getting any php errors but the plugin wasn’t creating the table in the database for wp_{blogid}_taxonomymeta for any site other than the initial site.

    Thanks for the fix.

    Thanks guys. I’m sorry this wasn’t taken care of earlier, but I just pushed a release which incorporates this fix.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP warning when creating a new site multisite’ is closed to new replies.