The customer could not be 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.
38. public function init()
39. {
40. parent::init();
41.
42. if (!Validate::isLoadedObject($this->context->customer)) {
43. die(Tools::displayError($this->trans('The customer could not be found.', array(), 'Shop.Notifications.Error')));
44. }
45. }
46.
47. /**
48. * Assign template vars related to page content.
Argument [0] The customer could not be found.
209. $this->profiler[] = $this->stamp('__construct');
210. }
211.
212. public function run()
213. {
214. $this->init();
215. $this->profiler[] = $this->stamp('init');
216.
217. if ($this->checkAccess()) {
218. $this->profiler[] = $this->stamp('checkAccess');
219.
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();