Prestashop: Critical bug at checkout

Created on 2 Jul 2019  路  20Comments  路  Source: PrestaShop/PrestaShop

Describe the bug
Payment modules is loading long time because of validation. Tested with both bankwire and check. Please check screenshots.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Checkout'
  2. Click on 'Accept payment'
  3. Wait 10-20 sec before the screen update
  4. See error and loadtime in console

Screenshots
3
4
1
2

Additionnal information
PrestaShop version: 1.7.6.0RC1
Serverinformation Linux #1 SMP Wed Feb 13 08:24:50 EST 2019 x86_64
Serversoftwarens version: LiteSpeed
PHP-version: 7.2.19
Hukommelsesgr忙nse: 756M
Maks. udf酶relsestid: 30
Upload maks. filst酶rrelse: 2M
MySQL-version: 10.2.24-MariaDB-cll-lve
MySQL-maskine: InnoDB
MySQL-driver: DbPDO
Webbrowser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0

1.7.6.0 Bankwire Bug Can't Reproduce Checkout FO

Most helpful comment

@sarahdib I will create a 1.7.5.2 shop on the server, so I can compare. I be back with more info later.

All 20 comments

I just tried with another clean install. Same issue.

image
image

I tried to debug the issue, but I am stock. On my production server (Linux / LiteSpeed) $total return 0.0? Maybe it is the problem?
5

And on my localhost running Windows / Apache on laragon, the $total is returned correct.

I use exactly the same PrestaShop settings (clean install).

Hi @MathiasReker,

I did not manage to reproduce the issue with PS1.7.6.0rc1 & the bank wire module.
https://drive.google.com/file/d/1fI4A5wZfu5abk8xEMeOO7YlWab-KO6EH/view
I used:

  • Server information Linux #1 SMP Debian 3.16.51-3 (2017-12-13) x86_64
  • Server software version: Apache/2.4.10 (Debian)
  • PHP version: 7.0.33-1~dotdeb+8.1

I used also "Swedish Krona" currency & Svenska language & it is OK
https://drive.google.com/file/d/1bLW0wMbM-HlMGNbvd-M1xyMsvXCZWgjB/view

The products added to your cart are they virtual products? product with combinations?

Thanks!

I got the same issue on both bankwire and check module. I think it is a core related issue.

Can you please try here: http://reker.dk/PS/

You can try with any product. I did just try with default installed products.

I use danish language with currency DKK / kr.

@MathiasReker, I tried with your shop & it is OK.
https://drive.google.com/file/d/1lORjXPion4tdMREo1O-olBi76QroLzJ7/view
Thanks!

@khouloudbelguith in your video you can see the validation is loading 10 seconds. It should be less than 1 second.

If you double click on the validation request you will be redirected to the exception.

@MathiasReker, this PR: https://github.com/PrestaShop/PrestaShop/pull/9373 prevent users from double click on the Payment button.
So, I cannot click twice on this button.
https://drive.google.com/file/d/13mJEyEVhYAVgKgD6_2dp0hwufht-or-V/view

Thanks!

@khouloudbelguith Please check this video: http://reker.dk/validation.webm

hello @MathiasReker

Thank you for your feedback.

Did you reproduce this bug on PS 1.7.5.2 ?

@sarahdib I will create a 1.7.5.2 shop on the server, so I can compare. I be back with more info later.

Hi @MathiasReker, what country and language did you chose when installing PrestaShop?

@sarahdib same issue on 1.7.5.2: http://reker.dk/1752

@Quetzacoalt91 Country: Denmark, language; Danish

@Quetzacoalt91 I can give you access to my live test-server if you need a litespeed server to test it on?

That's really weird, I tried on your shop and everything went fine:

image

Same for me
image

Try to clear your browser cache, even for cookie ? :thinking:

Yes, it went fine. But did it took 10-20 sec for the validator request?

The same for me
image

@PierreRambaud @Quetzacoalt91 When I do exactly the same on localhost (windows / Apache) my loadtime is less than 1 second. Please check this video: http://reker.dk/localhost.webm
So I think it is weird that this request takes 10 second on the production server (linux / LiteSpeed enterprise), when everything else on the production server is running fast.

Just to clarify: The redirection to order confirmation works, but the validation is taking 10-20 seconds. The load-time is the issue.

@MathiasReker
It seems to be related to your production configuration since in local the loadtime is less than 1 second and 4 persons did not reproduce the bug we will close the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nrcjea001 picture nrcjea001  路  3Comments

khouloudbelguith picture khouloudbelguith  路  3Comments

Fabuloops picture Fabuloops  路  3Comments

matks picture matks  路  3Comments

centoasa picture centoasa  路  3Comments