Configurable Product with Over 100 Variants Fails to Save, Reloads Page Without Changes
-
When creating a configurable product in Bagisto with over 100 variants, attempting to save the product results in a page reload without any changes being saved. Initially, warnings about max_input_vars and max_multipart_body_parts exceeding limits appeared. After increasing these limits in php.ini (to 5000 for max_input_vars and 6500 for max_multipart_body_parts), the warnings stopped. However, the product still does not save, and the page simply reloads without providing any error message or indication of failure.
Steps to Reproduce:
1] Create a configurable product in Bagisto.
2] Add more than 100 variants to the product.
3] Attempt to save the product.Expected Behavior:
The product should save successfully with all variants intact.Observed Behavior:
The page reloads after hitting save, and none of the entered data is saved. No error message appears, and the issue persists even after adjusting PHP settings (input variables, multipart body parts, memory limit, execution time).Additional Info:
PHP limits adjusted: max_input_vars = 5000, max_multipart_body_parts = 6500, memory_limit = 512M, max_execution_time = 300.
No errors found in PHP or Laravel logs.
Browser console shows no AJAX or JavaScript errors.Environment:
Bagisto Version: [2.2]
PHP Version: [8.2]
Database: MySQLWorkarounds Attempted:
Increased PHP limits (max_input_vars, max_multipart_body_parts, memory_limit, max_execution_time).
Tried saving variants in smaller batches
-
Hello @tribhuvanabhi,
Thank you for reaching out. We have logged an issue on GitHub to address your query. Our team will investigate, test, and, if confirmed, resolve the issue. You can follow the progress at the link below:
Issue link: https://github.com/bagisto/bagisto/issues/10311
Further updates will be posted on the issue page.
Thank you!