Post not found
at line 1182 in file classes/Tools.php
1177. ->getTranslator()
1178. ->trans('Fatal error', [], 'Admin.Notifications.Error');
1179. }
1180.
1181. if (_PS_MODE_DEV_) {
1182. throw new PrestaShopException($errorMessage);
1183. }
1184.
1185. return $errorMessage;
1186. }
1187.
104. }
105.
106. if (!Validate::isLoadedObject($this->post)) {
107. header('HTTP/1.1 404 Not Found');
108. header('Status: 404 Not Found');
109. $this->errors[] = Tools::displayError('Post not found');
110. }
111.
112. parent::initContent();
113.
114. // $this->canonicalRedirection();
301. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
302. $this->initHeader();
303. }
304.
305. if ($this->viewAccess()) {
306. $this->initContent();
307. } else {
308. $this->errors[] = $this->trans('Access denied.', [], 'Admin.Notifications.Error');
309. }
310.
311. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
520. if (isset($params_hook_action_dispatcher)) {
521. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
522. }
523.
524. // Running controller
525. $controller->run();
526.
527. // Execute hook dispatcher after
528. if (isset($params_hook_action_dispatcher)) {
529. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
530. }
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();