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

sendpassword fatal error when language pack is missing

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 3.2.0
    • None
    • Language pack
    • PHP 7.0.15-0ubuntu0.16.04.4, Apache/2.4.18 (Ubuntu)

    Description

      Hi,

      after migrating to 3.2 we did not install german language packs. However, some users had their setting still set to german.

      When entering username and email on ucp.php?mode=sendpassword and clicking on Submit, I get a blank page and found this in the server logs:

      PHP Fatal error:  Uncaught Twig_Error_Loader: The "" directory does not exist.
      in /../vendor/twig/twig/lib/Twig/Loader/Filesystem.php:94
      Stack trace:
      #0 /../phpbb/template/twig/loader.php(110): Twig_Loader_Filesystem->addPath(false, '__main__')
      #1 /../vendor/twig/twig/lib/Twig/Loader/Filesystem.php(76): phpbb\\template\\twig\\loader->addPath('./language/de/e...', '__main__')
      #2 /../phpbb/template/twig/twig.php(236): Twig_Loader_Filesystem->setPaths(Array)
      #3 /../includes/functions_messenger.php(697): phpbb\\template\\twig\\twig->set_custom_style(Array, Array)
      #4 /../includes/functions_messenger.php(281): messenger->set_template_paths(Array, Array)
      #5 /../includes/ucp/ucp_remind.php(128): messenger->template('user_activate_p...', 'de')    
      #6 /../includes/functions_module.php(676): ucp_remind->main('remind', NULL)
      #7 /../vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 94
      

      I was able to solve it by installing the german language pack.

      I guess, by default the english translations should have been used in case some language pack is missing. However, for emails this seems to be problematic as it does rely on the email-files to exist.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: