Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15998

Jabber notification method is available while template file isn't present

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.2.5
    • None

      The is_available() function in Jabber's notification method class is only checking if the template file for sending the notification via email in language/en/email is present. However, the template files for Jabber notifications are located in language/en/email/short.

      In short, this is what currently happens:

      if ($email_template_exists)
      {
          send_jabber_notification();
      }
      

      If an extension supports sending its notifications via email but doesn't provide a template file for Jabber, phpBB still tries to send a Jabber notification and fails with a PHP Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'Unable to find template' , see https://www.phpbb.com/community/viewtopic.php?f=461&t=2505726

            Unassigned Unassigned
            kasimi kasimi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: