Server settings for posting checkbox & nesting values in PHP

348

I have form regarding add product. This is a big form containing lots of input fields, nested loops, add more functionality. When I fill all the fields & submit the form on my local machine & also on my demo server, it submitted successfully. But the same code is not working on client's live server. Database, database records, source code files all are same but it does not work on live server.

It shows the message like "Product added successfully" on live server but in actual id doesn't.

For e.g. there are 92 colors with checkbox option available on add product page & When I check one of the color it shows the section where I can add more information about that colored product like size, price, quantity(add more functionality for this section).

Likewise I checked all the colors & fill the information about all colors respectively. after submitting I print the posted value & found that it post sum of the records out of 92 colors which I select & fill the information of them.

Same criteria, same database, same source code files works on my local machine, demo server but it does not work on live server.

Someone suggest me that check the server config for max_input_nesting_level, max_input vars etc. I also thinks that there is some sever setting I need to do for the same but what are they I don't know.

407

Answer

Solution:

There is a setting in php_ini namely "post_max_size" increase its limit to 250M or some greater No, notice theM after 250M it stands for MB in post data

759

Answer

Solution:

I found the answer for above criteria. I have increased the size of "max_input_vars" from php.ini file & it works!!

People are also looking for solutions to the problem: php - Magento 404 page found and block is not getting called

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.