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
Description
When logging an error relating to an invalid xapi statement (I'm investigating why the statement is invalid separately) the plugin calls an undefined variable 'eventobj'
Notice: Undefined variable: eventobj in /var/www/html/lms/html/admin/tool/log/store/xapi/src/loader/utils/load_batch.php on line 32
Description
When logging an error relating to an invalid xapi statement (I'm investigating why the statement is invalid separately) the plugin calls an undefined variable 'eventobj'
Notice: Undefined variable: eventobj in /var/www/html/lms/html/admin/tool/log/store/xapi/src/loader/utils/load_batch.php on line 32
See
moodle-logstore_xapi/src/loader/utils/load_batch.php
Line 32 in 3da6e75
In addition to the notice, this results in the error not including the event id, making it harder to pin down where the error lies.
Version
Not sure what version our client is running, but I can see the issue in the code in the current master branch.
Steps to reproduce the bug
You would somehow need the plugin to send an invalid xapi statement to an LRS that rejects it, then observe the cron log.
Expected behaviour
There should be no error notice about the undefined variable and the error about the statement should include the event id.
Actual behaviour
There is an error notice about the undefined variable and the error about the statement does not include the event id.
Server information
Unknown
Client information
Unknown
Additional information
None
The text was updated successfully, but these errors were encountered: