ParseError

syntax error, unexpected end of file

/var/www/ishooter/data/protected/components/SHttpRequest.php(136)

124      * @return string Parsed path info without lang prefix.
125      */
126     public function getPathInfo()
127     {
128         $langCode = null;
129 
130         if(null === $this->_pathInfo)
131         {
132             $pathInfo = parent::getPathInfo();
133 
134             $parts = explode('/', $pathInfo);
135 
136             if (in_array($parts[0], Yii::app()->languageManager->getCodes()))
137             {
138                 // Valid language code detected.
139                 // Remove it from url path to make route work and activate lang
140                 $langCode = $parts[0];
141 
142                 // If language code is equal default - show 404 page
143                 if($langCode === Yii::app()->languageManager->default->code)
144                     throw new CHttpException(404, Yii::t('core', 'Page not found'));
145 
146                 unset($parts[0]);
147                 $pathInfo = implode('/', $parts);
148             }

Stack Trace

#0
+
 /var/www/ishooter/data/protected/components/SModelEventManager.php(46): SystemModules::loadEventsFile()
41      * @static
42      */
43     public static function init()
44     {
45         self::$initialized = true;
46         SystemModules::loadEventsFile();
47 
48         foreach(SystemModules::getInstalled() as $module)
49         {
50             $className = ucfirst($module->name).'ModuleEvents';
51             $eventsModuleAlias = 'application.modules.' . $module->name . '.config.' . $className;
#1
+
 /var/www/ishooter/data/protected/components/SModelEventManager.php(73): SModelEventManager::init()
68      * @param CActiveRecord $object
69      */
70     public static function attachEvents(CActiveRecord $object)
71     {
72         if(self::$initialized === false)
73             self::init();
74 
75         if(isset(self::$events[get_class($object)]))
76         {
77             $events = self::$events[get_class($object)];
78             foreach($events as $e)
#2
+
 /var/www/ishooter/data/protected/modules/core/models/BaseModel.php(8): SModelEventManager::attachEvents(SSystemLanguage)
03 class BaseModel extends CActiveRecord
04 {
05     public function init()
06     {
07         if(isset(Yii::app()->session))
08             SModelEventManager::attachEvents($this);
09     }
10 
11     public function attributeLabel($attributeName)
12     {
13         return $this->getAttributeLabel($attributeName) . ($this->isAttributeRequired($attributeName) ? ' *' : null);
2024-03-29 13:01:12 Apache/2.4.6 () OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 Yii Framework/1.1.23