On 04/28/2009 09:11 AM, gianpaulo wrote:
> Hi,
>
> I tried including $persistentModel = true as suggested here :
> http://www.pseudocoder.com/archives/2009/03/17/8-ways-to-speed-up-cakephp-apps/comment-page-1/
>
> Well it did increase the speed of my app (about 200%) but I'm
> receiving this error when debug != 0
>
> Catchable fatal error: Object of class __PHP_Incomplete_Class could
> not be converted to string in    cake\libs\debugger.php on line 451
>
>    

I had a similar issue with PHP > 5.2.
This is a result of the fact that in 5.2 it is no longer possible to 
print an object e.g. "print $myObject". Instead, this will call to 
__toString(), which, if it does not exist, will cause the code to die 
with a catchable fatal error.

I've fixed it by adding a __toString() to my app_controller

E.i.
     public function __toString(){
         return "Needed to print an object";

     }
Googleing your error will help you more :-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to