costacja Posted April 14 Posted April 14 Hi, I am running a Moodle 5 site as a personal hobby project, and I need the max_input_vars parameter in the PHP settings to be set to at least 5000 for it to function correctly. Could you please help me update this or adjust it on your end? Thanks, C. Costa
MoneyBroz Posted April 14 Posted April 14 This support request is being escalated to our root admins.
Krydos Posted April 15 Posted April 15 It looks like Moodle doesn't support PHP 8.5 yet, but is there any particular reason you're not using PHP 8.4 which Moodle does support?
costacja Posted April 15 Author Posted April 15 Hi, I have installed Moodle 5.0.3 via Softaculous on my subdomain elearning.minutice.helioho.st, and it works well with PHP 8.3 and 8.5. However, when I try to upgrade to Moodle 5.0.6, the process fails. The error message states that max_input_vars must be set to at least 5000. Yesterday, I installed Moodle 5.1.3 from Softaculous in minutice.helioho.st domain, to try, and it works well. Besides the first installation, which works, I think that I cannot update or upgrade Moodle if max_input_vars isn´t set to 5000 at least. Based on my tests, the PHP version itself isn't the issue, but rather this specific setting required for the upgrade process. Could you please help me adjust this setting or update it on your end? Thanks, C. Costa
Krydos Posted April 15 Posted April 15 Yes, I can change the max_input_vars, but if you change the PHP version the max_input_vars will go back to the default value. Therefore you should make sure you're using the correct version of PHP prior to changing the max_input_vars. Generally it's a good idea to use the latest version of PHP that your software supports. Since Moodle doesn't support PHP 8.5 yet, that means PHP 8.4 is the latest support version, and yet you're using PHP 8.3. Like I said, is there any particular reason you can't use PHP 8.4?
costacja Posted April 17 Author Posted April 17 Hi, Your last question, no. I changed to PHP 8.4.15. on both instalations, as you can see on attached screenshots. Both works fine. Could you please update max_input_vars to 5000, at least on your end? If I can I will upgrade de moodle site elearning.minutice.helioho.st (moodle 5.0.3) by setting up a staging site and continue to update minutice.helioho.st (moodle 5.1.3) for a while. When I decide which installation works well for a personal hobby project, I will delete one of them and continue to maintain only one moodle installation. By the way, I don't have any backup on my main domain (costacja.helioho.st). I have only one backup of my elearning.minutice.helioho.st moodle installation on Softaculous (uses 74.34 MB). On costacja.helioho.st the site is the default one. Could you verify, why my account spends 1058.5 MB? Thanks. Best regards, Carlos Costa
wolstech Posted April 17 Posted April 17 Increased, it'll take up to 2 hours to become effective. For the space, 920MB of it is in files. Those Moodle installs are much more than 74MB each. The private folder is softaculous backups. Quote root@morty [/home/costacja.helioho.st]# du -h --max-depth=1 104K ./httpdocs 792K ./logs 362M ./minutice.helioho.st 361M ./elearning.minutice.helioho.st 12K ./.composer 195M ./private 8.0K ./.ssh 8.0K ./.trash 48K ./.github 180K ./.grunt 4.0K ./.phpstorm.meta.php 0 ./.upgradenotes 240K ./admin 164K ./lib 920M .
Recommended Posts