[wpmu-trac] [WordPress MU Trac] #505: Cannot convert WPError to string in wpmu_activate_site()

WordPress MU Trac wpmu-trac at lists.automattic.com
Tue Nov 20 20:19:33 GMT 2007


#505: Cannot convert WPError to string in wpmu_activate_site()
------------------------+---------------------------------------------------
 Reporter:  jeffayars   |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  component1  |     Version:          
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 I just got this error on my site debugging a blog creation error caused by
 a plug-in:

 Catchable fatal error: Object of class WP_Error could not be converted to
 string in \wordpressmu\wp-includes\wpmu-functions.php on line 1137

 That line is:

 error_log("Blog $blog_id failed to complete activation.", 0);

 At this point $blog_id is a WPError object.  svn blame says the last
 change to this line was revision 797.

 svn log says:
 ------------------------------------------------------------------------
 r797 | donncha | 2006-10-09 04:39:17 -0700 (Mon, 09 Oct 2006) | 2 lines

 WP Merge - needs testing.

 I believe the right fix is:

 error_log("Blog $signup->domain failed to complete activation with key
 $key, the blog already exists.", 0);

 It seems the domain that exists plus the activation key should help in
 site debugging.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/505>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list