Hi everyone, I've been trying to track down an issue that occasionally happens with our SCORM packages in our Moodle site. They work fine for most people, but occasionally will start throwing LMSGetValue errors. The modules work otherwise fine.
I was able to get one of our learners to open the module with API Debugging turned on, and got the following log. The person did not have any issues until they had left the SCORM activity up for several hours. When they returned they got a timeout and had to log back in. When they did they started getting the errors. I noticed the cmi.core.session_time showing up as 216 hours, so I'm guessing that means their SCORM session is somehow stuck open?
SCORM API Activity Log
Wed, 19 Mar 2014 19:53:46 GMT: Moodle SCORM 1.2 API Loaded, Activity: Module Three - Normal Lab Values, SCO: I_A001
Wed, 19 Mar 2014 19:53:50 GMT: LMSSetValue("cmi.core.lesson_location", "a001_welcome.html") => 301
Wed, 19 Mar 2014 19:53:50 GMT: LMSGetErrorString("301", "Not initialized") => 0
Wed, 19 Mar 2014 19:54:21 GMT: LMSSetValue("cmi.core.lesson_location", "a001_table_of_contents.html") => 301
Wed, 19 Mar 2014 19:54:21 GMT: LMSGetErrorString("301", "Not initialized") => 0
Wed, 19 Mar 2014 19:54:27 GMT: LMSSetValue("cmi.core.lesson_location", "a001_1._introduction.html") => 301
Wed, 19 Mar 2014 19:54:27 GMT: LMSGetErrorString("301", "Not initialized") => 0
Wed, 19 Mar 2014 19:54:37 GMT: LMSSetValue("cmi.core.lesson_location", "a001_13._summary.html") => 301
Wed, 19 Mar 2014 19:54:37 GMT: LMSGetErrorString("301", "Not initialized") => 0
Wed, 19 Mar 2014 19:54:43 GMT: LMSSetValue("cmi.core.lesson_status", "completed") => 301
Wed, 19 Mar 2014 19:54:43 GMT: LMSGetErrorString("301", "Not initialized") => 0
Wed, 19 Mar 2014 19:54:46 GMT: LMSCommit("", "") => 0
Wed, 19 Mar 2014 19:54:46 GMT: LMSGetErrorString("301", "Not initialized") => 0
Wed, 19 Mar 2014 19:54:50 GMT: LMSSetValue("cmi.core.session_time", "216:51:01") => 301
Wed, 19 Mar 2014 19:54:50 GMT: LMSGetErrorString("301", "Not initialized") => 0
Here is the same module, this time logging in as me without any errors: