Exception

/home/t/timonovo/timonovo7/public_html/protected/controllers/MainController.php(138)

126             $monthLabel = $this->getMonthLabel($month);
127             if (!preg_match("/^\d{4}$/", $year) || $monthLabel === "")
128                 throw new CHttpException(404);
129             $this->pageTitle .= " (" . $monthLabel . ", " . $year . ")";
130 
131             $path = sprintf("%s%s%04d%s%02d", $newsPath, DIRECTORY_SEPARATOR, $year, DIRECTORY_SEPARATOR, $month);
132             if (!is_dir($path))
133                 throw new CHttpException(404);
134             $days = $this->getNewsDays($path);
135             foreach ($days as $day)
136             {
137                 if (count($news) >= self::NEWS_PER_PAGE)
138                     throw new Exception();
139 
140                 $dayPath = sprintf("%s%s%s", $path, DIRECTORY_SEPARATOR, $day);
141                 $day = intval(mb_substr($day, 0, 2, Yii::app()->charset));
142                 $newsItem = $this->getNewsItem($dayPath);
143                 if ($newsItem === false)
144                     continue;
145 
146                 array_push($news, array_merge($newsItem, array(
147                     'year' => $year,
148                     'month' => $month,
149                     'day' => $day
150                 )));

Stack Trace

#7
+
 /home/t/timonovo/timonovo7/public_html/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-11-21 12:07:04 Apache/2.4.29 Yii Framework/1.1.19