Hi all,
When I try to configure Cookie validation in main.php (http://www.yiiframework.com/doc/guide/1.1/en/topics.security), the error "array to string conversion " is reported. What’s wrong with it? Can anybody help resolve it? Thanks!
Hi all,
When I try to configure Cookie validation in main.php (http://www.yiiframework.com/doc/guide/1.1/en/topics.security), the error "array to string conversion " is reported. What’s wrong with it? Can anybody help resolve it? Thanks!
Has anyone else tried it before?
Post your config and full error info please.
That’s the config content:
return array(
'components'=>array(
'request'=>array(
'enableCookieValidation'=>true,
),
),
);
And the error:
Error 500
Array to string conversion
you can refer to http://www.yiiframework.com/doc/guide/1.1/en/topics.security the third one:3. Cookie Attack Prevention.
if you have some good idea,email to zouliming888@gmail.com,thank you!
Enable YiiDebug in order to see all the stack trace.
Stack trace:
#0 D:\wwwroot\yii\framework\web\CController.php(278): SiteController->runAction()
#1 D:\wwwroot\yii\framework\web\CController.php(257): SiteController->runActionWithFilters()
#2 D:\wwwroot\yii\framework\web\CWebApplication.php(324): SiteController->run()
#3 D:\wwwroot\yii\framework\web\CWebApplication.php(121): CWebApplication->runController()
#4 D:\wwwroot\yii\framework\base\CApplication.php(135): CWebApplication->processRequest()
#5 D:\wwwroot\yii\35hui\index.php(11): CWebApplication->run()
REQUEST_URI=/yii/35hui/index.php?r=site/changeindexscroll&officeId=undefined
2010/11/25 15:16:51 [error] [php] Array to string conversion (D:\wwwroot\yii\framework\base\CSecurityManager.php:249)