PersistModel problem

2010-10-18 Thread sherzo

Hi all 

Today I noticed that the registration part of my web site stopped working! I
turned on the debug mode and I saw this error message: 
The script tried to execute a method or access a property of an incomplete
object. Please ensure that the class definition Registration 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 xxx 
I google it and I found out its related to the persistModel. I deleted the
whole cache and nothing changed! the I change the persistModel value from
true to false and then the site started to work! 
but I need the persistModel to be on! 
Any one knows how can I solve this problem? 

Thanks 
Sherry
-- 
View this message in context: 
http://cakephp.1045679.n5.nabble.com/PersistModel-problem-tp3217510p3217510.html
Sent from the CakePHP mailing list archive at Nabble.com.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: PersistModel problem

2010-10-18 Thread Miles J
I ran into this problem many times and never found a solution. It only
seemed to happen on apps with large sets of models and relations, so I
am assuming that the serialization of the objects is causing the model
relations to break or not work properly. I had to disable persistModel
and just stich with caching.

On Oct 18, 7:27 am, sherzo shahrzad.azimi...@gmail.com wrote:
 Hi all

 Today I noticed that the registration part of my web site stopped working! I
 turned on the debug mode and I saw this error message:
 The script tried to execute a method or access a property of an incomplete
 object. Please ensure that the class definition Registration 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 xxx
 I google it and I found out its related to the persistModel. I deleted the
 whole cache and nothing changed! the I change the persistModel value from
 true to false and then the site started to work!
 but I need the persistModel to be on!
 Any one knows how can I solve this problem?

 Thanks
 Sherry
 --
 View this message in 
 context:http://cakephp.1045679.n5.nabble.com/PersistModel-problem-tp3217510p3...
 Sent from the CakePHP mailing list archive at Nabble.com.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


$persistModel problem

2007-09-11 Thread thequietlab

Hi,

I'm getting this error (below) while refreshing the site after models
are
cached with $persistModel = true. It happens for all the models that
are using behaviors (Cake 1.2).


Fatal error: Model::findAll() [a href='http://php.net/function.Model-
findAll'function.Model-findAll/a]: The script tried to execute a
method or access a property of an incomplete object. Please ensure
that the class definition quot;SlugBehaviorquot; 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 G:
\wamp\libs\cake\cake\libs\model\model.php on line 1363

Could you try it with your applications if it's the same ? I'm not
sure if it's only me or cake problem.

Thanks,
Andrzej


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: $persistModel problem

2007-09-11 Thread majna

It's Cake, search this group.


On Sep 11, 10:07 pm, thequietlab [EMAIL PROTECTED] wrote:
 Hi,

 I'm getting this error (below) while refreshing the site after models
 are
 cached with $persistModel = true. It happens for all the models that
 are using behaviors (Cake 1.2).

 Fatal error: Model::findAll() [a href='http://php.net/function.Model-
 findAll'function.Model-findAll/a]: The script tried to execute a
 method or access a property of an incomplete object. Please ensure
 that the class definition quot;SlugBehaviorquot; 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 G:
 \wamp\libs\cake\cake\libs\model\model.php on line 1363

 Could you try it with your applications if it's the same ? I'm not
 sure if it's only me or cake problem.

 Thanks,
 Andrzej


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: $persistModel problem

2007-09-11 Thread thequietlab

thanks, I did my homework.

I found only one really relevant post (http://groups.google.com/group/
cake-php/browse_thread/thread/233dfa404006368b) it looks exactly like
my bug.

I contacted this guy but he said that this patch (https://
trac.cakephp.org/ticket/2540) fixed this problem for him. It does fix
one problem (there are some Warnings without this patch) but not the
main Fatal error.

Anyone tried to check what is happening down there ? Would be nice to
have some feedback before going down the code ;)


On Sep 11, 10:28 pm, majna [EMAIL PROTECTED] wrote:
 It's Cake, search this group.

 On Sep 11, 10:07 pm, thequietlab [EMAIL PROTECTED] wrote:

  Hi,

  I'm getting this error (below) while refreshing the site after models
  are
  cached with $persistModel = true. It happens for all the models that
  are using behaviors (Cake 1.2).

  Fatal error: Model::findAll() [a href='http://php.net/function.Model-
  findAll'function.Model-findAll/a]: The script tried to execute a
  method or access a property of an incomplete object. Please ensure
  that the class definition quot;SlugBehaviorquot; 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 G:
  \wamp\libs\cake\cake\libs\model\model.php on line 1363

  Could you try it with your applications if it's the same ? I'm not
  sure if it's only me or cake problem.

  Thanks,
  Andrzej


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---