CHttpException

Запрашиваемая Вами страница не существует.

/home/buyhouse/buyhouse.com.ua/www/protected/helpers/common.php(239)

227 function logs($mVal, $fileName = null)
228 {
229     $fileName = $fileName ? $fileName : 'site_debug_logs_' . date('Y-m-d_H-i-s') . md5(uniqid(mt_rand(0, 1000), true)) . '.txt';
230     $filePath = ROOT_PATH . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . 'logs' . DIRECTORY_SEPARATOR . $fileName;
231 
232     $sLogs = date("d.m.y H:i : ") . var_export($mVal, true) . "\n";
233 
234     file_put_contents($filePath, $sLogs, LOCK_EX | FILE_APPEND);
235 }
236 
237 function throw404()
238 {
239     throw new CHttpException(404, tc('The requested page does not exist.'));
240 }
241 
242 function showMessage($messageTitle, $messageText, $breadcrumb = '', $isEnd = true)
243 {
244     Yii::app()->controller->render('//site/message', array('breadcrumb' => $breadcrumb,
245         'messageTitle' => $messageTitle,
246         'messageText' => $messageText));
247 
248     if ($isEnd) {
249         Yii::app()->end();
250     }
251 }

Stack Trace

#0
+
 /home/buyhouse/buyhouse.com.ua/www/protected/modules/apartments/controllers/MainController.php(165): throw404()
160         }
161 
162         if (($apartment->active == Apartment::STATUS_INACTIVE || $apartment->active == Apartment::STATUS_MODERATION) && !Yii::app()->user->checkAccess('backend_access') && !(isset(Yii::app()->user->id) && $apartment->isOwner())) {
163             Yii::app()->user->setFlash('notice', tt('apartments_main_index_propertyNotAvailable', 'apartments'));
164             //$this->redirect(Yii::app()->homeUrl);
165             throw404();
166         }
167 
168         if ($apartment->active == Apartment::STATUS_MODERATION && $apartment->owner_active == Apartment::STATUS_ACTIVE && $apartment->isOwner()) {
169             Yii::app()->user->setFlash('error', tc('Awaiting moderation'));
170         }
#19
+
 /home/buyhouse/buyhouse.com.ua/www/index.php(22): CApplication->run()
17 
18 define('ALREADY_INSTALL_FILE', ROOT_PATH . DIRECTORY_SEPARATOR . 'protected' . DIRECTORY_SEPARATOR
19                                 . 'runtime' . DIRECTORY_SEPARATOR . 'already_install');
20 
21 require_once($yii);
22 Yii::createWebApplication($config)->run();
2024-03-28 11:30:59 LiteSpeed Yii Framework/1.1.22