Type of xml_format_exception:

Type of xml_format_exception:

by Bronislav Robenek -
Number of replies: 6
Hi,
after fresh server installation Ive got from install.php th error
Deprecated: Return type of moodle_recordset::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/moodle/lib/dml/moodle_recordset.php on line 61
Fatal error: Type of xml_format_exception::$line must be int (as in class Exception) in /var/www/html/moodle/lib/xmlize.php on line 0

Ubuntu 22.04.3 LTS
installed via Ansible -  Nginx, PHP8.1-fpm, Postresql 14

name: install php8.1-fpm
   extensions: php8.1-fpm,php8.1-ctype,php8.1-curl,php8.1-dom, php8.1-gd, php8.1-intl, php8.1-mbstring,  php-xmlphp8.1-zip

Moodle installed :  
git clone -b MOODLE_400_STABLE git://git.moodle.org/moodle.git moodle

Would you give me any recomendation ?? No idea of moodle version in this case
(I gues is it right extension  php-xml   ??)

Thank you very much
Bronislav Robenek



Average of ratings: -
In reply to Bronislav Robenek

Re: Type of xml_format_exception:

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Moodle installed :  git clone -b MOODLE_400_STABLE git://git.moodle.org/moodle.git moodle

and:

installed via Ansible -  Nginx, PHP8.1-fpm, Postresql 14

Moodle 4.0 requires PHP 7.3, 7.4 or 8.0, it doesn't work with PHP 8.1. You need at least Moodle 4.1 if you have PHP 8.1. (Table showing which versions of Moodle work with which versions of PHP).

In reply to Leon Stringer

Re: Type of xml_format_exception:

by Bronislav Robenek -
Thank you very much, Im newbie here so
So what is right git link then for latest version (PHP 8.1)?? I think would be easiet way to change moodle version.
I gues then
git clone -b MOODLE_403_STABLE git://git.moodle.org/moodle.git moodle

Thank you very much
Bronislav Robenek
In reply to Bronislav Robenek

Re: Type of xml_format_exception:

by AL Rachels -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Using git clone the way you did, if you just start the Moodle install you will wind up with the Moodle main branch, which your DO NOT want.

https://docs.moodle.org/403/en/Git_for_Administrators

If you go look at that address, you will see that you need to get a list of possibilities (git branch -a) and then pick which branch you want to set up to use (the track line) and then checkout the code you want to implement. When you have done that, then web browsing to your site will start the install of 4.3..