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

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.11
    • None
    • H5P, Navigation
    • 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

              Unassigned Unassigned
              sarjona Sara Arjona (@sarjona)
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona), Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: