tags:

views:

46

answers:

1

I create a subdomain in Wordpress MU and then when I go to that subdomain, I get this error:

Catchable fatal error: Object of class WP_Error could not be converted 
to string in /home/pahouse1/public_html/wp-content/mu-plugins/lifetime
/syncronize.php on line 450**

Did anyone face the same issue? What can I do about this?

+1  A: 

A bit more code would be nice.

Normally this means you are trying to print an object. Something like this:

$a = new ObjectA();
echo $a;

Which is not possible because, as the error says, a (in this case object) class cannot be converted to a string.

You can change this by implementing the magic __toString method in the class.

Full information can be found at:

http://www.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring
Stegeman