• Resolved jkwalz

    (@jkwalz)


    I am trying to add fields to an existing Product set but they keep vanishing. I am adding fields 17 and 18 but they don’t stay after I click to save/update. I can’t even copy and existing field. Is there a max number of fields that can be added to a product set?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Check your php.ini for your max_input_vars. You might need to bump it up a bit. If you don’t have the ability to update php.ini then you can set it in an .htaccess file in your public_html directory with the following:

    
    php_value max_input_vars 3000
    php_value suhosin.get.max_vars 3000
    php_value suhosin.post.max_vars 3000
    php_value suhosin.request.max_vars 3000
    

    If that doesn’t work you might need to increase your post_max_size, max_execution_time or memory_limit. These options can be set with PHP ini_set but max_input_vars can only be changed in php.ini or .htaccess.

    Hi @jkwalz,

    yes you need to update your php.ini for variables mentioned by @brozra or update .htaccess. It will solve your issue.

    Thread Starter jkwalz

    (@jkwalz)

    I seem to be still having the same issue – I have increased max_input_vars to 3000 and memory is at 512.

    When I add the field an save it says that the changes are saved then the edit screen re-loads and the added field is gone.

    I can still add more fields to Product Meta with fewer options but not these with more.

    You might be trying to insert an invalid character that is causing the DB insertion / update to fail. What are you trying to add? Anything unusual?

    Have you checked your logs? php error_log? mysql error log?

    Try adding the plugin Query Monitor. It provides a wealth of information about behind the scenes processors and can identify issues quickly.

    https://www.ads-software.com/plugins/query-monitor/

    Thread Starter jkwalz

    (@jkwalz)

    Nothing unusual at all. In fact I added identicle fields to four other PPOM meta sets. I am adding two fields:

    1) An HTML field as a “section” used to create an accordion effect; then
    2) A Textarea Input field for the customer to add their comments

    I have successfully added these to fields to four PPOM meta sets. On the fifth PPOM set I am unable to add neither the HTLM field nor the Textarea field. When I create them and click “add” it adds it then the page refreshes and it is gone.

    There is nothing weird about the fields I am adding at all – just a normal description without HTML or anything.

    • This reply was modified 5 years, 4 months ago by jkwalz.
    Thread Starter jkwalz

    (@jkwalz)

    I was able to resolve this – I went back into cPanel and saw that php_value max_input_vars 3000 had reset so I used a basic text editor to re-save it and it stayed saved. So it looks like that actually was the issue and that it is now resolved.

    Glad you got it fixed.

    Cheers. If you like our support/plugin please rate our plugin.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Field Vanishing’ is closed to new replies.