CHttpException

指定されたページが存在しません

/home/hiko-mizuno/www/sushi/quickcode/qc_hiko2021/protected/controllers/SiteController.php(645)

633                                 );
634         }
635         elseif( $this->domain->rootPage )
636             $page = Page::model()->
637                                 scoped(array(
638                                     'published'=>true,
639                                 ))->
640                                 findByPk( $this->domain->rootPage );
641         else
642             throw new CHttpException(500,'指定されたドメインにルートページが存在しません');
643         if($page === null)
644 //            $page = Page::model()->scoped(array('published'=>true))->findByPk( $this->domain->rootPage );
645             throw new CHttpException(404,'指定されたページが存在しません');
646 
647         $this->pageID = $page->id;
648 /*         $this->pageID = ( $page->alias != '' ) ? $page->alias : $page->id; */
649         return $page;
650     }
651     
652     public function performAjaxValidation($model,$form_id)
653     {
654         if(isset($_POST['ajax']) && $_POST['ajax'] === $form_id)
655         {
656             echo CActiveForm::validate($model);
657             Yii::app()->end();

Stack Trace

#0
+
 /home/hiko-mizuno/www/sushi/quickcode/qc_hiko2021/protected/controllers/SiteController.php(393): SiteController->loadPage()
388     {    
389 
390 
391 /*         PQPLogRoute::logMemory("memory used:ページ表示開始"); */
392 
393         $page = $this->loadPage();
394 
395 /*         PQPLogRoute::logMemory("memory used:ページ読み込み"); */
396 
397         // check disallowed or not
398         $jump = $page->checkDisallowed();
#11
+
 /home/hiko-mizuno/www/sushi/quickcode/sushi_2020/index.php(60): CApplication->run()
55     $app->request->setBaseUrl($project);
56 }
57 
58 $app->getCoreMessages()->basePath = substr($startUrl,1,strlen($startUrl)-1).'protected/messages';
59 
60 $app->run();
2024-04-19 02:08:34 Apache Yii Framework/1.1.22