-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.x]: Timeout when accessing the product page and the cart and when creating a new variant #3743
Comments
@alina-wuethrich-ye, Can you send your latest DB backup, composer.json, and composer.lock files to [email protected] - and reference this ticket? We can see if we can reproduce the issue and find the cause. Thanks! |
+1 Same problem here on two of our Commerce 5 projects. In one case there was an issue with a specific product which we were able to delete locally – everything seemed to work from there. The second project has more than 1000+ products and some of them have the same issue. With this amount of products, commerce very quickly becomes a black box for both our client and us devs since nobody knows if the edit of a certain product will either work perfectly fine or bring the whole CMS to its knees. |
@sandrodunkel are you also running MariaDB? If so, what version? |
@angrybrad Yes, we're running MariaDB 10.6.18, same as the original author of this issue. PHP 8.3.10, OS Linux 4.18.0-513.24.1.el8_9.x86_64 |
A switch to MySQL 5.7.44 solved all of the issues. Thank you for the support, @angrybrad. (An addition to the problem description: We figured out the problem only occured when dealing with products with exactly two variants, products with one and more than two variants worked just fine.) |
@sandrodunkel If upgrading to MySQL is an option, I'd suggest that. If not, then I'd at least try upgrading to MariaDB 10.10.1+. We’ve seen a handful of related issues where this has solved the problem. I’m guessing it’s likely related to https://jira.mariadb.org/browse/MDEV-28852 |
We just updated to MariaDB 10.11.10 and can confirm that this fixed the issue for us as well. Thanks @angrybrad and @alina-wuethrich-ye! |
What happened?
Description
After recently having updated to Craft CMS 5 and therefore also Craft Commerce 5 we are now experiencing problems with products/variants on the test and production system.
Steps to reproduce
There are three ways we can trigger the timeout.
Opening the product in the admin panel
Only a handful of the products are affected by this, which is why the problem has only been discovered now. We could so far not figure out a commonality between the affected products.
Expected behavior
The product page with the details opens.
Actual behavious
The product page never loads, a timeout time is reached and until then the whole Craft instance is not responsive (no other pages can be loaded).
Opening the cart which contains the product
Also only for the handful of affected products.
Expected behavior
The cart opens.
Actual behavious
The cart never loads, a timeout time is reached and until then the whole Craft instance is not responsive (no other pages can be loaded).
Creating a new product in the admin panel V1
Creating a new product in the admin panel V2
Expected behavior for both V1 and V2
The overlay opens where you can fill in the details of a new variant.
Actual behavious
The overlay is not opened, a spinner icon is displayed in the button, until a timeout time is reached and until the whole Craft instance is not responsive (no other pages can be loaded).
For all of these cases we do not see any errors in the Craft logs.
Craft CMS version
5.4.9
Craft Commerce version
5.2.1
PHP version
8.2.20
Operating system and version
Linux 3.10.0-1160.92.1.el7.x86_64
Database type and version
MariaDB 10.6.18
Image driver and version
Imagick 3.7.0 (ImageMagick 7.1.0-54)
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: