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

Blog edit access by URL not handled correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.5.5, 5.0.1
    • 4.5.2
    • Blog

      When trying to acces by URL to /blog/edit.php?action=add with blogs disabled a not handled error appears:

      Exception - Call to a member function make_active() on bool

      Stack trace:

      • line 72 of /blog/edit.php: Error thrown

      How to reproduce:

      • Disable blogs by unchecking "enableblogs" box at Site settings
      • Acces by url to /blog/edit.php?action=add

      How to solve:

      • Handle the blogdisable exception (line 77 of /blog/edit.php) before the user context is set (line 65 of /blog/edit.php)

            pholden Paul Holden
            miquel.gibert.garcia Miquel Gibert García
            Andrew Gosali Andrew Gosali
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 56 minutes
                56m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.