Tuesday, June 2, 2009

Re: Persistent model to true -> Fatal error

Are you using the ClassRegistry or manually importing classes
(specifically Models) using App::import anywhere ?

What version of CakePHP are you running?

-j.

pauloamgomes wrote:
> Hi all,
>
> when i activate persistent model to true in my application, it breaks
> my models, I'm getting the following fatal errors:
>
> Fatal error: PhotosController::index() [<a href='http://php.net/
> photoscontroller.index'>photoscontroller.index</a>]: The script tried
> to execute a method or access a property of an incomplete object.
> Please ensure that the class definition &quot;Albuns&quot; of the
> object you are trying to operate on was loaded _before_ unserialize()
> gets called or provide a __autoload() function to load the class
> definition in /Volumes/Data/paulogomes/www/pg/controllers/
> photos_controller.php on line 32
> ---
> Fatal error: BehaviorCollection::trigger() [<a href='http://php.net/
> behaviorcollection.trigger'>behaviorcollection.trigger</a>]: The
> script tried to execute a method or access a property of an incomplete
> object. Please ensure that the class definition
> &quot;ExtendAssociationsBehavior&quot; of the object you are trying to
> operate on was loaded _before_ unserialize() gets called or provide a
> __autoload() function to load the class definition in /Volumes/Data/
> paulogomes/www/cake/libs/model/behavior.php on line 456
> ---
> Fatal error: ResourcesController::index() [<a href='http://php.net/
> resourcescontroller.index'>resourcescontroller.index</a>]: The script
> tried to execute a method or access a property of an incomplete
> object. Please ensure that the class definition &quot;Types&quot; of
> the object you are trying to operate on was loaded _before_ unserialize
> () gets called or provide a __autoload() function to load the class
> definition in /Volumes/Data/paulogomes/www/pg/controllers/
> resources_controller.php on line 29
>
> the error only occurs on second call of controller, after persistent
> cache files created on tmp.
> I'm using cakephp 1.2 running on leopard with php 5.2.6.
>
>
> Any ideas?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: