Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-68996

Behat webserver logs: Course or activity not accessible (autosave-ajax)

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.8.3, 3.9, 3.11.4, 4.0
    • None
    • None
    • MOODLE_311_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE

    Description

      Originally from MDL-68459 (now split from it), we need to check (and fix if needed) why this is being reported in logs:

      Problem C: Course or activity not accessible (maybe it's ok). It happens 3 times.

      It happens with scenarios: "Do not restore a draft if files have been modified", "Do not restore a draft if text has been modified" and "Content viewed event".

      67235:[Sat Apr 18 07:35:51.829527 2020] [php7:notice] [pid 10177] [client 172.29.0.10:38482] Default exception handler: Course or activity not accessible. Debug: You are not logged in
      Error code: requireloginerror

      The first 2 cases are with the autosave ajax script being not logged in on course edit page. The 3rd with report loglive ajax returning the same. Maybe a pause is needed or something to allow those ajax scripts to know they are logged in.

      Originally from MDL-72815 (now split from it), the very same error is now happening in different scenario, not in the original ones, it seems:

      Problem D: Default exception handler: Course or activity not accessible. It happens 2 times

      Maybe caused by previous problem (same request)!
      Happens in scenario: (not always!) --tags '@mod_data' --name 'View automatic completion items as a failing student'

      290220:[Sat Oct 30 05:51:38.025686 2021] [php:notice] [pid 1878] [client 172.29.0.5:36092] Default exception handler: Course or activity not accessible. Debug: You are not logged in
      Error code: requireloginerror

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stronk7 Eloy Lafuente (stronk7)
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: