Baixe o app para aproveitar ainda mais
Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original
yii\web\NotFoundHttpException: Template not found: wp-content/uploads/2015/03/artigos-mayana.pdf in /home/ppgav/apps/ppgav/craft3_ppgav/vendor/craftcms/cms/src/controllers/TemplatesController.php:94 Stack trace: #0 [internal function]: craft\controllers\TemplatesController->actionRender('wp-content/uplo...', Array) #1 /home/ppgav/apps/ppgav/craft3_ppgav/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #2 /home/ppgav/apps/ppgav/craft3_ppgav/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array) #3 /home/ppgav/apps/ppgav/craft3_ppgav/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction('render', Array) #4 /home/ppgav/apps/ppgav/craft3_ppgav/vendor/craftcms/cms/src/web/Application.php(287): yii\base\Module->runAction('templates/rende...', Array) #5 /home/ppgav/apps/ppgav/craft3_ppgav/vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction('templates/rende...', Array) #6 /home/ppgav/apps/ppgav/craft3_ppgav/vendor/craftcms/cms/src/web/Application.php(272): yii\web\Application->handleRequest(Object(craft\web\Request)) #7 /home/ppgav/apps/ppgav/craft3_ppgav/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest(Object(craft\web\Request)) #8 /home/ppgav/apps/ppgav/index.php(26): yii\base\Application->run() #9 {main} Copied! HTTP 404 – Not Found – yii\web\NotFoundHttpException Template not found: wp-content/uploads/2015/03/artigos-mayana.pdf 1. in /home/ppgav/apps/ppgav/craft3_ppgav/vendor/craftcms/cms/src/controllers/TemplatesController.php at line 94 858687888990919293949596979899100101102103 // Does that template exist? if ( ( Craft::$app->getConfig()->getGeneral()->headlessMode && $this->request->getIsSiteRequest() ) || !Path::ensurePathIsContained($template) || // avoid the Craft::warning() from View::_validateTemplateName() !$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('wp-content/uploads/2015/03/artig...', []) 3. in /home/ppgav/apps/ppgav/craft3_ppgav/vendor/yiisoft/yii2/base/InlineAction.php at line 57 – call_user_func_array([craft\controllers\TemplatesController, 'actionRender'], ['wp-content/uploads/2015/03/artig...', []]) 515253545556575859 $args = $this->controller->bindActionParams($this, $params); Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } } 4. in /home/ppgav/apps/ppgav/craft3_ppgav/vendor/yiisoft/yii2/base/Controller.php at line 178 – yii\base\InlineAction::runWithParams(['template' => 'wp-content/uploads/2015/03/artig...', 'p' => 'wp-content/uploads/2015/03/artig...']) 172173174175176177178179180181182183184 } $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */ 5. in /home/ppgav/apps/ppgav/craft3_ppgav/vendor/yiisoft/yii2/base/Module.php at line 552 – yii\base\Controller::runAction('render', ['template' => 'wp-content/uploads/2015/03/artig...', 'p' => 'wp-content/uploads/2015/03/artig...']) 546547548549550551552553554555556557558 $parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); if ($oldController !== null) { Yii::$app->controller = $oldController; } return $result; } 6. in /home/ppgav/apps/ppgav/craft3_ppgav/vendor/craftcms/cms/src/web/Application.php at line 287 – yii\base\Module::runAction('templates/render', ['template' => 'wp-content/uploads/2015/03/artig...', 'p' => 'wp-content/uploads/2015/03/artig...']) 281282283284285286287288289290291292293 * @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; } 7. in /home/ppgav/apps/ppgav/craft3_ppgav/vendor/yiisoft/yii2/web/Application.php at line 103 – craft\web\Application::runAction('templates/render', ['template' => 'wp-content/uploads/2015/03/artig...', 'p' => 'wp-content/uploads/2015/03/artig...']) 979899100101102103104105106107108109 $params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) { 8. in /home/ppgav/apps/ppgav/craft3_ppgav/vendor/craftcms/cms/src/web/Application.php at line 272 – yii\web\Application::handleRequest(craft\web\Request) 266267268269270271272273274275276277278 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; } } 9. in /home/ppgav/apps/ppgav/craft3_ppgav/vendor/yiisoft/yii2/base/Application.php at line 384 – craft\web\Application::handleRequest(craft\web\Request) 378379380381382383384385386387388389390 { try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send(); 10. in /home/ppgav/apps/ppgav/index.php at line 26 – yii\base\Application::run() 20212223242526 define('CRAFT_ENVIRONMENT', getenv('ENVIRONMENT') ?: 'production'); // ... // Load and run Craft /** @var craft\web\Application $app */ $app = require CRAFT_VENDOR_PATH . '/craftcms/cms/bootstrap/web.php'; $app->run(); $_GET = [ 'p' => 'wp-content/uploads/2015/03/artigos-mayana.pdf', ]; 2022-12-18, 19:03:18 Apache Yii Framework/2.0.47
Compartilhar