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

Activity is hidden Error code: requireloginerror #51

Open
JeremyNichvalodoff opened this issue Jun 20, 2023 · 0 comments
Open

Activity is hidden Error code: requireloginerror #51

JeremyNichvalodoff opened this issue Jun 20, 2023 · 0 comments

Comments

@JeremyNichvalodoff
Copy link

Description: Using activity restrictions to have the user complete the first video before being able to start the second.

Issue: For fluid use of the course all the videos are set as labels so the learners do not need to click into the video. When you setup completion criteria along with activity restrictions to only allow access to play next activity if the previous video is watched an error occurs on course access.

Steps to Reproduce:

  1. Add video to course and set the view to label.
  2. Under completion criteria set it to watch 100% of the video.
  3. Add second video to course and set the view to label.
  4. On the second video setup activity restriction to must be complete and the activity is video one.
  5. Have a student user try and access the course.

Expected: User would need to watch the first video before the second video could be played.

Actual: Student gets error and can watch the second video without needing to watch the first.

Activity is hidden
Error code: requireloginerror

  • line 3076 of /lib/moodlelib.php: require_login_exception thrown
  • line 515 of /lib/externallib.php: call to require_login()
  • line 514 of /mod/videotime/plugin/pro/classes/external.php: call to external_api::validate_context()
  • line 261 of /lib/externallib.php: call to videotimeplugin_pro\external::get_watch_percent()
  • line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant