CHttpException

Page is not found

/srv/www/apppicker.com/htdocs/protected/controllers/ReviewsController.php(62)

50             '6331'  => '23740',
51             '1331'  => '21165',
52             '1412'  => '21030'
53         ];
54 
55         if (isset($this->_redirectIds[$id])) {
56             $id = $this->_redirectIds[$id];
57         }
58 
59         $post = Review::loadArticleById($id);
60 
61         if (empty($post)) {
62             throw new CHttpException(404, "Page is not found");
63         }
64 
65         $post->guest_writer = $post->cv->guest_writer;
66         $post->bio = $post->cv->bio;
67 
68         if (!$post || ($version && !$post->switchToVersion($version))) {
69             throw new CHttpException(404, "Page is not found");
70         }
71 
72         if($post->slug != $slug){
73             ViewHelper::redirect($id, RatingTypes::TYPE_ARTICLE_REVIEW);
74         }

Stack Trace

#9
+
 /srv/www/apppicker.com/htdocs/index.php(58): CApplication->run()
53 
54 if (!isset($app->params[Configuration::PREFIX_ELASTICA]) || $app->params[Configuration::PREFIX_ELASTICA] == null || $app->params[Configuration::PREFIX_ELASTICA] == '') {
55     $app->params->add(Configuration::PREFIX_ELASTICA, '1');
56 }
57 
58 $app->run();
2024-03-28 11:09:56 nginx/1.20.1 Yii Framework/1.1.16