Moodle
  1. Moodle
  2. MDL-30765

Instructors unable to run Activity Reports

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.1.4, 2.2.1
    • Component/s: General
    • Labels:
    • Rank:
      33693

      Description

      Having upgraded to Moodle version 2.2 (Build: 20111205) last week, our instructors now encounter the following error as soon as they click the Course -> Reports -> Activity Report link:

      Debug info: Argument 2 passed to has_capability() must be an instance of context, null given, called in /data/web/moodle/report/outline/index.php on line 45 and defined
      Stack trace:
      line 365 of /lib/setuplib.php: coding_exception thrown
      line 348 of /lib/accesslib.php: call to default_error_handler()
      line 45 of /report/outline/index.php: call to has_capability()

      This seems to affect all instructors and all courses.

        Issue Links

          Activity

          Hide
          Michael de Raadt added a comment -

          I think this issue is being caused by database corruptions. Previously these corruptions were not being noticed, but with recent changes they are coming to light.

          Have a look at the linked issue. I suspect it is related and will help you track down your problem.

          Show
          Michael de Raadt added a comment - I think this issue is being caused by database corruptions. Previously these corruptions were not being noticed, but with recent changes they are coming to light. Have a look at the linked issue. I suspect it is related and will help you track down your problem.
          Hide
          Bill Stone added a comment -

          I created and ran rebuildcontextpaths.php for 2.0 per directions, but this did not resolve the issue. I continue to see exactly the same error message (see above) each time I try to access Course -> Reports -> Activity Report.

          Any further thoughts or developments?

          Thanks.

          Show
          Bill Stone added a comment - I created and ran rebuildcontextpaths.php for 2.0 per directions, but this did not resolve the issue. I continue to see exactly the same error message (see above) each time I try to access Course -> Reports -> Activity Report. Any further thoughts or developments? Thanks.
          Hide
          Petr Škoda added a comment -

          Thanks for the report!

          Show
          Petr Škoda added a comment - Thanks for the report!
          Hide
          Sam Hemelryk added a comment -

          Thanks Petr - this has been integrated now.

          Show
          Sam Hemelryk added a comment - Thanks Petr - this has been integrated now.
          Hide
          Ankit Agarwal added a comment -

          working as expected.
          No error msgs were shown
          Thanks

          Show
          Ankit Agarwal added a comment - working as expected. No error msgs were shown Thanks
          Hide
          Eloy Lafuente (stronk7) added a comment -

          Whoever decided one week was worth 14 days had really one bad idea. Anyway, the nightmare is over, so thanks for your, once again, amazing contributions. Many, many thanks!

          Now... disconnect, relax and enjoy the next days, yay!

          Closing...ciao

          Show
          Eloy Lafuente (stronk7) added a comment - Whoever decided one week was worth 14 days had really one bad idea. Anyway, the nightmare is over, so thanks for your, once again, amazing contributions. Many, many thanks! Now... disconnect, relax and enjoy the next days, yay! Closing...ciao

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: