Skip to content
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

Cannot read property 'charAt' of undefined #33

Open
badal1976 opened this issue Jun 15, 2020 · 1 comment
Open

Cannot read property 'charAt' of undefined #33

badal1976 opened this issue Jun 15, 2020 · 1 comment

Comments

@badal1976
Copy link

After upload the attached scrom content, fail to open the content. Loader is continuously running and behind the page throwing javascript error as mentioned below.

Scrom file Attachment:

Draft 5s training Module SCORM 1.2.zip

Error Details:

Uncaught TypeError: Cannot read property 'charAt' of undefined
at cp.QuizState.readNumber (eval at e (CPXHRLoader.js:37), :1374:423)
at cp.QuizState.readString (eval at e (CPXHRLoader.js:37), :1376:34)
at cp.PlaybackController.restoreObjectsFromState (eval at e (CPXHRLoader.js:37), :1455:20)
at Function.cp.resumeValuesFromDataChunk (eval at e (CPXHRLoader.js:37), :1369:460)
at cp.PlaybackController.RestoreQuizState (eval at e (CPXHRLoader.js:37), :1496:35)
at Function.cp.NewQuizLibraryInit (eval at e (CPXHRLoader.js:37), :982:3)
at Function.cp.CPPreInit (eval at e (CPXHRLoader.js:37), :990:246)
at Function.cp.ContinueCPInit (eval at e (CPXHRLoader.js:37), :1936:33)
at LoadContent (eval at e (CPXHRLoader.js:37), :1368:439)
at InitializeExecuted (eval at e (CPXHRLoader.js:37), :1879:36)

@xob
Copy link
Collaborator

xob commented Jun 15, 2020

Did you turn on debugging? To turn on debugging, execute window.API.apiLogLevel = 1; before loading the course.

I would help more, but CPXHRLoader.js is a minified file that is unrelated to Simplify SCORM, and is impossible to debug. Seeing what the course is doing before the error would help understand what is happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants