ObjectNotFoundException

No Event found with query of 21

/srv/regattapoint/web/protected/components/Controller.php(911)

899         {
900             $model = $class::model()->findByPk($query);
901         }
902 
903         if (!$model)
904         {
905             // Don't leak whether records exist or not if a user is not logged in.
906             if (Yii::app()->user->isGuest && $throw403onGuest)
907             {
908                 throw new NotLoggedInAccessDeniedException;
909             }
910 
911             throw new ObjectNotFoundException("No {$class} found with query of " . print_r($query, true));
912         }
913 
914         return $model;
915     }
916 }

Stack Trace

#0
+
 /srv/regattapoint/web/protected/modules/event/controllers/EventController.php(355): Controller::loadModel()
350      * @return Event the loaded model
351      * @throws CHttpException
352      */
353     public function loadInternModel($id)
354     {
355         return $this->loadModel(Event::class, $id, false);
356     }
357 
358     public function actionAddSelf($id)
359     {
360         return $this->redirect(['register/index', 'id' => $id]);
#1
+
 /srv/regattapoint/web/protected/modules/event/controllers/EventController.php(54): EventController->loadInternModel()
49      */
50     public function actionView($id)
51     {
52         Event::model()->with(['paymentPackages', 'visibility', 'cancellationReasons', 'schedule', 'leaders', 'category', 'category.ratings', 'participantCount', 'allParticipantCount', 'participantTypes']);
53 
54         $model = $this->loadInternModel($id);
55 
56         // If the user hits the view page while during the registration process, reset it.
57         RegisterController::resetSessionData($model);
58 
59         $cs = Yii::app()->getClientScript();
#8
+
 /srv/regattapoint/web/protected/components/WebApplication.php(36): CController->run()
31             list($controller,$actionID)=$ca;
32             // Need to use setters/getters here: https://github.com/yiisoft/yii/issues/1341#issuecomment-8301210
33             $oldController=$this->getController();
34             $this->setController($controller);
35             $controller->init();
36             $controller->run($actionID);
37             $this->setController($oldController);
38         }
39         else
40             throw new DontCareHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
41                         array('{route}'=>$route===''?$this->defaultController:$route)));
2024-03-29 02:17:14 Apache Yii Framework/3.13.599a772f3d282be69682f55a737b30a9e707d0b6