WordPress.org

Ready to get started?Download WordPress

Forums

Taxonomy Metadata
[resolved] PHP warning when creating a new site multisite (3 posts)

  1. Joey Kudish
    Member
    Posted 1 year ago #

    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/

  2. hoeyjope
    Member
    Posted 1 year ago #

    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.

  3. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 5 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic