fred641 Posted March 20, 2015 Share Posted March 20, 2015 (edited) Bonjour, j ai un probléme d ajax des que j ai l ajax activé et que j ajoute un produit au panier j ai une fenêtre avec " TECHNICAL ERROR unable to add the product details error thrown [object xmlHTTPRequest text status error] avez vous deja rencontré cet erreur es que quelqu un a la solution car je suis obligé de désactivé l ajax du panier jai vider smarty pour voir mais rien n y fait Merci de votre aide Edited March 20, 2015 by fred641 (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted March 20, 2015 Share Posted March 20, 2015 Soit un problème de cookies (videz-les et ré-essayez), soit un en-tête BOM sur un des fichiers (placé par les éditeurs Windows notamment) PS: Votre site comporte plusieurs erreurs, ouvrez votre console (f12) pour les voir. Link to comment Share on other sites More sharing options...
fred641 Posted March 20, 2015 Author Share Posted March 20, 2015 voila ce que trouve comme erreur au niveau du cart php http://www.mattasoglio.fr/cart.php?_=1426858170709&ajax=true&token=e6f0de776b2a070393c999cda44bbf09 Failed to load resource: the server responded with a status of 500 (Internal Server Error) maintenant reste a savoir pourquoi Link to comment Share on other sites More sharing options...
Eolia Posted March 20, 2015 Share Posted March 20, 2015 Vous pouvez activer l'ajax que je teste svp ? Link to comment Share on other sites More sharing options...
fred641 Posted March 20, 2015 Author Share Posted March 20, 2015 j ai vider les cookies c est pareils et pas trouver d entete bom dans les fichiers Link to comment Share on other sites More sharing options...
Eolia Posted March 20, 2015 Share Posted March 20, 2015 Vous pouvez activer l'ajax que je teste svp ? Link to comment Share on other sites More sharing options...
fred641 Posted March 20, 2015 Author Share Posted March 20, 2015 voila c est fait Link to comment Share on other sites More sharing options...
Eolia Posted March 20, 2015 Share Posted March 20, 2015 (edited) Est ce que votre fichier /tools/smarty/plugins/shared.mb_str_replace.php ressemble à ça ? (surtout la fin) <?php if(!function_exists('smarty_mb_str_replace')) { function smarty_mb_str_replace($search, $replace, $subject, &$count=0) { if (!is_array($search) && is_array($replace)) { return false; } if (is_array($subject)) { // call mb_replace for each single string in $subject foreach ($subject as &$string) { $string = &smarty_mb_str_replace($search, $replace, $string, $c); $count += $c; } } elseif (is_array($search)) { if (!is_array($replace)) { foreach ($search as &$string) { $subject = smarty_mb_str_replace($string, $replace, $subject, $c); $count += $c; } } else { $n = max(count($search), count($replace)); while ($n--) { $subject = smarty_mb_str_replace(current($search), current($replace), $subject, $c); $count += $c; next($search); next($replace); } } } else { if (function_exists('mb_split')) { $parts = mb_split(preg_quote($search), $subject); } else { $parts = split(preg_quote($search), $subject); } $count = count($parts)-1; $subject = implode($replace, $parts); } return $subject; } } ?> ou il y a-t-il uniquement ceci en bas, au niveau de la variable $parts ? $parts = mb_split(preg_quote($search), $subject); Il serait intéressant également de regarder qu'elle est l'erreur réelle dans le fichier error.log d'Apache Edited March 20, 2015 by Eolia (see edit history) Link to comment Share on other sites More sharing options...
fred641 Posted March 20, 2015 Author Share Posted March 20, 2015 voila ce que j ai <?php if(!function_exists('smarty_mb_str_replace')) { function smarty_mb_str_replace($search, $replace, $subject, &$count=0) { if (!is_array($search) && is_array($replace)) { return false; } if (is_array($subject)) { // call mb_replace for each single string in $subject foreach ($subject as &$string) { $string = &smarty_mb_str_replace($search, $replace, $string, $c); $count += $c; } } elseif (is_array($search)) { if (!is_array($replace)) { foreach ($search as &$string) { $subject = smarty_mb_str_replace($string, $replace, $subject, $c); $count += $c; } } else { $n = max(count($search), count($replace)); while ($n--) { $subject = smarty_mb_str_replace(current($search), current($replace), $subject, $c); $count += $c; next($search); next($replace); } } } else { $parts = mb_split(preg_quote($search), $subject); $count = count($parts)-1; $subject = implode($replace, $parts); } return $subject; } } ?> Link to comment Share on other sites More sharing options...
Eolia Posted March 20, 2015 Share Posted March 20, 2015 Okay, Remplacez son contenu par celui que je vous ai mis ci-dessus. En effet si l'extension mb_split n'est pas installée sur votre serveur cela plante. Link to comment Share on other sites More sharing options...
fred641 Posted March 20, 2015 Author Share Posted March 20, 2015 C est pareil j ai toujours la même chose Link to comment Share on other sites More sharing options...
Eolia Posted March 20, 2015 Share Posted March 20, 2015 euh... moi j'ai une page blanche. Vous avez touché à quelque chose d'autre ? Link to comment Share on other sites More sharing options...
Eolia Posted March 20, 2015 Share Posted March 20, 2015 Si vous pouvez m'envoyer un accès BO et ftp par MP ce sera plus simple^^ Link to comment Share on other sites More sharing options...
fred641 Posted March 20, 2015 Author Share Posted March 20, 2015 oui je vous envois ça en mp Link to comment Share on other sites More sharing options...
fred641 Posted March 20, 2015 Author Share Posted March 20, 2015 c est fait Link to comment Share on other sites More sharing options...
fred641 Posted March 20, 2015 Author Share Posted March 20, 2015 je vous ai tout envoyé je pense très sympa à vous de m aider Link to comment Share on other sites More sharing options...
Eolia Posted March 20, 2015 Share Posted March 20, 2015 Résolu Votre cartController.php appellait public function includeCartModule() { require_once(_PS_MODULE_DIR_.'/blockcart/blockcart-ajax.php'); } au lieu de public function includeCartModule() { require_once(_PS_MODULE_DIR_.'/blockcart2/blockcart-ajax.php'); } Vous avez en effet un module blockcart qui s'appelle blockcart2 (sans doute installé par votre thème ?) et le blockcart initial a été supprimé, donc Prestashop ne trouvait pas le fichier^^ Merci d'éditer le titre de votre 1er post et ajouter [Résolu] Link to comment Share on other sites More sharing options...
fred641 Posted March 20, 2015 Author Share Posted March 20, 2015 merci beaucoup de votre aide 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