Opigno with LearningLocker - fixing "The following statement could not be sent "

anders
Forums
Hi. I am trying to get Opigno to integrate to Learning Locker LRS. LearningLocker is up and running, correctly configured on a VM accessible via port 80. I run Opigno on my own laptop with the latest version installed using Composer. Version: Opigno 8.x-2.7 (using SQLite) uname: Linux kennedy.lan 5.2.9-200.fc30.x86_64 #1 SMP Fri Aug 16 21:37:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux I start Opigno with the following (using SQLite): cd web && php --server localhost:9090 --docroot . -c php.ini -e PHP 7.3.8 Development Server started at Sat Sep 14 17:32:15 2019 Listening on http://localhost:9090 Document root is /home/aj/lms/web Press Ctrl-C to quit. I have then deployed a Tin Can course module (developed using Articulate Storyline), which runs well on another LMS (LearnUpon). I am trying to migrate from LearnUpon to Opigno (and would even pay for the Cloud / supported version if I could make it work with LearningLocker for statistics). After running through one of the Tin Can courses, nothing appears in LearningLocker. The store is empty. I go to Admin >> Reports >> Recent log messages in Opigno to see any errors. I get the following cryptic error: Type Opigno Tincan API Date Saturday, September 14, 2019 - 17:33 User anders Location http://localhost:9090/group/7/module/3/answer/7 Referrer http://localhost:9090/group/7/module/3/answer/7 Message The following statement could not be sent : Array ( [id] => 294b907c-708e-4ea5-8324-2232a952f85d [actor] => Array ( [objectType] => Agent [name] => anders [mbox_sha1sum] => 5c3cd0e867ed1058d8655580c1ee6f8d80114a37 ) [verb] => Array ( [id] => http://adlnet.gov/expapi/verbs/answered [display] => Array ( [en-US] => answered ) ) [result] => Array ( [score] => Array ( [scaled] => 0 [raw] => 0 [min] => 0 [max] => 10 ) [completion] => 1 ) [context] => Array ( [contextActivities] => Array ( [parent] => Array ( [0] => Array ( [objectType] => Activity [id] => http://localhost:9090/group/3 [definition] => Array ( [type] => http://adlnet.gov/expapi/activities/module ) ) ) [grouping] => Array ( [0] => Array ( [objectType] => Activity [id] => http://localhost:9090/group/7 [definition] => Array ( [type] => http://activitystrea.ms/schema/1.0/group ) ) ) ) [language] => en ) [timestamp] => 2019-09-14T07:33:00.004+00:00 [object] => Array ( [objectType] => Activity [id] => http://localhost:9090/activity/7 [definition] => Array ( [type] => http://adlnet.gov/expapi/activities/question [name] => Array ( [en-US] => Part 3 ) [interactionType] => other ) ) ) Severity Error Hostname ::1 Operations Can anyone please help? Anders
anders

I forgot to add:

I forgot to add: LearningLocker has been configured in Home >> Admin >> TinCan LRS, although there is no way of ascertaining that it is authenticating properly.
anders

I fixed this. Turns out I had

I fixed this. Turns out I had whitespace at the beginning of the LRS URL field, e.g. ' https://' instead of 'https://'. Opigno could really use some field validation to prevent errors like this!
axel

Thanks for your feedback.

Thanks for your feedback.

We will add a check in the upcoming releases of Opigno to avoid that kind of issue.