VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: hazael on May 11, 2023, 14:03:12 PM

Title: Invalid Token, in view=product task=apply [VM 4.0.12][J3]
Post by: hazael on May 11, 2023, 14:03:12 PM
Invalid Token, in view=product task=apply

I can't save/update one product.
I think I found the cause. The product had 23 graphics added. After deleting one graphic, the product can be saved

IN PHP post_max_size=40M solves this problem
Title: Re: Invalid Token, in view=product task=apply [VM 4.0.12][J3]
Post by: Jumbo! on May 19, 2023, 16:18:08 PM
Set "max_input_vars=25000" in php.ini. Then restart the server.
Title: Re: Invalid Token, in view=product task=apply [VM 4.0.12][J3]
Post by: hazael on May 19, 2023, 21:33:42 PM
Yes, you are right - this limit solves this problem.
Virtuemart should have an internal over limit check.
The user should get an understandable error message. Just like Joomla, it informs about the exceeded size of the uploaded file to the server.