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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.0
    • 2.0
    • Messages
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      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

            andyjdavis Andrew Davis
            mudrd8mz David Mudrák (@mudrd8mz)
            Nobody Nobody
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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