Moodle 4.1 and PHP 8.2

Moodle 4.1 and PHP 8.2

by Piotr Cieślak -
Number of replies: 5
Hi, do you have any experience with installing and running Moodle version 4.1on PHP 8.2 
Average of ratings: -
In reply to Piotr Cieślak

Re: Moodle 4.1 and PHP 8.2

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Moodle is NOT compatible with PHP 8.2.

Please see the release notes, https://moodledev.io/general/releases/4.1

"PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x and 8.1.x are supported too"
Average of ratings:Useful (2)
In reply to Howard Miller

Odp: Re: Moodle 4.1 and PHP 8.2

by Piotr Cieślak -
I was going to install Moodle 4.1 in php81-fpm environment, and next switch into php82-fpm. But now I think that it carries unwanted risks. I stay with php81.
Regards.
In reply to Piotr Cieślak

Re: Odp: Re: Moodle 4.1 and PHP 8.2

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Moodle 4.1, php8.1-fpm and Nginx is the combination started testing for the summer. It feels "fluid" (responsive) if you look away from some graphical changes which are not liked by the routined teachers. One can argue about it. But MDL-71909 is a real road block (for me).
In reply to Visvanath Ratnaweera

Re: Odp: Re: Moodle 4.1 and PHP 8.2

by Darija Atanaskovic -
I have the latest versions of Moodle and PHP 8.2 and everything worked perfectly until I wanted to install the Moodle Adaptable free theme. Is that because these two are not compatible - newest version of Moodle and PHP 8.2?

I managed to solve the problem. I actually didn't pay attention to what veriosn of moodle theme I chose along with the _Moodle version. So simple actually. Of course, PHP version is also very important. I posted this in case someone needs it.
In reply to Darija Atanaskovic

Re: Odp: Re: Moodle 4.1 and PHP 8.2

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Having now been over this in several threads.

Moodle 4.2 (the latest) is NOT compatible with PHP 8.2. This isn't because nobody bothered to test it; it's because there are known outstanding issues. Moodle will be compatible just not yet.

Worse... that's core Moodle. Optional plugins *should* be compatible with the same range of server software as the core Moodle versions they claim compatibility with. However, to check all that is a big ask and may not always be the case.

If you choose to use 8.2 despite this then you are very much on your own.