Just change DebugKit configuration:
'DebugKit.Toolbar' => array('panels' => array('history' => false));
On Friday, May 18, 2012 11:44:29 AM UTC-4:30, MThomas wrote:
>
> Hi!
>
> First of all I'm pretty new to CakePHP. Although it sometimes gives me
> headaches I love.
>
> On problem keeps coming up and I really do not know what it is caused
> by. The following error keeps popping up: "[Exception] Serialization
> of 'Closure' is not allowed". I'm using a Amazon EC2 and Ubuntu is
> installed.
>
> Any thoughts on this matter?
>
> The error in more detail:
>
> Fatal Error (256): [Exception] Serialization of 'Closure' is not
> allowed
> #0 /var/www/example.com/htdocs/cakephp/lib/Cake/Cache/Engine/
> FileEngine.php(0): serialize()
> #1 /var/www/example.com/htdocs/cakephp/lib/Cake/Cache/Cache.php(295):
> FileEngine->write('cake_toolbar_ca...', Array, 14400)
> #2 /var/www/example.com/htdocs/cakephp/app/Plugin/debug_kit/Controller/
> Component/ToolbarComponent.php(437)<http://example.com/htdocs/cakephp/app/Plugin/debug_kit/Controller/Component/ToolbarComponent.php(437)>:
>
>
> Cache::write('toolbar_cachee5...', Array, 'debug_kit')
> #3 /var/www/example.com/htdocs/cakephp/app/Plugin/debug_kit/Controller/
> Component/ToolbarComponent.php(309)<http://example.com/htdocs/cakephp/app/Plugin/debug_kit/Controller/Component/ToolbarComponent.php(309)>:
>
> ToolbarComponent-
> >_saveState(Object(CakeErrorController), Array)
> #4 [internal function]: ToolbarComponent-
> >beforeRender(Object(CakeErrorController))
> #5 /var/www/example.com/htdocs/cakephp/lib/Cake/Utility/
> ObjectCollection.php(130): call_user_func_array(Array, Array)
> #6 [internal function]: ObjectCollection->trigger(Object(CakeEvent))
> #7 /var/www/example.com/htdocs/cakephp/lib/Cake/Event/
> CakeEventManager.php(246): call_user_func(Array, Object(CakeEvent))
> #8 /var/www/example.com/htdocs/cakephp/lib/Cake/Controller/
> Controller.php(924): CakeEventManager->dispatch(Object(CakeEvent))
> #9 /var/www/example.com/htdocs/cakephp/lib/Cake/Error/
> ExceptionRenderer.php(285): Controller->render('error500')
> #10 /var/www/example.com/htdocs/cakephp/lib/Cake/Error/
> ExceptionRenderer.php(267): ExceptionRenderer-
> >_outputMessageSafe('error500')
> #11 /var/www/example.com/htdocs/cakephp/lib/Cake/Error/
> ExceptionRenderer.php(187): ExceptionRenderer-
> >_outputMessage('missingBehavior')
> #12 [internal function]: ExceptionRenderer-
> >_cakeError(Object(MissingBehaviorException))
> #13 /var/www/example.com/htdocs/cakephp/lib/Cake/Error/
> ExceptionRenderer.php(165): call_user_func_array(Array, Array)
> #14 /var/www/example.com/htdocs/cakephp/lib/Cake/Error/
> ErrorHandler.php(127): ExceptionRenderer->render()
> #15 [internal function]:
> ErrorHandler::handleException(Object(MissingBehaviorException))
> #16 {main} [CORE/Cake/Error/ErrorHandler.php, line 136]
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php