Xav32190 Posted June 12 Share Posted June 12 Bonjour, Je suis sous prestashop 8.1.3, je ne peux ou ouvrir les factures. Voici l'erreur : array_key_exists(): Argument #2 ($array) must be of type array, null given Je rajoute un bout de code : classes/AddressFormat.php (line 446) $addressText = ''; foreach ($addressFields as $line) { if (($patternsList = preg_split(self::_CLEANING_REGEX_, $line, -1, PREG_SPLIT_NO_EMPTY))) { $tmpText = ''; foreach ($patternsList as $pattern) { erreur ici à priori if (!array_key_exists('avoid', $patternRules) || !in_array($pattern, $patternRules['avoid'])) { $tmpText .= (isset($addressFormatedValues[$pattern]) && !empty($addressFormatedValues[$pattern])) ? (((isset($style[$pattern])) ? (sprintf($style[$pattern], $addressFormatedValues[$pattern])) : $addressFormatedValues[$pattern]) . $separator) : ''; Est ce quelqu'un peut m'aider ? Merci D'avance } Link to comment Share on other sites More sharing options...
Eolia Posted June 12 Share Posted June 12 il vous manque ceci au début de la fonction: if(!is_array($patternRules)) { $patternRules = array(); } Link to comment Share on other sites More sharing options...
Xav32190 Posted June 12 Author Share Posted June 12 Je vous remercie cela fonctionne maintenant 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