HTTP 404 – Not Found – yii\web\NotFoundHttpException Template not found: media-gallery 1. in /home/mintadmin/parkhallintegratedcollege.org/craft/vendor/craftcms/cms/src/controllers/TemplatesController.php at line 92 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 { // Does that template exist? if ( ( Craft::$app->getConfig()->getGeneral()->headlessMode && $this->request->getIsSiteRequest() ) || !$this->getView()->doesTemplateExist($template) ) { throw new NotFoundHttpException('Template not found: ' . $template); } // Merge any additional route params $routeParams = Craft::$app->getUrlManager()->getRouteParams(); unset($routeParams['template'], $routeParams['template']); $variables = array_merge($variables, $routeParams); return $this->renderTemplate($template, $variables); } 2. craft\controllers\TemplatesController::actionRender('media-gallery', []) 3. in /home/mintadmin/parkhallintegratedcollege.org/craft/vendor/yiisoft/yii2/base/InlineAction.php at line 57 – call_user_func_array([craft\controllers\TemplatesController, 'actionRender'], ['media-gallery', []]) 4. in /home/mintadmin/parkhallintegratedcollege.org/craft/vendor/yiisoft/yii2/base/Controller.php at line 180 – yii\base\InlineAction::runWithParams(['template' => 'media-gallery']) 5. in /home/mintadmin/parkhallintegratedcollege.org/craft/vendor/craftcms/cms/src/web/Controller.php at line 189 – yii\base\Controller::runAction('render', ['template' => 'media-gallery']) 183 184 185 186 187 188 189 190 191 192 193 194 195 /** * @inheritdoc */ public function runAction($id, $params = []) { try { return parent::runAction($id, $params); } catch (\Throwable $e) { if ($this->request->getAcceptsJson()) { Craft::$app->getErrorHandler()->logException($e); if (!YII_DEBUG && !$e instanceof UserException) { $message = Craft::t('app', 'A server error occurred.'); } else { 6. in /home/mintadmin/parkhallintegratedcollege.org/craft/vendor/yiisoft/yii2/base/Module.php at line 528 – craft\web\Controller::runAction('render', ['template' => 'media-gallery']) 7. in /home/mintadmin/parkhallintegratedcollege.org/craft/vendor/craftcms/cms/src/web/Application.php at line 274 – yii\base\Module::runAction('templates/render', ['template' => 'media-gallery']) 268 269 270 271 272 273 274 275 276 277 278 279 280 * @param string $route * @param array $params * @return Response|null The result of the action, normalized into a Response object */ public function runAction($route, $params = []) { $result = parent::runAction($route, $params); if ($result !== null) { if ($result instanceof Response) { return $result; } 8. in /home/mintadmin/parkhallintegratedcollege.org/craft/vendor/yiisoft/yii2/web/Application.php at line 103 – craft\web\Application::runAction('templates/render', ['template' => 'media-gallery']) 9. in /home/mintadmin/parkhallintegratedcollege.org/craft/vendor/craftcms/cms/src/web/Application.php at line 259 – yii\web\Application::handleRequest(craft\web\Request) 253 254 255 256 257 258 259 260 261 262 263 264 265 if (($response = $this->_processActionRequest($request)) !== null) { return $response; } // If we're still here, finally let Yii do it's thing. try { return parent::handleRequest($request); } catch (\Throwable $e) { $this->_unregisterDebugModule(); throw $e; } } 10. in /home/mintadmin/parkhallintegratedcollege.org/craft/vendor/yiisoft/yii2/base/Application.php at line 386 – craft\web\Application::handleRequest(craft\web\Request) 11. in /home/mintadmin/parkhallintegratedcollege.org/craft/public/index.php at line 21 – yii\base\Application::run() 15 16 17 18 19 20 21 (new Dotenv\Dotenv(CRAFT_BASE_PATH))->load(); } // Load and run Craft define('CRAFT_ENVIRONMENT', getenv('ENVIRONMENT') ?: 'production'); $app = require CRAFT_VENDOR_PATH.'/craftcms/cms/bootstrap/web.php'; $app->run(); 2021-11-30, 19:52:10 nginx/1.18.0 Yii Framework/2.0.38