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

With navigation block set to be displayed on any page, H5P activities show "Trying to get property 'id' of non-object" error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.11
    • Fix Version/s: None
    • Component/s: H5P, Navigation
    • Labels:
    • Affected Branches:
      MOODLE_311_STABLE

      Description

      Steps to reproduce:

      1. Login as admin.
      2. Create a course.
      3. Add an H5P activity.
      4. Add the "Navigation" block to the main course page.
      5. Configure the "Navigation" block and set "Display on page types" to "Any page".
      6. Access to the H5P activity you created.

       

      Expected behaviour

      The H5P player is displayed without any error.

      Current behaviour

      Above the H5P player, the following error is displayed: "Notice: Trying to get property 'id' of non-object in moodle/lib/navigationlib.php on line 1407"

       

      It happens with any of the H5P contents displayed in the course (not just the H5P activity). And I've been able to reproduce it in Moodle 3.11 onwards (in Moodle 3.10 is working as expected).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              sarjona Sara Arjona (@sarjona)
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated: