Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15033

E-mail notifications failing due to path error when looking for a TPL

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Cannot Reproduce
    • 3.2.0
    • None
    • Notification System
    • None

    Description

      Will update this with a full stack trace later.
      What happens is the following:

      With e-mail notifications enabled, on for example posting a new topic. messenger will be called using:

      ./web/phpbb/notification/method/email.php:		return $this->notify_using_messenger(NOTIFY_EMAIL);
      

      As you can see the installation is in ./web/
      the email.php will call:

      ./web/phpbb/notification/method/messenger_base.php:	protected function notify_using_messenger($notify_method, $template_dir_prefix = ''):
      

      Then paths seem to be set, yet it's assumed ./ is the base path on the filesystem

      messenger->set_template_paths(array(array('name' => 'nl_email', 'ext_path' => 'language/nl/email'), array('name' => 'en_email', 'ext_path' => 'language/en/email')), array('./language/nl/email', './language/en/email')) in functions_messenger.php line 281
      

      thus

      Somewhere down in phpbb/twig/ Filesystem.php, realpath() will return false and ttwig will break down with a "Template not found "" "

      "" at Twig_Loader_Filesystem->addPath(false, '__main__') in loader.php line 110
      at loader->addPath('./language/en/email', '__main__') in Filesystem.php line 64
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Milan0 Milan0 [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: