trax-project / moodle-trax-logs

This plugin transforms Moodle logs into xAPI statements, and sends then to your LRS.
GNU General Public License v3.0
8 stars 7 forks source link

Statements fail to transmit to a LRS with MOODLE 4.3.3 , PHP 8.2.4 #21

Open batcheej opened 8 months ago

batcheej commented 8 months ago

MOODLE 4.3.3 , PHP 8.2.4

The plugin fails to transmit statements to a LRS. Installed the Trax Launch plugin and it correctly transmits xAPI transmits statements to a LRS.

This is the error from the MOODLE cron job:

Scheduled task failed: Trax Logs: push logs (logstore_trax\task\sync_task),Call to undefined method GuzzleHttp\Exception\ConnectException::getResponse() Backtrace:

sfraysse commented 8 months ago

Thanks for the feedback. Did you test the plugin with Moodle 4.2.x?

batcheej commented 8 months ago

I have not tested with Moodle 4.2 as support for it will end on 7 October 2024. I will test with Moodle 4.1 (security support ends on 8 December 2025), will report if there are any errors. Thank you. I am assuming the Trax Launch plugin does not utilize GuzzleHttp?

sfraysse commented 8 months ago

Regarding TRAX Launch, it depends of how you are using it (which launch protocol). When using a proxy-based protocol, Guzzle is used to send the statements. With other protocols, the content sends the statements directly to the LRS, so Guzzle does not have to be used by the plugin.