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

  1. Joey Kudish
    Posted 3 years 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);



  2. hoeyjope
    Posted 3 years 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)
    Plugin Author

    Posted 2 years 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

  • Taxonomy Metadata
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic