You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in lib.php by commit bb7ef29 leads to the following PHP warning as the property "type" of the stdClass object is no longer initialized:
Got error 'PHP message:
PHP Warning: Undefined property: stdClass::$type in /moodle/apache2/htdocs/mod/game/lib.php on line 1248PHP message:
PHP Warning: Undefined property: stdClass::$type in /moodle/apache2/htdocs/mod/game/lib.php on line 1248PHP message:
PHP Warning: Undefined property: stdClass::$type in /moodle/apache2/htdocs/mod/game/lib.php on line 1248PHP message:
PHP Warning: Undefined property: stdClass::$type in /moodle/apache2/htdocs/mod/game/lib.php on line 1248PHP message:
PHP Warning: Undefined property: stdClass::$type in /moodle/apache2/htdocs/mod/game/lib.php on line 1248PHP message:
PHP Warning: Undefined property: stdClass::$type in /moodle/apache2/htdocs/mod/game/lib.php on line 1248PHP message:
PHP Warning: Undefined property: stdClass::$type in /moodle/apache2/htdocs/mod/game/lib.php on line 1248PHP message:
PHP Warning: Undefined property: stdClass::$type in /moodle/apache2/htdocs/mod/game/lib.php on line 1248', referer: https://MYMMOODLE.de/course/view.php?id=MYCOURSEID
This propably also has further consequences as the call to 'preg_replace('/.*type=/', '', $type->type);' thus is performed on the undefined property and '$type->name' wont be correctly set. I just noticed the error in my log files and have not looked into the effects this has.
I would assume the deletion of the line was by accident and the issue can be fixed by re introducing the line.
The text was updated successfully, but these errors were encountered:
NJahreis
added a commit
to NJahreis/moodle-mod_game
that referenced
this issue
Apr 16, 2024
The deletion of the following line
moodle-mod_game/lib.php
Line 1240 in f9e1717
This propably also has further consequences as the call to 'preg_replace('/.*type=/', '', $type->type);' thus is performed on the undefined property and '$type->name' wont be correctly set. I just noticed the error in my log files and have not looked into the effects this has.
I would assume the deletion of the line was by accident and the issue can be fixed by re introducing the line.
The text was updated successfully, but these errors were encountered: