[wpmu-trac] [WordPress MU Trac] #1082: Error if Dashboard blog is different from default
WordPress MU Trac
wpmu-trac at lists.automattic.com
Wed Aug 5 19:03:56 UTC 2009
#1082: Error if Dashboard blog is different from default
----------------------------+-----------------------------------------------
Reporter: brunoalves | Owner: brunoalves
Type: defect | Status: new
Priority: high | Milestone:
Component: Administration | Version: 2.8.2
Severity: normal | Keywords: dashboard admin
----------------------------+-----------------------------------------------
Comment(by brunoalves):
Replying to [ticket:1082 brunoalves]:
> Changing Dashboard Blog into anything, breaks the blog everytime site
options are saved.
>
> Log Error message:
>
> PHP Catchable fatal error: Object of class WP_Error could not be
converted to string in wp-includes/wpmu-functions.php on line 107
To solve I've removed the trailing slash from dashboard blogs name:
File: wp-admin/wpmu-options.php Line: 91
From:
$blogname = str_replace( '.', '', str_replace( $current_site->domain .
$current_site->path, '', $details->domain . $details->path ) );
To:
$blogname = preg_replace('{/$}', '', str_replace( '.', '', str_replace(
$current_site->domain . $current_site->path, '', $details->domain .
$details->path ) ) );
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/1082#comment:1>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list