-
Notifications
You must be signed in to change notification settings - Fork 84
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
Statements are not being sent to Learning Locker when running cron. #223
Comments
mb_ereg_replace is not in php 7.0.0. What version are you using? |
I think we are using PHP 7.0 on our Ubuntu server running Ubuntu 16.04 |
The It seems to me that the issue is more likely related to the unintended namespace that PHP is adding to the function call (see the |
I wonder what version of PHP @AndyHubert is using and whether the different version seems to effect the way namespaces are handled, however, I'm unsure how this wouldn't have been picked up in our tests. |
I am using PHP 5.6.36. |
Cool thanks @AndyHubert, useful to know 👍 |
I wonder if #197 is a "red herring" here. Since it was included in v3.3.10 and this issue was seen on v3.14.1, a lot happened between those two releases. This may be unrelated, but I've received a report that on v3.14.3 statements are sent temporarily via the Cron and then stop sending, I believe this is due to #203 which was included in v3.9.3 (relevant here because it's between v3.3.10 and v3.14.1). My theory is that transformers are failing for some events, in which case the plugin does not delete the events from the "mdl_logstore_xapi_log" table, which leaves the events at the top of the table and the plugin then tries to reprocess them in the next batch. Previously this wouldn't have been an issue, because the plugin pulled all events from the table (they weren't batched). As a solution to this, I believe we need to insert any failed events into a new table "mdl_logstore_xapi_failed_log" and delete the events from the "mdl_logstore_xapi_log" table. These failed events can then be reported back to us via issues and then when fixed, the events can be moved back into the "mdl_logstore_xapi_log" table and deleted from the "mdl_logstore_xapi_failed_log" table. |
The changes I described in my previous comment are now in v.3.14.4. |
Closing due to inactivity. |
Description
The plugin is not sending statements to Learning Locker despite having the correct configuration for endpoint and client key/secret from Learning Locker using known-good credentials that work for other applications to send statements. We have tried setting it to send statement automatically and have tried to send statements when cron runs.
Reversing the changes made in the commit for Ensure correct language code format #197 allowed statements to send. This check is important but maybe it needs to be done a different way?
Version
Actual behaviour
The text was updated successfully, but these errors were encountered: