Jump to content

prestashop TranslateCore Bug


ralaper

Recommended Posts

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 empty
at 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.

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

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