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



  • Hello there, I migrated yesterday because of this problem and it still happening.

    I read a lot of people with a lot of different versions of PS with the same error, but nothing really makes the solution for me.

    The problem:

    • In the logs it shows this to me: Frontcontroller::init - Cart cannot be loaded or an order has already been placed using this cart

    • In the front office give me a 404 and didn’t finish the order (errors for the customers)

    • And in the back office don’t change automatically the status of the orders.

    I’ve now TB 1.0.1 from PS 1.6.1.17.

    I think the problem could come from two possibilities:

    • This problem could start since I updated to PS 1.6.1.16 but I’m not really sure of this. And now with TB 1.0.1 I don’t think it could happend.

    • The other possibility is and strange order that mixed phisical products with virtual products. All the orders before this one are with this problem, after this, none of them.

    I tried too with modules:

    • Prestashop Cleaner to de DDBB. Doesn’t work.

    • Delete Orders Free with this order that I said before. Doesn’t work.

    I have some complains from some customers and others are waiting, I hope that someone could help me with this, I’m running out of ideas.

    Thanks!



  • So when did this Frontcontroller::init happen the first Time (in PS 1.6.1.17 ? or after Migration to TB)?

    "In the front office give me a 404 and didn’t finish the order (errors for the customers)"
    Do you use the 5-step-Buying thing or 1-Click?

    "And in the back office don’t change automatically the status of the orders."
    What do you mean by “automatically” ?

    Did you try an other Installation (with an other subdomain)? Are the Errors still happening then?


  • administrators

    Can you upgrade to the latest version of thirty bees, I think the issue is fixed in it.



  • @jamesblond008 It happend with PS 1.6.1.16 but I’m not sure if this was the problem.

    @lesley i’ve the last stable I think. Do you mean 1.0.3?

    I’ll try but I think that I’ve issues with the updater module aswell.

    Give me some minutes.

    Thanks!



  • Yes, when I upload the updater module I get error 500 in the modules page in back office.



  • Oops, something went wrong.
    
    Try to refresh this page or feel free to contact us if the problem persists.
    Please make sure to expand and include the following error code in your message, so we can help you better:
    
    Fzv92J3ycLwLnSTqjk1k/0slO1YZ7nzoxKVZUA2CVliVvfjmJp75ZAGuGjRbpcSAfuNxcA4LosHAfkL9v/mrIkj0bB1BSUw07zf+9yffHOvWqnDQoZfU2uoHHHGAs2xVDsDW+j3NBizk9gibhm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/y5KWKacQrwDvdmEFVRKSglxPP9U4L1/pETug8fh7+cdMce1Lbz6xhg6MmfTT1aS+PatfdB+0nd5LczUHYZ3KXxAmttxV85giQiOgdWO3fSDjJzcTFp9xUxWZZW30onT2fn7RD3pkD3x3pWn1ccJcrrDFgoNHKgcJYeEDC+S2AZhB1kkYDvqv+a7HFJjbEcqGRHHAlxgRz2xuH+m76uBMqqwhH+MkDfOb4+IjdrfY2lZd5ii1txZ7vbaR1VIm1X2j/wdpAH0rV0oSL/bs3pnmK51TSCXNQORWWOge7Vu+fKIt1CvpsYRwPKClFye7nWtzpRdDfHaYdqdYcyaE2qmh8rFdzd+lO/7GrU3QXhpKAkGuh6qpEI6SLuFZGY3CoL2SXmTDuK6mafO29nDm9uxL8SWek1s1WdgfVHqe+1kbLeUsB+II0X7s8im7SvwPfbqpZKXTw/hTS+HAn+o4IAeUb+O2gBi0ZT9LckiErOOhvTFaKeBuCwWg8s4tuSWz7mwtbUKvjbBgjB7CF1sUx2i/99vcTCHM1K/NwUazyUUv1vzj/EWb5e56lurY=004532
    


  • To ensure that the error was not caused by your browser, clear your cache and delete your cookies or try another browser.
    If you have emptied your cache without the website building without the error, you should wait and try again after a few minutes. If the error persists after several hours, you can contact the server admin. In most cases under the error is an e-mail address under which you can reach the admin.



  • It seems to be a Prestashop bug. The following link contains a lot of sugestions.
    https://www.prestashop.com/forums/topic/466782-cart-cannot-be-loaded-or-an-order-has-already-been-placed-using-this-cart/


  • Global Moderator

    This post is deleted!


  • Thank you so much everyone for the answers.

    Here the error that I get with TB updater installed:

    [PrestaShopException]
    
    This is not a valid version [[]]
    at line 24 in file vendor/vierbergenlars/php-semver/src/vierbergenlars/SemVer/version.php
    
    19.      */
    20.     function __construct($version, $padZero=false) {
    21.         $version = (string) $version;
    22.         $expression = sprintf(parent::$dirty_regexp_mask, parent::$global_single_version);
    23.       	if(!preg_match($expression, $version, $matches)) {
    24.             throw new SemVerException('This is not a valid version');
    25. 	}
    26. 
    27.         parent::matchesToVersionParts($matches, $this->major, $this->minor, $this->patch, $this->build, $this->prtag, $padZero?0:null);
    28. 
    29.         if($this->build === '') 
    vierbergenlars\SemVer\version->__construct - [line 167 - vendor/vierbergenlars/php-semver/src/vierbergenlars/SemVer/version.php] - [1 Arguments]
    vierbergenlars\SemVer\version::gt - [line 1017 - classes/module/Module.php] - [2 Arguments]
    ModuleCore::getModulesOnDisk - [line 405 - classes/Dispatcher.php] - [1 Arguments]
    DispatcherCore::getModuleControllers - [line 1376 - controllers/admin/AdminPerformanceController.php] - [1 Arguments]
    AdminPerformanceControllerCore->displayControllerList - [line 883 - controllers/admin/AdminPerformanceController.php] - [2 Arguments]
    AdminPerformanceControllerCore->initFieldsetFullPageCache - [line 126 - controllers/admin/AdminPerformanceController.php]
    AdminPerformanceControllerCore->renderForm - [line 79 - controllers/admin/AdminPerformanceController.php]
    AdminPerformanceControllerCore->initContent - [line 390 - classes/controller/Controller.php]
    ControllerCore->run - [line 742 - classes/Dispatcher.php]
    DispatcherCore->dispatch - [line 58 - admin/index.php]
    


  • @jamesblond008 Thanks James!, I tried with a new firefox installation and I have the same problem.

    @piet Thank you piet!, If I solve the updater problem and it fix this, then perfect, if not I’ll try with your suggestion.

    @traumflug Thanks for the tip!, in my previous post is unencrypted.


  • administrators

    Thanks for all the info in this topic. We have extracted the bug reports and are working on solutions.



  • More info for the updater problem:

    I tried with “Disable non TB modules” and the error shows up again.

    I realize that I had installed PS updater, but I delete it and still the same problem.



  • I have this error also in my advanced parameters>logs every time an order was placed but the payment/order processed okay.
    TB version 1.0.3

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


  • administrators

    It’s not a big problem, just an annoyance in the logs. The FrontController should be faster with assigning a new Cart number after an order. But instead it first checks, then generates a new one, which causes this entry in the logs: https://github.com/mollie/PrestaShop/issues/32#issuecomment-323986260


  • administrators

    This can probably be solved by assigning the new cart immediately after validating an order.
    It can even be solved by a payment module or made worse. Depends on how well the module is written.



  • Glad it’s not a big deal, as long as it isn’t a denied order :)
    Just happened to notice it then searched forum.
    Payment module is stripe just updated it yesterday if it makes a difference.



  • Yes it denied order to me.

    I just change back to PS 1.6.1.17 to solve this from beginning.

    I just found this in apaches logs on each order:

    [Fri Sep 22 16:28:25.913992 2017] [proxy_fcgi:error] [pid 29992:tid 140138759657216] [client 188.87.125.119:53191] AH01067: Failed to read FastCGI header, referer: https://tienda.comohacer.eu/module/bankwire/payment
    [Fri Sep 22 16:28:25.914044 2017] [proxy_fcgi:error] [pid 29992:tid 140138759657216] (104)Connection reset by peer: [client 188.87.125.119:53191] AH01075: Error dispatching request to : , referer: https://tienda.comohacer.eu/module/bankwire/payment


  • administrators

    @albnavper Then it must be something else. Is that all you could find in your server log? I see that you are using fcgi/php-fpm. Is there anything useful in those logs?


Log in to reply
 

Looks like your connection to thirty bees forum was lost, please wait while we try to reconnect.