I did some debugging/testing of my own and think I may have found a temporary fix. Keep in mind this might only work in my specific situation, and even then only for the moment. But I'm posting it here just in case someone stumbles in with the same issue and is looking for a quick fix.
In the User Registration plugin, in the userregistration.php file on line 2014, you have the function that actually creates the blog. I just modified it from what it was to this:
$blog_id = wpmu_create_blog($site_data['domain'], '/' . $site_data['path'], $site_data['title'], $user_id , array( 'public' => 1 ), $current_site->id);
My addition was only five characters, four if you don't count spaces :). Basically I added the '/' before $site_data['path']. And at least for now, that seems to have solved it for me. If I have more time I'll dig further in and try to find out why the plugin isn't providing that slash when it should be, but for now I'm just happy it's temporarily working.
Posted 10 years ago on Sunday April 28, 2013 |
Permalink