Content not saving in LiveEditor (long pages disappearing content)

We have heard of a few occasions where on certain hosts, sites with lengthy sales pages stop rendering or saving content after a point. Our developers have investigated this in detail and found it is because of a limitation in the PHP setup for the site which is set to only save a certain number of variables on a page. Once this limit is exceeded, content is no longer saved (it's not due to a limitation or anything with OptimizePress itself).

There is a workaround, although you may need to ask your host to help you implement it (it should only need to be done once per site):

In your php.ini file you need to change the setting for the max_input_vars variable (this is usually set to around 1000). You need to change it to be 10000:

max_input_vars = 10000

This should ensure that all variables or content is saved to the database rather than only 1000 variables being passed through.

If updating through php.ini file doesn't work, then you can try creating a .user.ini file in the same directory as your wp-config.php file and add the same variable:

max_input_vars = 10000

IMPORTANT NOTE: Some hosting companies can't reach 10000 so please ask them their limits beforehand. If they can't reach 10000, ask them to go for max_input_vars = 9999 instead (see more about this at the bottom of this page).

Special Circumstances

Some hosting companies also use something called hardened PHP (Suhosin), in these cases you should also set some more variables: = 10000

suhosin.get.max_vars = 10000

suhosin.request.max_vars = 10000

suhosin.post_max_array_depth = 500

If you can get these values/settings changed on your server (normally by editing the php.ini file) this should fix the issue. Please note sometimes a server has to be restarted in order for the changes to php settings to take effect.

GoDaddy Hosting

If you have a GoDaddy Linux hosting account, here are the steps you need to take to change your max_input_vars setting:

  1. Create a ".user.ini" file in the public_html directly on your server.
  2. Place this line of code in that file:  max_input_vars = 10000
  3. Wait about 5 minutes for the server to recognize the change.

Important Note on setting this value too high: Please ensure that you do not set the max_input_vars variable excessively high as that may exceed the hosting server's limitation at which point your site will be defaulted back to the original setting with your host, which may be 1000 which is also to low (even if this setting shows higher in the compatibility check screen under "OptimizePress > Dashboard > Compatibility check").

We generally find that setting max_input_vars to 9999 or 10000 will work and there shouldn't be a need to exceed that unless you have extremely long pages. We would advise checking with your web host to find out the maximum allowed value if you are unsure, or if you are still having issues saving content if you have it set to 10000 or higher as we generally find in those cases that setting to 9999 usually works.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.