Ian Cho Posted May 12, 2016 Share Posted May 12, 2016 Hello to Prestashop users and developers. I need your help. !!!! I found at my company e-commerce website that payments are received from customer by credit or debit card,but the orders are not created at back office. And also products in shopping cart are still exist. Prestashop version was 1.5 and I updated it to 1.6.1.4 on 30th of March.From 30.March to 27.April the payment and order seemed to be fine as I received the payment and the order was placed.Out of sudden,(I think), From 27.April, the problem happened. And it is still exist. I looked the log at back office, found a message"Frontcontroller::init - Cart cannot be loaded or an order has already been placed using this cart" The error message seems to happen after the Presashop upgraded, but as I mentioned, the payment and creating order were alright. We have two methods to pay at the website.http://www.aussiesox.co.nz1)Bank wire2)Swipe( Credit and Card) When I purchase and confirm a order by Bank wire payment, an order is created butwith Swipe payment method, order is not created and the products are still exist. And I looked at the log after I purchased product by both of the payment methods.(I turned on DEBUG MODE at paymentModule.php to see the log) When I purchased a product with Bank wire method, logs are created. But with the Swipe method, even the logs are not created. I added code below to PaymentModule.php and add the file to override/classes and turn the back office to allow override. This solved not to show an error masage "Frontcontroller::init - Cart cannot be loaded or an order has already been placed using this cart" But, the original problem is still exist. public function init(){if ((int)$this->context->cookie->id_cart) {$this->context->cookie->__unset('id_cart');}parent::init();} I also upgraded Swipe Hq version from 1.1 to 1.7 but it was not the solution. And then I did or us, this has solved the issue: https://www.prestash...ckavailablephp/ It is a bug in file Core/Business/Stock/Core_Business_Stock_StockManager.php at line 126 you should have like this:$stockAvailable->quantity = $stockAvailable->quantity + $delta_quantity;$stockAvailable->id_product = (int)$product->id;$stockAvailable->id_product_attribute = (int)$id_product_attribute;$stockAvailable->update(); But, it did not help as well. Please guys help me to solve this issue. It is emergent...!!! Link to comment Share on other sites More sharing options...
Ian Cho Posted May 13, 2016 Author Share Posted May 13, 2016 Guys Please give me some advice to solve this issue. Please help me. Link to comment Share on other sites More sharing options...
Ian Cho Posted May 13, 2016 Author Share Posted May 13, 2016 You probably aren't in maintenance mode but if you are, that is your problem. There is no topics or posts about the payments not working when in maintenance mode but when I started using prestashop I had that problem. Take it out of maintenance mode and it should work for you. That is my advice. If it doesn't help, sorry, I've only been using prestashop for a few months. Our business is www.circuits.ninja Thank you for your reply. I have not solved this issue and spending 3 full days now. Maintenace mode? Are you talking about Maintenance mode in Preference at Back office? If it is maintenance mode, no one can view our website exept specific IP address. Isn't it? Are you talking about other maintenace mode? If it is please let me know. Thank you Link to comment Share on other sites More sharing options...
kinderyum Posted May 15, 2016 Share Posted May 15, 2016 I'm having a very similar problem and just made a post about it. Link to comment Share on other sites More sharing options...
Guest Posted May 15, 2016 Share Posted May 15, 2016 Have you spoken to Swipe them selves or the module developers. It is always best to start there Link to comment Share on other sites More sharing options...
kinderyum Posted May 15, 2016 Share Posted May 15, 2016 (edited) Just found this through a search but am yet to try any of the ideas. http://www.presto-changeo.com/en/content/10-fixing-paypal-problems Edited May 15, 2016 by kinderyum (see edit history) Link to comment Share on other sites More sharing options...
Ian Cho Posted May 16, 2016 Author Share Posted May 16, 2016 Have you spoken to Swipe them selves or the module developers. It is always best to start there I did, but they said there have not been changed any setting at there end. Besides, they don't have any developers left who developed the modules...... Link to comment Share on other sites More sharing options...
kinderyum Posted May 16, 2016 Share Posted May 16, 2016 Just found this through a search but am yet to try any of the ideas. http://www.presto-changeo.com/en/content/10-fixing-paypal-problems Seems this article is for older versions of Prestashop as my version (1.6.1.4) doesn't have the file /modules/paypal/validation.php Link to comment Share on other sites More sharing options...
Ian Cho Posted May 16, 2016 Author Share Posted May 16, 2016 Just found this through a search but am yet to try any of the ideas. http://www.presto-changeo.com/en/content/10-fixing-paypal-problems Hi, Are you using Paypal?? I did change all permission of payment modules to 755 as the link says but it didn't work for me. As I don't use Paypal module, the solution to change code does not suit my case. Been a while, I couldn't solve this issue and now I am very worrying... Link to comment Share on other sites More sharing options...
kinderyum Posted May 16, 2016 Share Posted May 16, 2016 Hi Ian, yes I'm using Paypal. I'm trying to use Websites Payment Pro Hosted but am faced with this issue I will continue the search I guess, as Paypal have not replied to me yet. Link to comment Share on other sites More sharing options...
Ian Cho Posted May 16, 2016 Author Share Posted May 16, 2016 (edited) kinderyum Have you try to find the issue in Prestashop forge? If you haven't try to find about it at http://forge.prestashop.com/browse/PSCSX-8040?filter=-4 Edited May 16, 2016 by Ian Cho (see edit history) Link to comment Share on other sites More sharing options...
kinderyum Posted May 16, 2016 Share Posted May 16, 2016 Thank you. No, I haven't. I'm just reading this forum post at the moment, because the problem is exactly the same as mine: https://www.prestashop.com/forums/topic/282164-paypal-payment-but-no-orders/ Link to comment Share on other sites More sharing options...
Ian Cho Posted May 16, 2016 Author Share Posted May 16, 2016 Thank you. No, I haven't. I'm just reading this forum post at the moment, because the problem is exactly the same as mine: https://www.prestashop.com/forums/topic/282164-paypal-payment-but-no-orders/ I am spending 5 days to solve this problem... Please update if you find any idea. Link to comment Share on other sites More sharing options...
kinderyum Posted May 16, 2016 Share Posted May 16, 2016 I definitely will, same with you please! Link to comment Share on other sites More sharing options...
Ian Cho Posted May 16, 2016 Author Share Posted May 16, 2016 Yes, I will thanks. Link to comment Share on other sites More sharing options...
kinderyum Posted May 16, 2016 Share Posted May 16, 2016 Just looking at the Error Log in my Cpanel and I'm seeing A LOT of this and I have no idea what it is! [15-May-2016 19:15:51 America/Denver] PHP Warning: Module 'magickwand' already loaded in Unknown on line 0 [15-May-2016 19:15:51 America/Denver] PHP Warning: Module 'ionCube Loader' already loaded in Unknown on line 0 Link to comment Share on other sites More sharing options...
kinderyum Posted May 16, 2016 Share Posted May 16, 2016 (edited) And this: [sun May 15 20:23:51 2016] [error] [client 180.76.15.22] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [sun May 15 20:23:51 2016] [error] [client 180.76.15.22] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [sun May 15 20:23:51 2016] [error] [client 23.89.12.95] Zend Guard Loader requires Zend Engine API version 220100525., referer: http://www.imageamplified.com/ [sun May 15 20:23:51 2016] [error] [client 23.89.12.95] The Zend Engine API version 220131226 which is installed, is newer., referer: http://www.imageamplified.com/ [sun May 15 20:23:51 2016] [error] [client 23.89.12.95] Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader., referer: http://www.imageamplified.com/ [sun May 15 20:23:51 2016] [error] [client 23.89.12.95] , referer: http://www.imageamplified.com/ [sun May 15 20:23:52 2016] [error] [client 72.21.217.153] [sun May 15 20:23:52 2016] [warn-phpd] The ionCube PHP Loader is disabled because of startup problems. (pid 7349), referer: http://weretherussos.com/february-2016-expenses-and-income-report/?relatedposts_hit=1&relatedposts_origin=3769&relatedposts_position=1 Edited May 16, 2016 by kinderyum (see edit history) Link to comment Share on other sites More sharing options...
kinderyum Posted May 16, 2016 Share Posted May 16, 2016 I'm having too many problems with this, I'm going to try it in LIVE mode and make real payments (I will set my product price and shipping very very low). Just to see if this is all related to Sandbox Mode. Link to comment Share on other sites More sharing options...
Ian Cho Posted May 16, 2016 Author Share Posted May 16, 2016 (edited) I'm having too many problems with this, I'm going to try it in LIVE mode and make real payments (I will set my product price and shipping very very low). Just to see if this is all related to Sandbox Mode. Oh... you have too may error logs receiving... Go to Advanced parameters -> Configuration Information at your Back office. At right bottom, you can see CHECK YOUR CONFIGURATION. Try to update the configurations as it says. Edited May 16, 2016 by Ian Cho (see edit history) Link to comment Share on other sites More sharing options...
kinderyum Posted May 16, 2016 Share Posted May 16, 2016 (edited) Now I get this error when I try and pay for real: Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address. FFS!! ETA: I sorted it out. It's part of Paypal's Fraud Protection system, which I can understand. Once I changed the customer country to the same as the Paypal account country, it let the payment go through. So I've managed to pay by Credit Card ok (LIVE payment) now just need to create a REAL Paypal account to test Paypal account payment. So it seems the issue (mine at least) is to do with Sandbox mode. Edited May 16, 2016 by kinderyum (see edit history) Link to comment Share on other sites More sharing options...
kinderyum Posted May 16, 2016 Share Posted May 16, 2016 Oh... you have too may error logs receiving... Go to Advanced parameters -> Configuration Information at your Back office. At right bottom, you can see CHECK YOUR CONFIGURATION. Try to update the configurations as it says. CHECK YOUR CONFIGURATION Required parameters OK Optional parameters OK Link to comment Share on other sites More sharing options...
kinderyum Posted May 16, 2016 Share Posted May 16, 2016 (edited) Ian - So I've managed to pay by Credit Card ok (LIVE payment) now just need to create a REAL Paypal account to test Paypal account payment. So it seems the issue (mine at least) is to do with Sandbox mode. I hope your issue is resolved soon! Edited May 16, 2016 by kinderyum (see edit history) Link to comment Share on other sites More sharing options...
kinderyum Posted May 16, 2016 Share Posted May 16, 2016 (edited) Ian - So I've managed to pay by Credit Card ok (LIVE payment) now just need to create a REAL Paypal account to test Paypal account payment. So it seems the issue (mine at least) is to do with Sandbox mode. I hope your issue is resolved soon! Just remembered an old Paypal account I have for personal use. Made another LIVE order and the LIVE Paypal Account payment WORKED! Thank goodness! It would have been nice to test (Sandbox) payments but I guess that just isn't going to happen lol. I'm putting this matter to bed! Edited May 16, 2016 by kinderyum (see edit history) Link to comment Share on other sites More sharing options...
Ian Cho Posted May 16, 2016 Author Share Posted May 16, 2016 Ian - So I've managed to pay by Credit Card ok (LIVE payment) now just need to create a REAL Paypal account to test Paypal account payment. So it seems the issue (mine at least) is to do with Sandbox mode. I hope your issue is resolved soon! Good to hear that you managed the issue. I noticed that many users have the Paypal issue. My case seems weird one and have not been resolved yet. Link to comment Share on other sites More sharing options...
kinderyum Posted May 16, 2016 Share Posted May 16, 2016 (edited) Good to hear that you managed the issue. I noticed that many users have the Paypal issue. My case seems weird one and have not been resolved yet. It's strange (or maybe not, I'm no expert) that our problems are the same but with different causes. Good Luck! I wish I could help! Edited May 16, 2016 by kinderyum (see edit history) Link to comment Share on other sites More sharing options...
wisselring100 Posted August 8, 2016 Share Posted August 8, 2016 i have the same problem whit ideal en uther payment methode only bank wire work oke do some one what is the problem???? help Link to comment Share on other sites More sharing options...
Puriom Posted March 2, 2018 Share Posted March 2, 2018 Prestashop 1.7 and the same for me... Link to comment Share on other sites More sharing options...
jowjow Posted July 23, 2019 Share Posted July 23, 2019 i have the same issue, does anyone solve this problem? Link to comment Share on other sites More sharing options...
ecommerce16 Posted July 23, 2019 Share Posted July 23, 2019 8 minuten geleden, jowjow zei: i have the same issue, does anyone solve this problem? Is it realy the same? With the same payments method? PLease give more information. Which version of PS you use. Which payment provider do you use. If shop is in debug modus do you get a error report? Only with correct and complete information people can help. Link to comment Share on other sites More sharing options...
jowjow Posted July 23, 2019 Share Posted July 23, 2019 Hello Curious, PS 1.7.5.1 I have installed in my shop PayTpv. When I purchase and confirm a order by Bank wire payment, an order is created but with Paytpv payment method, order is not created and the products are still exist in the cart when the user is no registered, but if is a registered user give me this error: I have debug mode on, i have already tried with debug mode off and still have the same issue. thanks for your help. Link to comment Share on other sites More sharing options...
ecommerce16 Posted July 23, 2019 Share Posted July 23, 2019 55 minuten geleden, jowjow zei: I have installed in my shop PayTpv. Wich version? compatible with your version of PS 1.7.5.1 Maybe the maker of this module can help you out Link to comment Share on other sites More sharing options...
jowjow Posted July 23, 2019 Share Posted July 23, 2019 Pay TPV v7.4.10 and yes it is compatible. Link to comment Share on other sites More sharing options...
Pierre Belin Posted December 10, 2020 Share Posted December 10, 2020 In case someone find this post : I had the same problem with Redsys, and the answer is : you have to activate the option "Create order before the payement". Since there is a delay, the payment isn't validated at the order payment ! Link to comment Share on other sites More sharing options...
jaimeweb Posted March 24, 2021 Share Posted March 24, 2021 On 12/10/2020 at 9:47 AM, Pierre Belin said: In case someone find this post : I had the same problem with Redsys, and the answer is : you have to activate the option "Create order before the payement". Since there is a delay, the payment isn't validated at the order payment ! How did you fix this ? Where is this option: Create order before the payement 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