No template found for errors/404
at line 68 in file classes/Smarty/TemplateFinder.php
63. return $tpl;
64. }
65. }
66. }
67.
68. throw new PrestaShopException('No template found for ' . $template);
69. }
70.
71. private function getTemplateHierarchy($template, $entity, $id)
72. {
73. $entity = basename($entity);
1413. )) {
1414. return $overridden_template;
1415. }
1416.
1417. return $this->getTemplateFinder()->getTemplate(
1418. $template,
1419. $params['entity'],
1420. $params['id'],
1421. $locale
1422. );
1423. }
Argument [0] errors/404 Argument [1] Argument [2] Argument [3] fr-FR
1307. * @param string $default_template
1308. */
1309. public function setTemplate($template, $params = [], $locale = null)
1310. {
1311. parent::setTemplate(
1312. $this->getTemplateFile($template, $params, $locale)
1313. );
1314. }
1315.
1316. /**
1317. * Removed in PrestaShop 1.7.
Argument [0] errors/404 Argument [1] Array ( [entity] => [id] => ) Argument [2] fr-FR
92. parent::init();
93.
94. if (!Validate::isLoadedObject($this->category) || !$this->category->active) {
95. header('HTTP/1.1 404 Not Found');
96. header('Status: 404 Not Found');
97. $this->setTemplate('errors/404');
98. $this->notFound = true;
99.
100. return;
101. } elseif (!$this->category->checkAccess($this->context->customer->id)) {
102. header('HTTP/1.1 403 Forbidden');
Argument [0] errors/404
282. /**
283. * Starts the controller process (this method should not be overridden!).
284. */
285. public function run()
286. {
287. $this->init();
288. if ($this->checkAccess()) {
289. // setMedia MUST be called before postProcess
290. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
291. $this->setMedia();
292. }
513. if (isset($params_hook_action_dispatcher)) {
514. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
515. }
516.
517. // Running controller
518. $controller->run();
519.
520. // Execute hook dispatcher after
521. if (isset($params_hook_action_dispatcher)) {
522. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
523. }
23. * @copyright Since 2007 PrestaShop SA and Contributors
24. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
25. */
26.
27. require dirname(__FILE__).'/config/config.inc.php';
28. Dispatcher::getInstance()->dispatch();