Hi,
i created a staging enviroment in settings.yml:
staging:
.settings:
web_debug: true
cache: true
no_script_name: true
etag: true
When i access to the first page i got no problem, then i login and i got a
500 error:
sfParameterHolder::serialize() must return a string or NULL
at *serialize*()
in *SF_ROOT_DIR/lib/vendor/symfony/lib/view/sfViewCacheManager.class.php*line 0
at *sfViewCacheManager->computeCacheKey*(*array*('user' => *object*('myUser'),
'isProfileAthenticatedUser' => 1))
in *SF_ROOT_DIR/lib/vendor/symfony/lib/view/sfViewCacheManager.class.php*line
718 ..
1. */
2. public function checkCacheKey(array & $parameters)
3. {
4. $parameters['sf_cache_key'] = $this->computeCacheKey(
$parameters);
5.
6. return $parameters['sf_cache_key'];
7. }
at *sfViewCacheManager->checkCacheKey*(*array*('user' => *object*('myUser'),
'isProfileAthenticatedUser' => 1))
in *SF_ROOT_DIR/lib/vendor/symfony/lib/view/sfPartialView.class.php* line
145 ...
1. return null;
2. }
3.
4. $this->cacheKey = $this->viewCache->checkCacheKey($this->
partialVars);
5. if ($retval = $this->viewCache->getPartialCache($this->
moduleName, $this->actionName, $this->cacheKey))
6. {
7. return $retval;
at *sfPartialView->getCache*()
in *SF_ROOT_DIR/lib/vendor/symfony/lib/view/sfPartialView.class.php* line 91
...
1. $timer = sfTimerManager::getTimer(sprintf('Partial "%s/%s"',
$this->moduleName, $this->actionName));
2. }
3.
4. if ($retval = $this->getCache())
5. {
6. return $retval;
7. }
Frontend_staging.log:
Nov 03 23:07:45 symfony [info] {sfPatternRouting} Connect sfRoute
"sf_guard_signin" (/login)
Nov 03 23:07:45 symfony [info] {sfPatternRouting} Connect sfRoute
"sf_guard_signout" (/logout)
Nov 03 23:07:45 symfony [info] {sfPatternRouting} Connect sfRoute
"sf_guard_password" (/request_password)
Nov 03 23:07:45 symfony [info] {sfPatternRouting} Match route
"user_logged_homepage" (/home) for /home with parameters array ( 'module'
=> 'homepage', 'action' => 'userLoggedHomepage',)
Nov 03 23:07:45 symfony [info] {sfFilterChain} Executing filter
"sfRenderingFilter"
Nov 03 23:07:45 symfony [info] {sfFilterChain} Executing filter
"sfCacheFilter"
Nov 03 23:07:45 symfony [info] {sfFilterChain} Executing filter
"sfExecutionFilter"
Nov 03 23:07:45 symfony [info] {homepageActions} Call
"homepageActions->executeUserLoggedHomepage()"
Nov 03 23:07:45 symfony [info] {Doctrine_Connection_Mysql} exec : SET NAMES
'utf8' - ()
Nov 03 23:07:45 symfony [info] {Doctrine_Connection_Statement} execute :
SELECT s.id AS s__id, s.username AS s__username, s.algorithm AS
s__algorithm, s.salt AS s__salt, s.password AS
[..,]
Nov 03 23:07:45 symfony [info] {sfViewCacheManager} Cache for
"homepage/userLoggedHomepage" does not exist
Nov 03 23:07:45 symfony [info] {sfPHPView} Render
"/www/apps/frontend/modules/homepage/templates/userLoggedHomepageSuccess.php"
Nov 03 23:07:45 symfony [info] {main} Set slot "profile_widget"
Nov 03 23:07:45 symfony [info] {sfViewCacheManager} Generate cache key
Nov 03 23:07:46 symfony [err] {Exception} sfParameterHolder::serialize()
must return a string or NULL
Nov 03 23:07:46 symfony [info] {sfWebResponse} Send status "HTTP/1.1 500
Internal Server Error"
Nov 03 23:07:46 symfony [info] {sfWebResponse} Send header "Content-Type:
text/html; charset=utf-8"
Nov 03 23:07:46 symfony [info] {sfWebDebugLogger} Configuration 117.47 ms
(12)
Nov 03 23:07:46 symfony [info] {sfWebDebugLogger} Factories 13.75 ms (1)
Nov 03 23:07:46 symfony [info] {sfWebDebugLogger} Action
"homepage/userLoggedHomepage" 60.21 ms (1)
Nov 03 23:07:46 symfony [info] {sfWebDebugLogger} Database (Doctrine) 0.02
ms (3)
Nov 03 23:07:46 symfony [info] {sfWebDebugLogger} View "Success" for
"homepage/userLoggedHomepage" 235.20 ms (1)
Nov 03 23:07:46 symfony [info] {sfWebDebugLogger} Partial
"homepage/_user_profile_widget" 111.42 ms (1)
and stops here...
suggestions?
thanks,
cirpo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---