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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1
    • 3.0.5, 3.1.1
    • Comments

    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

              marina Marina Glancy
              sbourget Stephen Bourget
              cameron1729 cameron1729
              David Monllaó David Monllaó
              Simey Lameze Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jul/16