Skip to content

Conversation

@sumaiyamannan
Copy link

Hi,
Moodle version: 4

To view the error enable Mnet.

This will resolve the below error:

Exception - Call to undefined function mnet_get_hosts()

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

line 2761 of /lib/upgradelib.php: Error thrown
line 736 of /lib/environmentlib.php: call to check_xmlrpc_usage()
line 482 of /lib/environmentlib.php: call to environment_custom_checks()
line 106 of /lib/environmentlib.php: call to environment_check()
line 70 of /lib/classes/check/environment/environment.php: call to check_moodle_environment()
line 285 of /admin/tool/heartbeat/croncheck.php: call to core\check\environment\environment->get_result()

Regards,

Sumaiya

@brendanheywood
Copy link
Contributor

Surely this is a core bug not a bug in heartbeat? This should be a tracker

@sumaiyamannan
Copy link
Author

But I am not able to reproduce the issue in core, it only comes up via tool_heartbeat. And it is weird to see an upgradelib referenced by a cron task as it shows in the error stack.

@brendanheywood
Copy link
Contributor

I can't reproduce this issue at all, in heartbeat or core? On latest master

@sumaiyamannan
Copy link
Author

Can you confirm that MNet is enabled and cron had ran in a Moodle 4 site?

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

Successfully merging this pull request may close these issues.

2 participants