Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined constant "MESSAGE_DEFAULT_ENABLED" #36

Open
leonstr opened this issue Nov 17, 2023 · 1 comment
Open

Undefined constant "MESSAGE_DEFAULT_ENABLED" #36

leonstr opened this issue Nov 17, 2023 · 1 comment

Comments

@leonstr
Copy link

leonstr commented Nov 17, 2023

Installing this plugin with Moodle 3.11 fails with:

Exception - Undefined constant "MESSAGE_DEFAULT_ENABLED"

More information about this error
Debug info:
Error code: generalexceptionmessage
Stack trace:

    line 30 of /mod/googlemeet/db/messages.php: Error thrown
    line 708 of /lib/messagelib.php: call to require()
    line 421 of /lib/messagelib.php: call to message_get_providers_from_file()
    line 863 of /lib/upgradelib.php: call to message_update_providers()
    line 576 of /lib/upgradelib.php: call to upgrade_plugins_modules()
    line 1929 of /lib/upgradelib.php: call to upgrade_plugins()
    line 713 of /admin/index.php: call to upgrade_noncore()
@leonstr
Copy link
Author

leonstr commented Nov 17, 2023

mod_googlemeet aee7f41 uses MESSAGE_DEFAULT_ENABLED but this was only introduced in Moodle 4.0 (MDL-67853).

For Moodle 3.11 you can work around this issue by editing mod/googlemeet/db/messages.php changing lines 30 and 31 to:

            'popup' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,
            'email' => MESSAGE_PERMITTED + MESSAGE_DEFAULT_LOGGEDIN + MESSAGE_DEFAULT_LOGGEDOFF,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant