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

Upgrade error for sites without category id 1

XMLWordPrintable

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

      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
      

            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

              Created:
              Updated:
              Resolved:

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

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