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

Upgrade error for sites without category id 1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 4.0
    • 4.0
    • Course

    Description

      In core upgrade step 2021091100.02 from MDL-72115, the code assumes that the site will have a course ID of 1. While that will be the case for fresh installs, it is deletable. So on sites that have deleted it, they will get this error:

      Notice: Trying to get property 'descriptionformat' of non-object in /var/www/other/major/lib/db/upgrade.php on line 2767
      

      Attachments

        Issue Links

          Activity

            People

              emerrill Eric Merrill
              emerrill Eric Merrill
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Andrew Lyons Andrew Lyons
              Gladys Basiana Gladys Basiana
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 45 minutes
                  45m

                  Clockify

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