when creating the first yii application according to the documentation I get following error when calling site via browser:
PHP Error
Description
mb_strrpos() [<a href='function.mb-strrpos'>function.mb-strrpos</a>]: Empty haystack
Source File
/var/www/html/yii-1.0.1.r473/framework/web/CWebApplication.php(131)
00119: else
00120: list($controllerID,$actionID)=$this->resolveRequest();
00121: $this->runController($controllerID,$actionID);
00122: }
00123:
00124: /**
00125: * Resolves the current request into controller and action.
00126: * @return array controller ID and action ID.
00127: */
00128: protected function resolveRequest()
00129: {
00130: $route=$this->getUrlManager()->parseUrl($this->getRequest());
00131: if(($pos=strrpos($route,'/'))!==false)
00132: return array(substr($route,0,$pos),(string)substr($route,$pos+1));
00133: else
00134: return array($route,'');
00135: }
00136:
00137: /**
00138: * Creates the controller and performs the specified action.
00139: * @param string controller ID
00140: * @param string action ID
00141: * @throws CHttpException if the controller could not be created.
00142: */
00143: public function runController($controllerID,$actionID)
Stack Trace
#0 /var/www/html/yii-1.0.1.r473/framework/web/CWebApplication.php(131): mb_strrpos()
#1 /var/www/html/yii-1.0.1.r473/framework/web/CWebApplication.php(120): CWebApplication->resolveRequest()
#2 /var/www/html/yii-1.0.1.r473/framework/base/CApplication.php(162): CWebApplication->processRequest()
#3 /var/www/html/fm/index.php(11): CWebApplication->run()
This error occures on CentOS 5.2 with php 5.1.6 installed and with yii-1.0.0 and yii-1.0.1.
I've tried to log $this->getRequest() to error log - The only entry is: 1
Please tell me which further steps should be performed to investigate the error.
Best Regards
Senator

Help











