Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Moodle loops in course overview if BBB is not available #25

Open
vlasov01 opened this issue Sep 23, 2020 · 1 comment
Open

Moodle loops in course overview if BBB is not available #25

vlasov01 opened this issue Sep 23, 2020 · 1 comment

Comments

@vlasov01
Copy link

vlasov01 commented Sep 23, 2020

Hi,

Thank you for the BBB and great plugin!
I'm trying to reduce resource utilization by running BBB server only when live sessions are running. But I've noticed that when a course has BBB activity and BBB is not available than Moodle start looping on home page in course overview block.
As well Apache 2 logs has the following error messages:
PHP Notice: Undefined index: returncode in /var/www/html/moodle/mod/bigbluebuttonbn/locallib.php on line 1220
This line points to the last line of in bigbluebuttonbn_is_meeting_running function:

$meetinginfo = bigbluebuttonbn_get_meeting_info($meetingid, $updatecache);
return ($meetinginfo['returncode'] === 'SUCCESS');

I'm using Moodle 3.9.2+ (Build: 20200918) and BigBlueButtonBN (mod_bigbluebuttonbn) 2.3.4 2019042009.

I will really appreciate if you can provide a fix or workaround.

Regards,

Sergey

@klausveliu
Copy link

You can edit the code yourself at least to hide the warning.
It seems that in some cases the BBB is not returning the node returncode in the response.

return ($meetinginfo['returncode'] === 'SUCCESS');

to

if (isset($meetinginfo['returncode'])) { return ($meetinginfo['returncode'] === 'SUCCESS'); }

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

No branches or pull requests

2 participants