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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.6.5
    • Fix Version/s: 2.6.6
    • Component/s: Web Services
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Nov/14