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

Guest notices: Undefined property: stdClass::$maildigest in [..]/mod/forum/lib.php

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 3.0.6, 3.1.2
    • 2.7.1, 2.8.2, 2.9, 3.0.5
    • Forum
    • MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MDL-46654-master
    • Hide
      1. Navigate to Site home
      2. Create four forums - one in each subscription mode
      3. Enable developer mode
      4. Log out
      5. Navigate to http://path/to/your/instance/mod/forum/index.php?id=1
        1. Confirm that no errors were shown
        2. Confirm that you can see all of the forums
        3. Confirm that there are no digest options available to you
      6. Log in as a student
      7. Navigate to http://path/to/your/instance/mod/forum/index.php?id=1
        1. Confirm that no errors were shown
        2. Confirm that you can see all of the forums
        3. Confirm that there are digest options available for all but the disabled forum
      8. Toggle the subscription states for each forum and check that they work
      9. Try the subscribe all, and unsubscribe all links and check that they work
      10. Try changing your digest type - check that it updates
      11. Log in as admin
      12. Repeat the above, but note that you will be able to subscribe and change options for the disabled forum too.
      Show
      Navigate to Site home Create four forums - one in each subscription mode Enable developer mode Log out Navigate to http://path/to/your/instance/mod/forum/index.php?id=1 Confirm that no errors were shown Confirm that you can see all of the forums Confirm that there are no digest options available to you Log in as a student Navigate to http://path/to/your/instance/mod/forum/index.php?id=1 Confirm that no errors were shown Confirm that you can see all of the forums Confirm that there are digest options available for all but the disabled forum Toggle the subscription states for each forum and check that they work Try the subscribe all, and unsubscribe all links and check that they work Try changing your digest type - check that it updates Log in as admin Repeat the above, but note that you will be able to subscribe and change options for the disabled forum too.

    Description

      Hello, I am setting a Moodle instance that requires global platform forums.

      When I go to the forum index page (/mod/forum/index.php?id=1) as a guest I receive the following notices:

      Notice: Undefined property: stdClass::$maildigest in /srv/datadisk/www/moodle2/mod/forum/lib.php on line 8673
      Notice: Undefined index: in /srv/datadisk/www/moodle2/mod/forum/lib.php on line 8673

      I don't get the notices when I access the page as a logged-in user.

      I guess it's nothing important, just I can't get the notification options if I am not logged in, but still this seems a bug as there should be a check in the code based on the type of user rather than throwing the notice..

      Moodle 2.7.1+ (Build: 20140731)

      Attachments

        Activity

          People

            dobedobedoh Andrew Lyons
            sylvaticus Antonello Lobianco
            Jun Pataleta Jun Pataleta
            David Monllaó David Monllaó
            Simey Lameze Simey Lameze
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

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