Post not found
at line 1175 in file classes/Tools.php
1170. ->getTranslator()
1171. ->trans('Fatal error', [], 'Admin.Notifications.Error');
1172. }
1173.
1174. if (_PS_MODE_DEV_) {
1175. throw new PrestaShopException($errorMessage);
1176. }
1177.
1178. return $errorMessage;
1179. }
1180.
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();
Argument [0] Post not found
287. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
288. $this->initHeader();
289. }
290.
291. if ($this->viewAccess()) {
292. $this->initContent();
293. } else {
294. $this->errors[] = $this->trans('Access denied.', array(), 'Admin.Notifications.Error');
295. }
296.
297. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
510. if (isset($params_hook_action_dispatcher)) {
511. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
512. }
513.
514. // Running controller
515. $controller->run();
516.
517. // Execute hook dispatcher after
518. if (isset($params_hook_action_dispatcher)) {
519. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
520. }
23. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
24. * International Registered Trademark & Property of PrestaShop SA
25. */
26.
27. require dirname(__FILE__).'/config/config.inc.php';
28. Dispatcher::getInstance()->dispatch();