MythTV / mythweb

The official MythTV mythweb repository
Other
98 stars 74 forks source link

mythweb max_input_vars bug and fix #38

Open Steve-Goodey opened 3 years ago

Steve-Goodey commented 3 years ago

What steps will reproduce the bug?

Mythweb, Settings, Channel Info. Selecting commfree on some channels and going to end of page and pressing save.

How often does it reproduce? Is there a required condition?

Reproduce everytime.

What is the expected behaviour?

comfree setting should stay enabled after pressing save.

What do you see instead?

Screen refreshes and shows the page but with an error message. "Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0" "The fix is insert php_value max_input_vars 10000 in /etc/apache2/sites-available/mythweb.conf in the section with the other php config settings." This is from https://forum.mythtv.org/viewtopic.php?f=6&t=3788&p=18206&hilit=max_input_vars#p18206 by JeffDwork.

Steve-Goodey commented 3 years ago

A comment from the forum post:-

"The current solution is to set max_input_vars to 10000 in 20-mythweb.ini in the /etc/php/version/apache2/conf.d directory (on ubuntu, at least). This is the wrong place, as this file will not be loaded after a version upgrade of php."