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

Notice when in site home/course page

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.11
    • 3.11
    • Course
    • MOODLE_311_STABLE
    • MOODLE_311_STABLE
    • MDL-71486-311
    • MDL-71486-master
    • Hide
      1. Create a course.
      2. Add new Page resource to Section 1 and set the completion tracking to Manual.
      3. Add a new section called Section 2 to the course.
      4. Set the Access restrictions to Student must match the Activity completion (created Page resource) must be marked complete.
      5. Go to admin page -> Purge the cache.
      6. Go to the created course.
      7. Verify that there is no error as below will be shown:

      Notice: Undefined property: section_info::$available in
      

      Show
      Create a course. Add new Page resource to Section 1 and set the completion tracking to Manual. Add a new section called Section 2 to the course. Set the Access restrictions to Student must match the Activity completion (created Page resource) must be marked complete. Go to admin page -> Purge the cache. Go to the created course. Verify that there is no error as below will be shown: Notice: Undefined property: section_info::$available in

    Description

      A notice is being displayed after logging in/purging caches in site home or in a course homepage.

      Notice: Undefined property: section_info::$available in /Users/vmdef/Sites/moodles/integration_master/moodle/lib/modinfolib.php on line 1931
      

      I noticed this while reviewing MDL-71410 but couldn't replicate it in other instances so I initially thought it's something in my instance. But vmdef also reported seeing this so it must be legit and need to be investigated.

      Attachments

        Issue Links

          Activity

            People

              huongn@moodle.com Huong Nguyen
              jpataleta Jun Pataleta
              Shamim Rezaie Shamim Rezaie
              Jun Pataleta Jun Pataleta
              Anna Carissa Sadia Anna Carissa Sadia
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/May/21

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours
                  5h