krzysztofnowak Posted November 3, 2019 Share Posted November 3, 2019 Witam. Pracowałem bez problemów nad swoim sklepem, następnego dnia logując do backoffice jedyne co widziałem to "Błąd krytyczny". Po włączeniu debuggera mam następujący komunikat: [PrestaShopException] Błąd krytyczny 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. ToolsCore::displayError - [line 1631 - classes/controller/AdminController.php] 1626. $back = Tools::safeOutput(Tools::getValue('back', '')); 1627. if (empty($back)) { 1628. $back = self::$currentIndex . '&token=' . $this->token; 1629. } 1630. if (!Validate::isCleanHtml($back)) { 1631. die(Tools::displayError()); 1632. } 1633. if (!$this->lite_display) { 1634. $this->toolbar_btn['back'] = array( 1635. 'href' => $back, 1636. 'desc' => $this->l('Back to list'), AdminControllerCore->initToolbar - [line 2141 - classes/controller/AdminController.php] 2136. 2137. public function initToolbarFlags() 2138. { 2139. $this->getLanguages(); 2140. 2141. $this->initToolbar(); 2142. $this->initTabModuleList(); 2143. $this->initPageHeaderToolbar(); 2144. 2145. $this->context->smarty->assign(array( 2146. 'maintenance_mode' => !(bool) Configuration::get('PS_SHOP_ENABLE'), AdminControllerCore->initToolbarFlags - [line 2851 - classes/controller/AdminController.php] 2846. Employee::setLastConnectionDate($this->context->employee->id); 2847. 2848. $this->initProcess(); 2849. $this->initBreadcrumbs(); 2850. $this->initModal(); 2851. $this->initToolbarFlags(); 2852. $this->initNotifications(); 2853. } 2854. 2855. /** 2856. * Sets the smarty variables and js defs used to show / hide some notifications. AdminControllerCore->init - [line 273 - classes/controller/Controller.php] 268. /** 269. * Starts the controller process (this method should not be overridden!). 270. */ 271. public function run() 272. { 273. $this->init(); 274. if ($this->checkAccess()) { 275. // setMedia MUST be called before postProcess 276. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) { 277. $this->setMedia(); 278. } ControllerCore->run - [line 515 - classes/Dispatcher.php] 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. } DispatcherCore->dispatch - [line 97 - admin/index.php] 92. if (!headers_sent()) { 93. header('Content-Type: text/html; charset=utf-8'); 94. } 95. 96. // Prepare and trigger LEGACY admin dispatcher 97. Dispatcher::getInstance()->dispatch(); 98. } Link to comment Share on other sites More sharing options...
krzysztofnowak Posted November 5, 2019 Author Share Posted November 5, 2019 O dziwo rozwiązanie tego błędu: Usunięcie zawartości folderu var/Cache/dev Pomogło Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now