Multiple errors upgrading to 3.11

Multiple errors upgrading to 3.11

by أشرف عبد القادر -
Number of replies: 1
Hello, I have these errors, not sure what to do with them.
The code inside the PHP files looks fine.
PHP version is 8.0

If I continue, I go back and return to the same screen. Continuing doesn`t bypass this.

error description
Average of ratings: -
In reply to أشرف عبد القادر

Re: Multiple errors upgrading to 3.11

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

These errors are due to a bug in the Google Meet for Moodle plugin. I've reported it as #36 Undefined constant "MESSAGE_DEFAULT_ENABLED". You should be able to work around this error by editing mod/googlemeet/db/messages.php changing lines 30 and 31 to:

 30             'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
 31             'email' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
Average of ratings: Useful (1)