Soufiane Posted March 1, 2014 Share Posted March 1, 2014 Bonjour,J'ai un gros problème avec un projet Prestashop 1.5.6 .Je perd le transporteur lors du processus de commande. Tout se passe bien jusqu’à l'étape 5 (paiement). A la page suivante de l'étape 5 (ex: paiement par cheque ou autre page du site) apparait en une serie de warning PHP toujours sur les 2 mm ligne de code 2375 et 2341:[b]Warning[/b]: Invalid argument supplied for foreach() in /httpdocs/classes/Cart.php[/b] on line [b]2375[/b][b]Warning[/b]: Invalid argument supplied for foreach() in /httpdocs/classes/Cart.php[/b] on line [b]2341[/b]A partir de ce moment la: Les frais de ports tombent à 0€ plus aucune opération sur la panier ne marche et toute opération déclenche des erreurs prestashop en popup. Voici la ligne de code : foreach ($delivery_option as $id_address => $key) Pour ce foreach j'ai essager de les fixer avec un test $delivery_option if($delivery_option ){ foreach ... } Aussi j'ai un autre problème au niveau du paiement paypal Warning: PDO::query() [function.PDO-query]: SQLSTATE[HY093]: Invalid parameter number: mixed named and positional parameters in /httpdocs/classes/db/DbPDO.php on line 91Warning: PDO::query() [function.PDO-query]: SQLSTATE[HY093]: Invalid parameter number: mixed named and positional parameters in /httpdocs/classes/db/DbPDO.php on line 91Warning: Invalid argument supplied for foreach() in httpdocs/classes/Cart.php on line 2375Warning: Invalid argument supplied for foreach() in /httpdocs/classes/Cart.php on line 2341Warning: Invalid argument supplied for foreach() in httpdocs/classes/Cart.php on line 2375Warning: Invalid argument supplied for foreach() in /httpdocs/classes/Cart.php on line 2341Warning: Invalid argument supplied for foreach() in /httpdocs/classes/Cart.php on line 2375Warning: Invalid argument supplied for foreach() in /httpdocs/classes/Cart.php on line 2341Ce qui est affiché pour le client :Error occurred:Veuillez contacter le marchant: PayPal response: CHECKOUTSTATUS -> PaymentActionNotInitiated .............. à la fin Cannot update existing cart SVP j'ai vraiment besoin d'aide.Merci. Link to comment Share on other sites More sharing options...
carofromparis Posted April 2, 2014 Share Posted April 2, 2014 Bonjour. J'ai exactement le meme souci. Avez vous une solution à me proposer ? Merci Cordialement, Carofromparis Link to comment Share on other sites More sharing options...
Soufiane Posted April 2, 2014 Author Share Posted April 2, 2014 Bonjour Caro, Le problème au niveau de votre hébergeur, il faut migrer vers un autre serveur actualisée (Linux debian 6 et php > 5.3). La table qui fait ce bug c'est (prefixe_cart) le champ (delivery_option) fonction Serialize(). Y'avait une autre solution mais je vous la déconseille (modifier dans la class cart.php). Si c'est ok merci de me faire signe. Merci, Cordialement, Link to comment Share on other sites More sharing options...
carofromparis Posted April 2, 2014 Share Posted April 2, 2014 Merci pour votre réponse mais je ne comprends pas bien. Je suis novice. Pouvez-vous me donner la marche exacte à suivre ? Je suis déjà sur un serveur Linux chez Amen. Dois-je changer d'hébergeur ? Merci pour votre aide Carofromparis 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