Deprecated error in 3.11 with latest Apache install

Deprecated error in 3.11 with latest Apache install

ដោយ Ian Hill នៅ
ចំនួនតប៖ 5

Was setting up a Dev moodle install on a new laptop for testing some themes and suchlike.

Grabbed normal Apache download and installed it. Aka latest 8.1.1 install from their homepage.
Which has PHP 8.1.1 

Noted: MDL-70745 - PHP 8.0 support is being implemented for Moodle 3.11 and later releases. Hence it's still incomplete and only for development purposes.

Got Moodle 3.11 via Git
Went to install and it immediately hit a Deprecation -

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 C:\Dev_Servers\xampp\htdocs\moodle\lib\dml\moodle_recordset.php on line 61

So will have to revert to an earlier Xampp with 7.x php.

But thought I'd mention it here though  in case others installing the latest apache get the same or similar error.
Ans so that the moodle devs are aware of the error.

Cheers
Ian.

មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Ian Hill

Re: Deprecated error in 3.11 with latest Apache install

ដោយ Howard Miller នៅ
រូបភាព Core developers រូបភាព Documentation writers រូបភាព Particularly helpful Moodlers រូបភាព Peer reviewers រូបភាព Plugin developers
You mean the latest PHP, of course.

There's a bug tracker for this - MDL-70745
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Ian Hill

Deprecated error in 3.11 with latest Apache install

ដោយ Paul Holden នៅ
រូបភាព Core developers រូបភាព Moodle HQ រូបភាព Moodle Workplace team រូបភាព Particularly helpful Moodlers រូបភាព Peer reviewers រូបភាព Plugin developers រូបភាព Testers
Hi Ian,

That particular issue is MDL-73424 (part of the ongoing PHP8.1 epic at MDL-73016)

Solution is to not use those versions of PHP, and stick to supported versions only
មធ្យមភាគនៃរង្វាយតម្លៃ:Useful (3)
ឆ្លើយតបទៅកាន់ Paul Holden

Re: Deprecated error in 3.11 with latest Apache install

ដោយ Mc Bovis នៅ
Hy, I am trying to install Moodle 3.11 on Fedora 36 with PHP 8.1 and Postgres 14.1 although Moodle and PHP only works with PHP 7.4 versions.

Hope this issue with php xmlrpc module can be solved soon.

Thanks.
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Mc Bovis

Re: Deprecated error in 3.11 with latest Apache install

ដោយ Marcus Green នៅ
រូបភាព Core developers រូបភាព Particularly helpful Moodlers រូបភាព Plugin developers រូបភាព Testers
Do you have a reason for wanting to use PHP 8?
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Marcus Green

Re: Deprecated error in 3.11 with latest Apache install

ដោយ Mc Bovis នៅ

Hy, just to stay up to date. 

In fact I downgraded PHP from 8.1 to 7.4 and have got Moodle installed in Fedora 36 running nicely. (HTTPD + Postgres 14.1 + PHP 7.4)

Thanks

មធ្យមភាគនៃរង្វាយតម្លៃ:Useful (1)