[Vtigercrm-developers] Catchable fatal error: Object of class Accounts could not be converted to string in ...
Enrico Weigelt
weigelt at metux.de
Thu May 3 09:48:09 PDT 2007
Hi folks,
I've got lots of cases where PHP spits out an error message like:
"Catchable fatal error: Object of class Accounts could not
be converted to string in ....."
This is triggered by the $log->debug() calls at the head of many
functions, where an log message is cat'ed from the parameters.
Obviously PHP does not know what to do with objects if they
should be accessed as strings. No idea if there's an option for
controlling that or whether it depends on the PHP version.
For now I simply comment out these lines at my site, but that's
proably not the solution.
How can we cope with these cases ?
Write an generic ObjToString() function which handles that
(checks if its an object and then prints proper info, etc)
or add an toString() method to all classes ?
cu
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service
phone: +49 36207 519931 www: http://www.metux.de/
fax: +49 36207 519932 email: contact at metux.de
cellphone: +49 174 7066481
---------------------------------------------------------------------
-- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops --
---------------------------------------------------------------------
More information about the vtigercrm-developers
mailing list