i would like to create a new blog using my plugin.
The following lines of code just result in “Fatal error: Call to a member function init() on a non-object in /wp-admin/includes/upgrade.php on line 293” .
But when i look into my blog overview the new blog has been added successfully..
After refreshing my website the error message is not visible anymore.
$name = 'testblog'; $title = 'this is my testblog'; $user_id = '1'; wpmu_create_blog($current_site->domain, $current_site->path . $name .'/', $itle, $user_id);
So there is only an error message when wpmu_create_blog is executed.
Do u know why? :S
Thanks a lot!
- The topic ‘wpmu_create_blog() => Call to a member function init() on a non-object’ is closed to new replies.