July 14, 2014 at 12:04 am
I’ve been running into some problems with the theme options not saving if there is a home page carousel or icon menu that is really long (about 50 icon pictures of client logos). It seems that a carousel that long on the home options is overflowing the options. I originally had about 50 icons in an icon menu in the free version and it was working OK. I then upgraded to the premium version and changed from using an icon menu to a custom carousel so only some of the icons would show at a time and scroll through.
When running locally in MAMP any changes to options near the end of the options list, like the misc. options, would fail to save. As a test I’d change the contact form email and hit save. It would say it saved, but the field would revert to the default.
Looking in the php error log showed this:
[13-Jul-2014 16:14:54 Europe/Berlin] PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0
I was able to add the following line to the php.ini and stopping/starting the php server (through MAMP, It’s a test site running local) fixed it.
max_input_vars = 2000
That worked locally OK.
I’ve now moved the site online (*Login to see link ) at a cPanel site and may be having a similar problem. Now if I try to change any options and hit save it hangs for a long time and eventually returns with a file not found *Login to see link Manually checking shows that file is there. It may be overflowing when trying to access the options and I’m not sure if I can get to the same php log and php.ini that I had access to locally to fix it.
Would it be possible to break the options into separate sections to possibly avoid this? Maybe putting the contents of the custom carousel in a separate list rather than all in one big array? Or would that not help anyway? Is the 1000 limit for all variables or just in any one array?