CHttpException

The requested page does not exist.

/var/www/vhosts/alsancakguvenlik.com/httpdocs/protected/modules/pages/controllers/front/DefaultController.php(26)

14         $this->page = $page;
15         $this->pageDescription = $page->meta_description;
16         $this->render('show', array(
17             'page' => $page
18         ));
19     }
20 
21     public function actionShow($slug)
22     {
23 
24         $page = Page::model()->findByAttributes(array('slug' => $slug));
25         if(!$page) {
26             throw new CHttpException(404,'The requested page does not exist.');
27         }
28         if($page->remoteLink){ $this->redirect($page->remoteLink); }
29         
30         $this->layout = '//layouts/'. $page->layout;
31         $this->breadcrumbs[Common::trans('Anasayfa')] = Yii::app()->getBaseUrl(true);
32         if($page->parent){ $this->breadcrumbs[$page->parent->title] = Yii::app()->getBaseUrl(true).'/'.$page->parent->slug; }
33         $this->breadcrumbs[$page->title] = Yii::app()->getBaseUrl(true).'/'.$page->slug;
34         $this->pageTitle = $page->title;
35         $this->page = $page;
36         $this->pageId = $page->id;
37         $this->pageDescription = $page->meta_description;
38         $this->canonical = $page->getUrl();

Stack Trace

#9
+
 /var/www/vhosts/alsancakguvenlik.com/httpdocs/protected/components/WebApplicationEndBehavior.php(15): CApplication->run()
10     public function runEnd($name)
11     {
12         $this->_endName = $name;
13         $this->onModuleCreate = array($this, 'changeModulePaths');
14         $this->onModuleCreate(new CEvent($this->owner));
15         $this->owner->run();
16     }
17     public function onModuleCreate($event)
18     {
19         $this->raiseEvent('onModuleCreate', $event);
20     }
#11
+
 /var/www/vhosts/alsancakguvenlik.com/httpdocs/index.php(23): CComponent->__call()
18         return parent::init();
19     }
20 }
21 
22 $app = new KraftCMS($config);
23 $app->runEnd('front');
24 
2024-04-18 15:27:49 Apache Yii Framework/1.1.25