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

Missing $PAGE->set_url() on viewing printer friendly page in wiki

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5.2
    • Component/s: Themes, Wiki (2.x)
    • Labels:
    • Testing Instructions:
      Hide
      1. Set site theme to 'clean'
      2. In a course, create/access the wiki activity.
      3. Select the view tab.
      4. Select the 'Printer-friendly version' link
      5. Popup page should be displaying the content of the wiki page.

      Make sure there's no error on the page.

      Show
      Set site theme to 'clean' In a course, create/access the wiki activity. Select the view tab. Select the 'Printer-friendly version' link Popup page should be displaying the content of the wiki page. Make sure there's no error on the page.
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      The following error appears on printer friendly page.
      This page did not call $PAGE->set_url(...). Using http://rosie.moodle.local/stable/master/mod/wiki/prettyview.php?pageid=1
      line 558 of /lib/pagelib.php: call to debugging()
      line 734 of /lib/pagelib.php: call to moodle_page->magic_get_url()
      line 496 of /mod/wiki/lib.php: call to moodle_page->__get()
      line 2036 of /lib/navigationlib.php: call to wiki_extend_navigation()
      line 1205 of /lib/navigationlib.php: call to global_navigation->load_activity()
      line 225 of /blocks/navigation/block_navigation.php: call to global_navigation->initialise()
      line 181 of /blocks/navigation/block_navigation.php: call to block_navigation->get_navigation()
      line 292 of /blocks/moodleblock.class.php: call to block_navigation->get_content()
      line 238 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 951 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 1003 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 353 of /lib/blocklib.php: call to block_manager->ensure_content_created()
      line 3068 of /lib/outputrenderers.php: call to block_manager->region_has_content()
      line 3104 of /lib/outputrenderers.php: call to core_renderer->body_css_classes()
      line 26 of /theme/clean/layout/embedded.php: call to core_renderer->body_attributes()
      line 847 of /lib/outputrenderers.php: call to include()
      line 777 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line 2175 of /mod/wiki/pagelib.php: call to core_renderer->header()
      line 64 of /mod/wiki/prettyview.php: call to page_wiki_prettyview->print_header()

        Attachments

          Activity

            People

            • Assignee:
              rwijaya Rossiani Wijaya
              Reporter:
              rwijaya Rossiani Wijaya
              Peer reviewer:
              Russell Smith
              Integrator:
              Damyon Wiese
              Tester:
              Mark Nelson
              Participants:
              Component watchers:
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón, Amaia Anabitarte, Bas Brands, Carlos Escobedo, 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:
                9/Sep/13