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

Upgrade error for sites without category id 1

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 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
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

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