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

Digest emails of Forum do not work when upgrade to 2.3.3 and 2.3.4 from 2.3.2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.3, 2.3.4, 2.4.1
    • Fix Version/s: 2.3.5, 2.4.2
    • Component/s: Forum
    • Environment:
      CentOS 6.3
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      Test1:

      1. Install site and enrol users to some courses.
      2. Go to define roles page (Site administration ► Users ► Permissions ► Define roles)
      3. Edit Authenticated user on frontpage and make sure user has "mod/forum:allowforcesubscribe" capability

      Test2:

      1. Edit front page settings (Site administration -> Front page -> front page settings)
      2. Set "News items" for frontpage and frontpageloggedin
      3. Set defaultfrontpageroleid to "Authenticated user on frontpage"
      4. Go to front page and add a new topic in site news (check 'Mail now')
      5. Turn editing on and Edit this topic
      6. click "Subscription mode and click "Force subscription"
      7. Change digestmailtime appropriately, so cron can be run after this. (Site administration ► Plugins ► Activity modules ► Forum)
      8. Log in as a student and edit profile.
      9. Set Email digest type to Complete
      10. After digestmailtime elapse run admin/cron.php
      11. Make sure digest is posted to users, with "Email digest type" to Complete/subject.
      Show
      Test1: Install site and enrol users to some courses. Go to define roles page (Site administration ► Users ► Permissions ► Define roles) Edit Authenticated user on frontpage and make sure user has "mod/forum:allowforcesubscribe" capability Test2: Edit front page settings (Site administration -> Front page -> front page settings) Set "News items" for frontpage and frontpageloggedin Set defaultfrontpageroleid to "Authenticated user on frontpage" Go to front page and add a new topic in site news (check 'Mail now') Turn editing on and Edit this topic click "Subscription mode and click "Force subscription" Change digestmailtime appropriately, so cron can be run after this. (Site administration ► Plugins ► Activity modules ► Forum) Log in as a student and edit profile. Set Email digest type to Complete After digestmailtime elapse run admin/cron.php Make sure digest is posted to users, with "Email digest type" to Complete/subject.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:
      wip-mdl-37633

      Description

      Digest emails works on news forum in frontpage when I use 2.3.2.

      I upgrade it to 2.3.3,2.3.4 and 2.4.1, emails were not sent when I posted a new topic on the news forum in frontpage.
      (even executed /admin/cli/cron.php)

      But, digest emails in courses works also 2.3.3 and 2.3.4.

      Here is the steps of repoduce the problem.

      1.Install 2.3.3 and enroll users.

      2.upgrade to 2.3.4

      3.post a new topic to the news forum in frontpage.(check 'Mail now')
      (Subscription mode is forced, which the site administrator changed)

      4.execute admin/cron.php

      expected result:send a digest email to all users.

      currently resulet:NOT send mails.

      Here is the cron's log. '0 users' seems wrong.

      Processing module function assign_cron ...done.
      ... used 6 dbqueries
      ... used 0.037925958633423 seconds
      done.
      Processing module function chat_cron ...... used 5 dbqueries
      ... used 0.0039098262786865 seconds
      done.
      Processing module function forum_cron ...0 users were sent post 9, 'test'
      Starting digest processing...
      Cleaned old digest records
      ... used 14 dbqueries
      ... used 0.0086209774017334 seconds
      done.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    11/Mar/13