Jump to content

Unidentified Critical Error


krzysztofnowak

Recommended Posts

Hello everyone!

I was working on friday till late night without any issues. On saturday sth happend.

When i tried to login to backoffice i had "Critical error".

I turned on Dev mode and got this error:

 

[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. }

 

Prestashop 1.7.6.1.

Edited by krzysztofnowak (see edit history)
Link to comment
Share on other sites

  • 3 years later...

I have very similar problem to this

 

I have an item which is in 2 different categories

When I navigate to it from Home > Games > Racket Games it works

When I navigate to it from Home > Games > Outdoor Games it returns Fatal Error

 

Turning on Debug mode returns

[PrestaShopException]

Fatal error
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.

    ToolsCore::displayError - [line 3603 - classes/Product.php]
    ProductCore::getPriceStatic - [line 214 - classes/Link.php]
    LinkCore->getProductLink - [line 228 - controllers/front/ProductController.php]
    ProductControllerCore->init - [line 35 - override/controllers/front/ProductController.php]
    ProductController->init - [line 287 - classes/controller/Controller.php]
    ControllerCore->run - [line 518 - classes/Dispatcher.php]
    DispatcherCore->dispatch - [line 28 - index.php]

 

I tried the solution mentioned above of deleting \var\cache\dev but to no avail.

 

Any ideas greatfully accepted.

 

Cheers

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...