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

PHP Notice: Undefined property: stdClass::$requestcategoryselection in /var/www/html/lib/db/upgrade.php on line 3617

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8
    • Fix Version/s: 3.8
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide

      Note: MDK would be useful for this test.

      1. If you have a current installation, uninstall it.

        mdk uninstall -y

      2. Install current MOODLE_37_STABLE (terminal / mdk)

        git checkout MOODLE_37_STABLE
        mdk install

      3. Delete the "requestcategoryselection" record from the config table (if it's there, it may be not). SQL:

        DELETE FROM mdl_config WHERE name = 'requestcategoryselection'

      4. Upgrade to integration.git master (terminal / mdk)

        git checkout master
        php admin/cli/upgrade.php --non-interactive --allow-unstable

      5. Verify that the upgrade runs without any PHP notice.
      6. Verify that the "lockrequestcategory" admin setting is enabled after upgrade.
      Show
      Note: MDK would be useful for this test. If you have a current installation, uninstall it. mdk uninstall -y Install current MOODLE_37_STABLE (terminal / mdk) git checkout MOODLE_37_STABLE mdk install Delete the "requestcategoryselection" record from the config table (if it's there, it may be not). SQL: DELETE FROM mdl_config WHERE name = 'requestcategoryselection' Upgrade to integration.git master (terminal / mdk) git checkout master php admin/cli/upgrade.php --non-interactive --allow-unstable Verify that the upgrade runs without any PHP notice. Verify that the "lockrequestcategory" admin setting is enabled after upgrade.
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:

      Description

      I've seen this PHP notice while upgrading moodle:

      PHP Notice:  Undefined property: stdClass::$requestcategoryselection in /var/www/html/lib/db/upgrade.php on line 3617 

      It might be related to MDL-66740

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              dmonllao David Monllaó
              Peer reviewer:
              Peter Dias
              Integrator:
              Jun Pataleta
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/19

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 6 minutes
                  1h 6m