Jump to content

Prestashop 1.7.7.1 - Almost impossible to checkout


Recommended Posts

Hello all.

 

I'm having issues with checkout, I either get 504 GW timeout or is incredibly slow.

Example one (without sign in):

-Select a product and add to cart.

-Checkout with cart

-Enter name and e-mail.

-Enter address.

From this point it won't move forward, will end up with 504 GW timeout.

 

Example two (Sign in):

- Select product and add to cart.

- Checkout with cart

-Click sign in and enter user and pass.

At this point it's very slow, and gives 504 GW timeout.

 

Example three (Sign in before starting the order process):

- Sign in and enter user an pass. All goes well and we get to the profile.

- Select product and add to cart.

At this all start to be very slow again. The cart popup takes forever to appear.

I see in dev console 1.4minutes to load the cart page, then another 1.9min to load the ajax.

At this point I get the popup with the cart. 

- I click Checkout and the cart pages loads with the product after few secs of waiting.

- I click proceed to checkout. Takes again a few seconds to respond about 5s.

- I select address and hit continue.

At this point it's extremely slow again. in console I see order page in pending state. after 4 min the shipping method appears.

- I select shipping and hit continue.

At this point it's extremely slow again. in console I see order page in pending state. after 50 s the payment appears.

- I select payment method and accept the terms. Hit place order.

Here sometimes is executed after 10 to 15 secs, or hangs again for very long time, at the point that I receive the order confirmation email before the page moves to the final state.

 

You may test if you wish.

https://cosmetics.home-bargain.com

 

Server information Linux #136-Ubuntu SMP Tue Jan 12 14:58:42 UTC 2021 x86_64

Server software version: Apache/2.4.29

PHP version: 7.2.24-0ubuntu0.18.04.7

Memory limit: 2048M

Max execution time: 3600

Upload Max File size: 128M

MySQL version: 5.7.32-0ubuntu0.18.04.1

 

php-fpm config:

pm = dynamic
pm.max_children = 500
pm.max_requests = 2000
pm.start_servers = 2
pm.min_spare_servers = 2
pm.max_spare_servers = 25
pm.process_idle_timeout = 150
pm.status_path = /status
php_admin_value[memory_limit] = 2048M
php_admin_value[post_max_size] = 128M
php_admin_value[upload_max_filesize] = 128M
php_admin_value[max_execution_time] = 3600
php_admin_value[max_input_time] = 3600
php_admin_value[session.save_handler] = files
php_admin_value[session.gc_maxlifetime] = 1800
php_value[max_execution_time] = 7200

 

Please help.

Thanks

Share this post


Link to post
Share on other sites

Hi I created an order, was not terrible, you have a 'lot' of carriers, if they are api's then that can slow down shipping step.

a video of issue you are having if it differs from my test is really worth the effort to do so we can follow easily what you are having issue with.

 

Share this post


Link to post
Share on other sites

How can this be.... ok.

 

@El Patron

They were created through an API, but they are local. The API only comes to play again after order complete and payed to communicate to the warehouse.

 

Thank you both for your testing.

 

I'll do a video.

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Hello again.

I've tested and to me continues to hang.

I tested with incognito mode, without, in mobile, always happen.

 

Please see attached video.

 

I've deleted the users, you can retest again if you wish.

One thing regarding this, if I choose in the logout to not create an account, why is it created anyway? Is this normal?

 

Share this post


Link to post
Share on other sites

So it's onyl the checkout/payment process thats slow. I assume you have some modules/overrides in place causing this. Try to deactive these modules to identify the one causing it and then contact the module developer

  • Like 1

Share this post


Link to post
Share on other sites

@JBW

You were right.

One of the payment modules was causing this.

I can now successfully checkout.

I guess the module wasn't ready for 1.7.7, I'm in contact with them already.

 

But at least now I can provide service to customers.

 

I removed the default theme and got the store slower again, so next step is to find a better theme.

With Alysum I've 5s TTFB aprox very high..

 

Thank you all for the help.

  • Like 1

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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