VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: morphic on March 05, 2019, 10:45:45 AM

Title: Problem with save changes on product
Post by: morphic on March 05, 2019, 10:45:45 AM
Hi there,

I have problem with save products after changes. 

The problem concerns only the products having more than 100 child products. When I have less child products - e.g.50 - save on product page working correct.

What can cause the problem? Console don't show any errors. I have VPS server and max execution time and memory limit has been increased in php.ini
Title: Re: Problem with save changes on product
Post by: jenkinhill on March 05, 2019, 11:40:52 AM
Versions? See http://forum.virtuemart.net/index.php?topic=131863
Title: Re: Problem with save changes on product
Post by: morphic on March 05, 2019, 12:26:13 PM
Quote from: jenkinhill on March 05, 2019, 11:40:52 AM
Versions? See http://forum.virtuemart.net/index.php?topic=131863

Joomla 3.9.3 and VM 3.4.2
Title: Re: Problem with save changes on product
Post by: Studio 42 on March 05, 2019, 18:42:35 PM
https://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html
absMaxProducts is max number of products to get in one time.
You can have a problem because PHP post_max_size and max_input_vars
I think that the problem is max_input_vars, it's 1000 by default but each child need 7 or 8 values
So 8*100 = 800 + other inputs
Change max_input_vars 1000 to 3000 for eg.
Title: Re: Problem with save changes on product
Post by: morphic on March 07, 2019, 12:50:30 PM
Quote from: Studio 42 on March 05, 2019, 18:42:35 PM
https://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html
absMaxProducts is max number of products to get in one time.
You can have a problem because PHP post_max_size and max_input_vars
I think that the problem is max_input_vars, it's 1000 by default but each child need 7 or 8 values
So 8*100 = 800 + other inputs
Change max_input_vars 1000 to 3000 for eg.

Hi there,
I haven't absMaxProducts in my virtuemart.cfg file.
I changed max_input_vars to 8000 and post_max_size to 128MB and I have still the same problem.
Title: Re: Problem with save changes on product
Post by: GJC Web Design on March 07, 2019, 13:41:21 PM
QuoteI haven't absMaxProducts in my virtuemart.cfg file.

just add it and test
Title: Re: Problem with save changes on product
Post by: morphic on March 11, 2019, 22:42:38 PM
Quote from: GJC Web Design on March 07, 2019, 13:41:21 PM
QuoteI haven't absMaxProducts in my virtuemart.cfg file.

just add it and test
I had been added absMaxProducts=200 and tried +100 progress and the same - no save changes.

It's any specific place where should I put this?
Title: Re: Problem with save changes on product
Post by: GJC Web Design on March 11, 2019, 23:01:13 PM
any where in virtuemart.cfg

but is there no error thrown somewhere?

what happens when saving the +100 childs?
Title: Re: Problem with save changes on product
Post by: morphic on March 12, 2019, 13:13:55 PM
Quote from: GJC Web Design on March 11, 2019, 23:01:13 PM
any where in virtuemart.cfg

but is there no error thrown somewhere?

what happens when saving the +100 childs?


I have child products added using Custom Fields combinations. I made MultiVariants with two custom labels - all vartiants has different price.

And after add new category to parent product, upload new image or make changes in product description after click Save button changes aren't save. When I click Save & Close changes aren't save and I stay on products.
Title: Re: Problem with save changes on product
Post by: Studio 42 on March 12, 2019, 20:44:20 PM
Check your posted vars in the console and try to calculate the size needed to post_max_size and max_input_vars
Another solution is to split the main products in child product so you dont have not so many multivariant per product
Eg create 3 products :
product-Small
product-Medium
product-Large
And use multivariant in this children.
You can quick change parent id with my tool VM Be Pro for eg.