The guide for Moodle does not work anymore. This is due to not being able to use PHP 8.0, as suggested in the guide. We added a banner to the guide to signal the broken state.
If you have any insights, please comment on this issue. Pull requests fixing the guide are also highly appreciated. If the guide does not get fixed within two months, we will remove it from the lab, as documented in the broken guides policy.
Not able to tag the author @direnc
Details:
I just tried to take all the Moodle Lab steps.
In those steps, there isn't a "use PHP 8.0", step.
Trying this myself uberspace tools version use php 8.0 did not work, as I received the reply PHP version 8.0 does not exist.
Not changing the PHP version, gives several errors in the first initialize step, opening the domain:
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/virtual/mick/html/lib/phpminimumversionlib.php on line 56
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/virtual/mick/html/lib/phpminimumversionlib.php on line 56
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/virtual/mick/html/lib/dml/moodle_recordset.php on line 61
Fatal error: Method lang_string::__set_state() must take exactly 1 argument in /var/www/virtual/mick/html/lib/moodlelib.php on line 10380
I tried running it, after setting my PHP version to 8.1, but I still received the following errors:
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/virtual/mick/html/lib/dml/moodle_recordset.php on line 61
Fatal error: Method lang_string::__set_state() must take exactly 1 argument in /var/www/virtual/mick/html/lib/moodlelib.php on line 10380
The guide for Moodle does not work anymore. This is due to not being able to use PHP 8.0, as suggested in the guide. We added a banner to the guide to signal the broken state.
If you have any insights, please comment on this issue. Pull requests fixing the guide are also highly appreciated. If the guide does not get fixed within two months, we will remove it from the lab, as documented in the broken guides policy.
Not able to tag the author @direnc
Details:
I just tried to take all the Moodle Lab steps. In those steps, there isn't a "use PHP 8.0", step. Trying this myself
uberspace tools version use php 8.0
did not work, as I received the replyPHP version 8.0 does not exist.
Not changing the PHP version, gives several errors in the first initialize step, opening the domain:
I tried running it, after setting my PHP version to 8.1, but I still received the following errors: