Post by kinisurfwear » Mon Sep 02, 2013 9:03 am

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

New member

Posts

Joined
Mon Aug 12, 2013 4:11 pm

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by kinisurfwear » Wed Sep 04, 2013 3:24 am

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.

New member

Posts

Joined
Mon Aug 12, 2013 4:11 pm

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by kinisurfwear » Thu Sep 05, 2013 4:13 pm

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

New member

Posts

Joined
Mon Aug 12, 2013 4:11 pm

Post by MarketInSG » Thu Sep 05, 2013 9:03 pm

those don't seem like the issue. Try looking deeper. Is there anything that relates to the model or controller file of product.php?


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by Qphoria » Thu Sep 05, 2013 9:19 pm

I'd guess you have Subtract set to YES but have the Qty set to 0
so out of stock options are hidden automatically in opencart

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by kinisurfwear » Fri Sep 06, 2013 3:12 am

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.

New member

Posts

Joined
Mon Aug 12, 2013 4:11 pm

Post by MarketInSG » Fri Sep 06, 2013 8:19 am

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


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by kinisurfwear » Sun Sep 08, 2013 12:48 am

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

New member

Posts

Joined
Mon Aug 12, 2013 4:11 pm

Post by MarketInSG » Sun Sep 08, 2013 8:12 am

you might want to check this out: stackoverflow.com/questions/9399315/how-to-increase-maximum-post-variable-in-php


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by kinisurfwear » Mon Sep 09, 2013 3:17 am

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.....

New member

Posts

Joined
Mon Aug 12, 2013 4:11 pm

Post by kinisurfwear » Mon Sep 09, 2013 3:19 am

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;

New member

Posts

Joined
Mon Aug 12, 2013 4:11 pm

Post by butte » Mon Sep 09, 2013 3:34 am

[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)
Last edited by butte on Fri Sep 27, 2013 1:28 am, edited 1 time in total.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by kinisurfwear » Mon Sep 09, 2013 3:53 am

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.

New member

Posts

Joined
Mon Aug 12, 2013 4:11 pm

Post by kinisurfwear » Mon Sep 09, 2013 5:03 am

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.

New member

Posts

Joined
Mon Aug 12, 2013 4:11 pm

Post by butte » Mon Sep 09, 2013 5:35 am

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.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by butte » Mon Sep 09, 2013 5:44 am

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.
Last edited by butte on Mon Sep 09, 2013 6:01 am, edited 2 times in total.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by kinisurfwear » Mon Sep 09, 2013 5:51 am

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.

New member

Posts

Joined
Mon Aug 12, 2013 4:11 pm

Post by butte » Mon Sep 09, 2013 5:56 am

See immediately above yours for phpinfo, we posted in quick succession.

The setting I'm not seeing listed there is
post_max_size = 999M;
Try adding that.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am
Who is online

Users browsing this forum: Majestic-12 [Bot] and 79 guests