Opencart 2x:无法向产品添加超过 16 个选项
Opencart 2x: Unable to add more than 16 options to the product
我使用的是 Opencart 2.3.0.2 版本。我创建了一个产品选项,即来自 Catalog > Option
的产品颜色。当我尝试将此选项分配给产品时,我只能添加 16 个选项。当我尝试添加第 17 个选项时,我得到了一个错误列表:
Notice: Undefined index: type in path_to_the_site_folder/admin/model/catalog/product.php on line 192
Notice: Undefined index: option_id in path_to_the_site_folder/admin/model/catalog/product.php on line 211
Notice: Undefined index: value in path_to_the_site_folder/admin/model/catalog/product.php on line 211
Notice: Undefined index: required in path_to_the_site_folder/admin/model/catalog/product.php on line 211
Warning: Cannot modify header information - headers already sent by (output started at path_to_the_site_folder/admin/controller/startup/error.php:34) in path_to_the_site_folder/system/storage/modification/system/library/response.php on line 12
这里是管理文件夹的 php.ini 文件:
magic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 64M;
max_execution_time = 36000;
upload_max_filesize = 999M;
max_input_vars = 9000;
max_post_size = 999M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.auto_start = Off;
session.use_only_cookies = On;
session.use_cookies = On;
session.use_trans_sid = Off;
session.cookie_httponly = On;
session.gc_maxlifetime = 12000000;
allow_url_fopen = on;
谁能指导我如何解决这个问题?
谢谢
通常情况下,增加 max_input_vars 应该可以解决这种情况。但是,无论您使用的是什么服务器,都可能正在使用全局变量,这些变量可以覆盖您的设置以及那里的其余值。我会先仔细检查您的服务器设置,看看是否有全局变量覆盖了这些设置中的任何一个。如果不是,则尝试增加 max_input_vars
我使用的是 Opencart 2.3.0.2 版本。我创建了一个产品选项,即来自 Catalog > Option
的产品颜色。当我尝试将此选项分配给产品时,我只能添加 16 个选项。当我尝试添加第 17 个选项时,我得到了一个错误列表:
Notice: Undefined index: type in path_to_the_site_folder/admin/model/catalog/product.php on line 192
Notice: Undefined index: option_id in path_to_the_site_folder/admin/model/catalog/product.php on line 211
Notice: Undefined index: value in path_to_the_site_folder/admin/model/catalog/product.php on line 211
Notice: Undefined index: required in path_to_the_site_folder/admin/model/catalog/product.php on line 211
Warning: Cannot modify header information - headers already sent by (output started at path_to_the_site_folder/admin/controller/startup/error.php:34) in path_to_the_site_folder/system/storage/modification/system/library/response.php on line 12
这里是管理文件夹的 php.ini 文件:
magic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 64M;
max_execution_time = 36000;
upload_max_filesize = 999M;
max_input_vars = 9000;
max_post_size = 999M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.auto_start = Off;
session.use_only_cookies = On;
session.use_cookies = On;
session.use_trans_sid = Off;
session.cookie_httponly = On;
session.gc_maxlifetime = 12000000;
allow_url_fopen = on;
谁能指导我如何解决这个问题?
谢谢
通常情况下,增加 max_input_vars 应该可以解决这种情况。但是,无论您使用的是什么服务器,都可能正在使用全局变量,这些变量可以覆盖您的设置以及那里的其余值。我会先仔细检查您的服务器设置,看看是否有全局变量覆盖了这些设置中的任何一个。如果不是,则尝试增加 max_input_vars