Jump to content
France-Elite

Bug on Frontcontroller::init

Recommended Posts

Hi,

 

I see in my log this error :

Frontcontroller::init - Cart cannot be loaded or an order has already been placed using this cart

 

I use PS 1.6.1.4

 

Have you got this problem ?

What are the symptoms for customers or on the front office ?

 

Thanks for your help.

Share this post


Link to post
Share on other sites

Hi. Users doesnt notice this. Usually you get that message (not error) when a customer reloads the order confirmation page.

Share this post


Link to post
Share on other sites

Hello,

 

To solve this issue, you can add this lines Inside : PaymentModule.php

 

Browse to : prestashop/classes/PaymentModule.php

 

Add this from line 821

 

// Ajouter pour supprimer l'erreur du panier : contient déjà un produit
            if ((int)$this->context->cookie->id_cart > 0) {
               $this->context->cookie->__unset('id_cart');
            }

 

Works fine on Prestashop 1.6.1.13

 

Friendly

 

I don't remember where I found this tip ;-)

Share this post


Link to post
Share on other sites

Bonjour,

 

Cette erreur apparaît lorsqu'il y a plusieurs produits dans le panier, lors de finalisation de la commande, je l'ai sur plusieurs sites en version 1.6.13, mais ça existait depuis près de 2 ans dans les logs.
Certainement un bug sur un module Prestashop,vue que cette erreur est signalée depuis longtemps mais toujours présente, j'ai vérifié les id sur la BD, il n'y a pas d'autre raison d'avoir cette erreur.

 

Gilles

Share this post


Link to post
Share on other sites
On 5/7/2017 at 9:59 PM, myselfidem said:

Hello,

 

To solve this issue, you can add this lines Inside : PaymentModule.php

 

Browse to : prestashop/classes/PaymentModule.php

 

Add this from line 821

 

// Ajouter pour supprimer l'erreur du panier : contient déjà un produit
            if ((int)$this->context->cookie->id_cart > 0) {
               $this->context->cookie->__unset('id_cart');
            }

 

Works fine on Prestashop 1.6.1.13

 

Friendly

 

I don't remember where I found this tip 😉

 

Hi gillesvt.

I had the same error message in Prestashop 1.6.1.17. I made your suggestion and it worked perfectly.

Thank you.

Regards.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More