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

Coding problem: $PAGE->context was not set when using the comments block on the dashboard

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.0.5, 3.1.1
    • Component/s: Comments
    • Labels:

      Description

      Notice: Trying to get property of non-object in /Applications/MAMP/htdocs/moodle/comment/comment_post.php on line 51
      Coding problem: $PAGE->context was not set. You may have forgotten to call require_login() or $PAGE->set_context(). The page may not display correctly as a result

      line 458 of /lib/pagelib.php: call to debugging()
      line 773 of /lib/pagelib.php: call to moodle_page->magic_get_context()
      line 1242 of /lib/weblib.php: call to moodle_page->__get()
      line 709 of /comment/lib.php: call to format_text()
      line 59 of /comment/comment_post.php: call to comment->add()

      Skip to main content
      This page should automatically redirect. If nothing is happening please use the continue link below.
      (Continue)

      Error output, so disabling automatic redirect.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              sbourget Stephen Bourget
              Peer reviewer:
              cameron1729
              Integrator:
              David Monllaó
              Tester:
              Simey Lameze
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jul/16