ralaper Posted November 27, 2016 Share Posted November 27, 2016 in prestashop version 1.6.x,when the admin translate key exit and the key value is empty,PrestaShopLogger::addLog return error,This will likely lead to the failure of the background management login. information: [PrestaShopException]Property PrestaShopLogger->message is emptyat line 909 in file classes/ObjectModel.php 904. }905.906. $message = $this->validateField($field, $this->$field);907. if ($message !== true) {908. if ($die) {909. throw new PrestaShopException($message);910. }911. return $error_return ? $message : false;912. }913. }914. ObjectModelCore->validateFields - [line 246 - classes/ObjectModel.php] ObjectModelCore->getFields - [line 487 - classes/ObjectModel.php] ObjectModelCore->add - [line 133 - classes/PrestaShopLogger.php] PrestaShopLoggerCore::addLog - [line 196 - controllers/admin/AdminLoginController.php] - [7 Arguments] AdminLoginControllerCore->processLogin - [line 161 - controllers/admin/AdminLoginController.php] AdminLoginControllerCore->postProcess - [line 178 - classes/controller/Controller.php] ControllerCore->run - [line 367 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 47 - master/ajax-tab.php] now,fixed the bug for Translate.php,line 72 if (isset($_LANGADM[$class.$key])) to if (isset($_LANGADM[$class.$key]) && !empty($_LANGADM[$class.$key])) 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