Undefined index: option_value_id in /admin/model/catalog/product.php on line 241
I have tried setting max_input_vars as high as 190000 to see if the suggested changes fixes it, but it does not.
We have an option for color that may have as many as 60 colors. Are there any other settings to avoid this issue.
How did you increase? Make sure it has increased properly. If you are increasing using php.ini, try adding in .user.ini file because configuration file may be different depending on php configuration.
Create a php file info.php and add following code and upload it on the admin directory. Then access it using browser to check the current of max_input_vars
Code: Select all
<?php phpinfo(); ?>
The server is running nginx+php-fpm
PHP version is 7.2
In php.ini, I have (only changed to 190000 for testing)
max_input_vars = 9000
In admin/controller/product/edit, I added
echo count($this->request->post, COUNT_RECURSIVE) - count($this->request->post);
This gives me 1108 on the failed posts. Posts under 1000 work as expected.
In /etc/php-fpm.d/www.conf, I added
php_value[max_input_vars] = 10000
In /etc/nginx/fastcgi_params, I added
fastcgi_param PHP_VALUE max_input_vars=9000;
For each change, nginx and php-fpm were issues a full stop and check to ensure the process was actually stopped before starting again.
There are no user.ini or directory level php.ini files
Is there anything in the code which limits form fields or array recursion?
Are there any other locations I can look for?
ini_get() gives me
number of posted fields = 1108
post_max_size = 100M
max input vars = 9001 - this is from the .user.ini I added to /admin
post_max_size in bytes = 100M
Notice: Undefined index: option_value_id in ****/admin/model/catalog/product.php on line 241
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Users browsing this forum: No registered users and 28 guests