• Resolved mbr55aa

    (@mbr55aa)


    The user cannot resume the course. The error occurs if the user closes the course while it is in progress and tries to resume after a while.
    When the user tries to resume, nothing happens, a blank white background is shown.
    Changing browser and device doesn’t help.
    This error does not always occur. At the moment, 4 of our users have encountered it.

    We running WordPress 5.8.1 with CLUEVO LMS 1.7.1
    I’m not sure what this is related to, but errors started to appear after updating the plugin to the latest version, which version was before that I don’t remember.

    Here are the parameters related to this error for one of the users:

    id	module_id	user_id	attempt_id	parameter	value	user_deleted	date_user_deleted	date_added	date_modified
    1429769	18	804	0	cmi.learner_name	User Name	0		2021-10-02 11:36:08	2021-10-02 11:36:08
    1429770	18	804	0	cmi.core.student_name	User Name	0		2021-10-02 11:36:08	2021-10-02 11:36:08
    1429771	18	804	0	cmi.core.student_id	804	0		2021-10-02 11:36:08	2021-10-02 11:36:08
    1429772	18	804	0	cmi.learner_id	804	0		2021-10-02 11:36:08	2021-10-02 11:36:08
    1429773	18	804	0	cmi.core.lesson_mode	normal	0		2021-10-02 11:36:08	2021-10-02 11:36:08
    1429774	18	804	0	cmi.core.lesson_status	incomplete	0		2021-10-02 11:36:08	2021-10-02 11:36:08
    1429775	18	804	0	cmi.completion_status	not attempted	0		2021-10-02 11:36:08	2021-10-02 11:36:08
    1429776	18	804	0	cmi.success_status	unknown	0		2021-10-02 11:36:08	2021-10-02 11:36:08
    1429777	18	804	0	USER_EMAIL	user@email	0		2021-10-02 11:36:08	2021-10-02 11:36:08
    1429778	18	804	0	cmi.core.score.raw	0	0		2021-10-02 11:36:08	2021-10-02 11:36:08
    1430503	18	804	0	cmi.suspend_data		0		2021-10-02 18:58:48	2021-10-02 18:58:48
    1430504	18	804	0	cmi.core.exit	suspend	0		2021-10-02 18:58:48	2021-10-02 18:58:48
Viewing 2 replies - 1 through 2 (of 2 total)
  • AdrianFx

    (@adrianfx)

    I’ve notice a JavaScript error that blocks execution. This happens on click on resume button when inside an iFrame. I don’t know if it’s limited to this scenario only.

    It starts from here: cluevo.js:901 – initIframe(itemId, response.iframe_index);
    Crashes here: cluevo.js:433 – next(false);

    The third parameter is not passed and therefore next is undefined.

    Suggested edit:

    
    function (success, module) {
      <strong>if (typeof next !== 'function') {</strong>
        if (success) {
          next(true, module);
        } else {
          next(false);
        }
      <strong>}</strong>
    }
    

    Bold indicates addition to existing code.

    This worked form me, by skipping the problem, but I have no idea what it should be doing or if it’s a correct approach.

    Plugin Author CLUEVO

    (@cluevo)

    Hey Adrian,

    thanks for bringing this to our attention. We’re currently preparing the next update release and we’ll most likely have this fixed with the upcoming release.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘User cannot resume suspended course’ is closed to new replies.