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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.8
    • 3.8
    • Course
    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • 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.

      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

        1. screenshot-1.png
          333 kB
          Janelle Barcega

            stronk7 Eloy Lafuente (stronk7)
            dmonllao David Monllaó
            Peter Dias Peter Dias
            Jun Pataleta Jun Pataleta
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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