Post by Kiu » Sun Jul 14, 2019 4:58 pm

Hello everybody,

I have already posted this error via GitHub and was referred to this forum, because I am not a programmer but a user/shop owner.

I respect the work of the developers very much and don't want to waste their time...but would also like to help to correct this error ... because we use only products with many options in our shop and it is therefore very important for us that this works reliably.
Can someone write to me what I need to do, to give the developers the information they need? Here is the history of the topic that I had at GitHub.
____________________________

What version of OpenCart are you reporting this for?
Latest Master from GitHub

Describe the bug
Adding products with several options (in the "Option"-Tab) is not possible properly. If I add many options (let's say >3), only a few of them are saved.
In my test, I added two products:
Product 1 saved 3 options (of 8 options, that were configured during adding)
Product 2 saved 2 options (of 4 options, that were configured during adding)

Also, adding the missing options, AFTER saving the product is not possible.

To Reproduce
Steps to reproduce the behavior:


Go to Catalog/Options and add several Options (I added 8 options with Textfield, Text, Radio and so on)
Go to Calalog/Products and add a products with the options above
Go to Frontend and try to add the products or go to Catalog/Products again. In both cases, not all options are saved.

Expected behavior
Every selected option should be saved with the product.

Server / Test environment (please complete the following information):

Deployed to a web server
PHP version 7.3
Firefox
Version [latest]

___________________________________
Answer from Straighlight:
When re-adding the product options, troubleshoot the posted array on the browser and see which array keys or values might have an issue, according to this incident report.
__________________________________
My question
What do I need to do, to give the developers the information they need?

Thanks in advance
Kiu

Kiu
Newbie

Posts

Joined
Tue Feb 27, 2018 5:26 am

Post by straightlight » Sun Jul 14, 2019 6:15 pm

No OC version posted. Forum rules. Not a bug. The max post size in your php.ini file must be increased.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Kiu » Sun Jul 14, 2019 9:36 pm

Hello Straightlight,

thanks a lot for your reply.
Regarding your comment "No OC version posted": I used the latest Master from GitHub.
Regarding your comment "Not a bug. The max post size in your php.ini file must be increased.": I added the line
"post_max_size = 999M" to the php.ini, but this doesn't make any difference in the behaviour. It's still not possible to add more than three options to a product.

If you (or any other) has suggestions to this, I will help by trying everything :-)
As I use a test-environment, it's also no problem to share the credentials, so it might be easier to get this issue.

Kind regards
Kiu

Kiu
Newbie

Posts

Joined
Tue Feb 27, 2018 5:26 am

Post by straightlight » Sun Jul 14, 2019 9:44 pm

Contact your host if no effects after increasing the max post size . It's not an OC issue.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Kiu » Sun Jul 14, 2019 11:58 pm

Hello Straightlight,

I just wanted to report, that I contacted my provider. They wrote, that changed in php.ini are not taken into account and that I have to change the .htaccess

I uncommented these lines:
php_value post_max_size 999M
php_value max_execution_time 200
php_value max_input_time 200

...but these changes don't change the behaviour.

Kind regards
Kiu

Kiu
Newbie

Posts

Joined
Tue Feb 27, 2018 5:26 am

Post by straightlight » Mon Jul 15, 2019 4:33 am

Then keep notifying them about it since they're the ones who handles support for your server as well as providing those instructions.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by victorj » Mon Jul 15, 2019 6:14 pm

When multiple options are nog saved Then max input variables value needs to be increased.

Ad this tot your htaccess file, of ask your hoster tot change it in PHP settings.

max_input_vars = 100000
Last edited by victorj on Mon Jul 15, 2019 6:29 pm, edited 2 times in total.

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Eigen productie en snelle levering.
https://123-deurrubbers.com


User avatar
Expert Member
Online

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by straightlight » Mon Jul 15, 2019 6:19 pm

victorj wrote:
Mon Jul 15, 2019 6:14 pm
When multiple options are nog saved Them max input variables value needs to be increased.

Ad this tot your htaccess file, of ask your hoster tot change it in PHP settings.

max_input_vats = 100000
Even I can't understand what's written there nor have I ever seen max_input_vats before ...

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by letxobnav » Mon Jul 15, 2019 8:01 pm

if you exceed the default max_input_vars of 1000 you would get a warning in your server logs.
Mind you that is the number of post variables, if you exceed 1000, you are doing something really stupid with OC.

Crystal Light Centrum Taiwan


Active Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Who is online

Users browsing this forum: No registered users and 5 guests