PHP Error
描述
Object of class UserMenu could not be converted to string
源文件
D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yii\web\CController.php(343)
00331:
00332: /**
00333: * Postprocesses the dynamic output.
00334: * This method is internally used. Do not call this method directly.
00335: * @param string output to be processed
00336: * @return string the processed output
00337: * @since 1.0.4
00338: */
00339: public function processDynamicOutput($output)
00340: {
00341: if($this->_dynamicOutput)
00342: {
00343: $output=preg_replace_callback(’/<###dynamic-(\d+)###>/’,array($this,‘replaceDynamicOutput’),$output);
00344: $this->_dynamicOutput=null;
00345: }
00346: return $output;
00347: }
00348:
00349: /**
00350: * Replaces the dynamic content placeholders with actual content.
00351: * This is a callback function used internally.
00352: * @param array matches
00353: * @return string the replacement
00354: * @see processOutput
00355: */
堆栈追踪
#0 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yii\web\CController.php(343): preg_replace_callback()
#1 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yii\web\widgets\COutputCache.php(194): PostController->processDynamicOutput()
#2 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yii\web\widgets\COutputCache.php(148): COutputCache->run()
#3 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yii\web\filters\CFilterChain.php(126): COutputCache->filter()
#4 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yii\web\filters\CFilter.php(41): CFilterChain->run()
#5 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yii\web\CController.php(983): CAccessControlFilter->filter()
#6 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yii\web\filters\CInlineFilter.php(59): PostController->filterAccessControl()
#7 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yii\web\filters\CFilterChain.php(126): CInlineFilter->filter()
#8 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yii\web\CController.php(283): CFilterChain->run()
#9 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yii\web\CController.php(257): PostController->runActionWithFilters()
#10 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yii\web\CWebApplication.php(320): PostController->run()
#11 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yii\web\CWebApplication.php(120): CWebApplication->runController()
#12 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\yii\base\CApplication.php(135): CWebApplication->processRequest()
#13 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\myapp\index.php(11): CWebApplication->run()
2010-03-16 01:05:21 Apache/2.2.14 (Win32) PHP/5.2.6 Yii Framework/1.1.0