FRTR Posted April 1, 2015 Share Posted April 1, 2015 Bonjour à tous, nous sommes sur prestashop 1.5.6.2 Sur les pages articles "uniquement présent dans plusieurs boutiques ", les navigateurs internet affichent les 3 lignes d'erreurs suivantes, le reste de la page apparait correctement sauf les liens des catégories dans le breadcrumb Warning: strip_tags() expects parameter 1 to be string, array given in /home/www/local/classes/Tools.php on line 663Warning: trim() expects parameter 1 to be string, array given in /home/www/local/classes/Tools.php on line 1070Warning: trim() expects parameter 1 to be string, array given in /home/www/local/classes/Tools.php on line 1070 - Si l'article est présent dans une seule boutique pas de soucis. - si l'article est présent dans plusieurs boutiques ( boutique en sous-domaine pas de soucis) - malheureusement plusieurs boutiques -> plusiseur domaines -> retour des 3 erreurs. - dernier élément : si l'article est présent dans site1,site2,site3 -> erreur affiché sur site 2 et site 3 si l'article est présent dans site2,site1,site3 -> erreur affiché sur site 2 et site 3 site 1 site 2 site 3 correspondent à des catégories de chaque site. je vous joins les lignes concernées ligne 663 : public static function safeOutput($string, $html = false) { if (!$html) $string = strip_tags($string); <-663 return @Tools::htmlentitiesUTF8($string, ENT_QUOTES); } ligne 1070 public static function str2url($str) { static $allow_accented_chars = null; if ($allow_accented_chars === null) $allow_accented_chars = Configuration::get('PS_ALLOW_ACCENTED_CHARS_URL'); $str = trim($str); <- ligne 1070 if (function_exists('mb_strtolower')) $str = mb_strtolower($str, 'utf-8'); if (!$allow_accented_chars) $str = Tools::replaceAccentedChars($str); // Remove all non-whitelist chars. if ($allow_accented_chars) $str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-\pL]/u', '', $str); else $str = preg_replace('/[^a-zA-Z0-9\s\'\:\/\[\]-]/','', $str); $str = preg_replace('/[\s\'\:\/\[\]-]+/', ' ', $str); $str = str_replace(array(' ', '/'), '-', $str); // If it was not possible to lowercase the string with mb_strtolower, we do it after the transformations. // This way we lose fewer special chars. if (!function_exists('mb_strtolower')) $str = strtolower($str); return $str; } Voila merci d'avance, et je suis dispo si vous avez besoin d'info en plus. :-) 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