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

message_send() tries to send message via Jabber even if no Jabber host is configured

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Messages
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Reproduce:
      =========
      1. do not set any Jabber server in Site administration - leave the fields empty
      2. set your personal Messaging setting so that Forum posts notifications are set to jabber (both online and offline)
      3. subscribe to a forum
      4. submit a new post and tick "email now"
      5. run cronjob

      Expected behaviour:
      ================
      Because no Jabber host is configured, the whole processor is just skipped. Eventually, all Jabber related settings should be hiddent from users, too.

      What actually happens:
      ==================
      Jabber processor dies on connection timeout

      PHP Notice:  Could not connect before timeout.* line 73 of /message/output/jabber/message_output_jabber.php: call to debugging()
      * line 149 of /lib/messagelib.php: call to message_output_jabber->send_message()
      * line 643 of /mod/forum/lib.php: call to message_send()
      * line 87 of /lib/cronlib.php: call to forum_cron()
      * line 61 of /admin/cli/cron.php: call to cron_run()
      * line 1 of Command line code: call to require_once()
       in /html/lib/weblib.php on line 2855
      PHP Notice:  Error calling message processor jabber* line 150 of /lib/messagelib.php: call to debugging()
      * line 643 of /mod/forum/lib.php: call to message_send()
      * line 87 of /lib/cronlib.php: call to forum_cron()
      * line 61 of /admin/cli/cron.php: call to cron_run()
      * line 1 of Command line code: call to require_once()
       in /html/lib/weblib.php on line 2855

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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