Fatal error: Call to a member function __toString() on a non-object in /home/**/public_html/**/app/Mage.php on line 764 and below is the code near to 764 line
public static function logException(Exception $e)
{
if (!self::getConfig()) {
return;
}
$file = self::getStoreConfig('dev/log/exception_file');
self::log("\n" . $e->__toString(), Zend_Log::ERR, $file);
}
any reason why it is showing fatal error?
The Exception $e is the string. It doesn’t have the __toString() function.
You can try with :
or
or
^^