Jump to content

Request to increase max_input_vars to 5000 (PHP Settings)


Recommended Posts

Posted

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

 

Posted

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?

Posted

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

Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...