I tried adding a new option under product option and it won't save it. I have the options added in Options tab but it won't save it under Product>Options. I already have 5 Product Options, so I thought maybe there was a limit to the number of options I can have per product? When I click Save it tells me it was successfully saved, but when I view my Store it's not there. Thanks
do you have many option values? If yes, that might be the issue
Thank, I do have Option Values and I do add them. It tells me it has saved, yet doesn't show up on my Store Front, and when I open the product to edit the options again, the options I had just added are not there.
are they anything in your error logs?
Yes! Lots and lots and lots of errors. The recent one is:
2013-08-03 1:50:43 - PHP Warning: Invalid argument supplied for foreach() in /home/kinisurf/public_html/shopkini/admin/controller/common/filemanager.php on line 368
And this is the error that looks like is related to my problem:
2013-08-07 19:33:06 - PHP Notice: Undefined index: product_id in /home/kinisurf/public_html/shopkini/admin/view/template/catalog/product_form.tpl on line 1346
2013-08-03 1:50:43 - PHP Warning: Invalid argument supplied for foreach() in /home/kinisurf/public_html/shopkini/admin/controller/common/filemanager.php on line 368
And this is the error that looks like is related to my problem:
2013-08-07 19:33:06 - PHP Notice: Undefined index: product_id in /home/kinisurf/public_html/shopkini/admin/view/template/catalog/product_form.tpl on line 1346
those don't seem like the issue. Try looking deeper. Is there anything that relates to the model or controller file of product.php?
My Subtract is set to Yes, my Qty is not 0, so this option should still be viewable.
Unfortunately I would not know what to look for in my product.php file.
Unfortunately I would not know what to look for in my product.php file.
if you already have 5 product options, how many option values do you have, just out of curiosity...it might be the max post variables limiting it
I have quite a few option values, probably 15-20 each, or something like that. The new one that I'm trying to add will have only three. You can check it out here: http://kinisurfwear.com/index.php?route ... duct_id=62
you might want to check this out: stackoverflow.com/questions/9399315/how-to-increase-maximum-post-variable-in-php
Thanks, I visited the link and one guy (the last post) said to do this:
"I solved this problem. Open the PHP.INI configuration file and add these lines
[suhosin]
suhosin.post.max_vars = 20000
suhosin.request.max_vars = 20000"
I did that and now one of the options I used to have has disappeared (and won't let me re-ad it) and another option's values have disappeared (half of them) and will not let me re-ad them (it will let me re-ad them, but will delete values in another option). I have disabled this product. Now I am worse off than when I started.....
"I solved this problem. Open the PHP.INI configuration file and add these lines
[suhosin]
suhosin.post.max_vars = 20000
suhosin.request.max_vars = 20000"
I did that and now one of the options I used to have has disappeared (and won't let me re-ad it) and another option's values have disappeared (half of them) and will not let me re-ad them (it will let me re-ad them, but will delete values in another option). I have disabled this product. Now I am worse off than when I started.....
This is what my php.ini file reads:
magic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 64M;
max_execution_time = 18000;
upload_max_filesize = 999M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;
allow_url_fopen = on;
magic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 64M;
max_execution_time = 18000;
upload_max_filesize = 999M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;
allow_url_fopen = on;
[AMENDED:]
and:
post_max_size 999M (it has its own setting, go with 999M)
mem lim to 256M (64M is weak)
BUT
upload_max_filesize 998M
because post_max_size 999M should exceed upload_max_filesize 998M
Why 12000000? (dinosaurs will never return in time)
and:
post_max_size 999M (it has its own setting, go with 999M)
mem lim to 256M (64M is weak)
BUT
upload_max_filesize 998M
because post_max_size 999M should exceed upload_max_filesize 998M
Why 12000000? (dinosaurs will never return in time)
Last edited by butte on Fri Sep 27, 2013 1:28 am, edited 1 time in total.
haha I don't know about the 12000000, it was like that when I installed it!
Thanks for the reply, I'll try that now and let you know what happens.
Thanks for the reply, I'll try that now and let you know what happens.
I changed mem lim to 256M and edited my product options, but I am still experiencing the same issue. It limits the amount of Options and values that I can save.
Did you undo (remove) that part above about
[suhosin]
suhosin.post.max_vars = 20000
suhosin.request.max_vars = 20000"
?
And what happened to doing max post size also 999M (it has its own setting, go with 999M) . . . ?
Bear in mind, just generally, that .htaccess and php.ini are for the machine itself to understand. If you make changes in either or both of those that the machine cannot cope with, it will be confused and throw 500. The 500 is simpler than a toddler's tantrum, it's quiet and abrupt and done, but has the same result, you will pay attention to it. The quick fix is to undo whatever you had just done to .htaccess or php.ini or both.
[suhosin]
suhosin.post.max_vars = 20000
suhosin.request.max_vars = 20000"
?
And what happened to doing max post size also 999M (it has its own setting, go with 999M) . . . ?
Bear in mind, just generally, that .htaccess and php.ini are for the machine itself to understand. If you make changes in either or both of those that the machine cannot cope with, it will be confused and throw 500. The 500 is simpler than a toddler's tantrum, it's quiet and abrupt and done, but has the same result, you will pay attention to it. The quick fix is to undo whatever you had just done to .htaccess or php.ini or both.
Do you have a copy of phpinfo.php to upload? (It tells all when queried about php settings.)
. . . You do now. Attached infra is a standard phpinfo.php to upload into your (public) account root for master settings, or into any directory for master or refined settings, in php.ini (untouchable master settings, account settings if you are allowed to amend the .ini or even to pick your php.exe version, directory settings such as by your own php.ini file it it will even work).
It is NOT a security risk for make display of php settings visible. The file itself contains one line of code
<?php phpinfo(); ?>
and is fired by executing its name, in the browser address bar as http://[wherever/location]/phpinfo.php
and then it shows more than you ever wanted to know about your settings.
. . . You do now. Attached infra is a standard phpinfo.php to upload into your (public) account root for master settings, or into any directory for master or refined settings, in php.ini (untouchable master settings, account settings if you are allowed to amend the .ini or even to pick your php.exe version, directory settings such as by your own php.ini file it it will even work).
It is NOT a security risk for make display of php settings visible. The file itself contains one line of code
<?php phpinfo(); ?>
and is fired by executing its name, in the browser address bar as http://[wherever/location]/phpinfo.php
and then it shows more than you ever wanted to know about your settings.
Attachments
Last edited by butte on Mon Sep 09, 2013 6:01 am, edited 2 times in total.
This is what my php.ini reads:
magic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 256M;
max_execution_time = 18000;
upload_max_filesize = 999M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;
allow_url_fopen = on;
[suhosin]
suhosin.post.max_vars = 20000
suhosin.request.max_vars = 20000
I've only edited the php.ini file, I haven't touched the .htaccess file.....yet
I've searched for a phpinfo file and it appears that I do not have one. That or I cannot find it.
magic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 256M;
max_execution_time = 18000;
upload_max_filesize = 999M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;
allow_url_fopen = on;
[suhosin]
suhosin.post.max_vars = 20000
suhosin.request.max_vars = 20000
I've only edited the php.ini file, I haven't touched the .htaccess file.....yet
I've searched for a phpinfo file and it appears that I do not have one. That or I cannot find it.
Who is online
Users browsing this forum: Majestic-12 [Bot] and 79 guests