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

WS_SERVER constant is checked in lib/pagelib.php for 2.6, this constant was created for 2.7

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.6.6
    • 2.6.5
    • Web Services
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • Hide
      1. Download the attached test.php
      2. Place it in your dirroot
      3. Ensure that your Moodle has debugging enabled and display debug messages
      4. Call the script in a browser http//yourmoodle.xxx/test.php
      5. You should see debugging information

        Coding problem: unsupported modification of PAGE->context from 30 to 10
        line 934 of /lib/pagelib.php: call to debugging()
        line 13 of /test.php: call to moodle_page->set_context()
        

      6. Copy the file and call the script in a 2.7 or 2.8 installation, you should not see any debugging information
      Show
      Download the attached test.php Place it in your dirroot Ensure that your Moodle has debugging enabled and display debug messages Call the script in a browser http//yourmoodle.xxx/test.php You should see debugging information Coding problem: unsupported modification of PAGE->context from 30 to 10 line 934 of /lib/pagelib.php: call to debugging() line 13 of /test.php: call to moodle_page->set_context() Copy the file and call the script in a 2.7 or 2.8 installation, you should not see any debugging information

      This is a regression caused by MDL-41746, in some way changes that were only for 2.7 and master were integrated in 2.6 causing to check a constant that doesn't exists

            jleyva Juan Leyva
            jleyva Juan Leyva
            Ankit Agarwal Ankit Agarwal
            Damyon Wiese Damyon Wiese
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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