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

Router broken for extensions in the ACP

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • 3.2.0-a1
    • 3.2.0-dev
    • Extensions, Other
    • None

      The ACP seems broken with extensions... phpBB's router keeps trying to load non-existent config files.

      Fatal error: Uncaught exception 'InvalidArgumentException' with message 'The file "./../config/test/routing/environment.yml" does not exist (in: /home/travis/build/phpBB3/phpBB)

      I experienced this with unit-testing for Pages on a 3.2 install
      https://travis-ci.org/phpbb-extensions/pages/jobs/50852118

      I also experienced in person when installing the Board Announcements extension on a 3.2 install and tried to access it's ACP page:

      PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The file "./../config/development/routing/environment.yml" does not exist (in: /rhea/phpBB).' in /rhea/phpBB/vendor/symfony/config/Symfony/Component/Config/FileLocator.php:68

      Additionally experienced it in person with Pages and Board Rules.

      Here's a full stack trace:

      PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The file "./../config/development/routing/environment.yml" does not exist (in: /rhea/phpBB).' in /rhea/phpBB/vendor/symfony/config/Symfony/Component/Config/FileLocator.php:68
      Stack trace:
      #0 /rhea/phpBB/vendor/symfony/routing/Symfony/Component/Routing/Loader/YamlFileLoader.php(49): Symfony\Component\Config\FileLocator->locate('./../config/dev...')
      #1 /rhea/phpBB/phpbb/routing/router.php(152): Symfony\Component\Routing\Loader\YamlFileLoader->load('./../config/dev...')
      #2 /rhea/phpBB/phpbb/routing/router.php(169): phpbb\routing\router->find('./../')
      #3 /rhea/phpBB/phpbb/routing/router.php(296): phpbb\routing\router->get_routes()
      #4 /rhea/phpBB/phpbb/routing/router.php(283): phpbb\routing\router->create_dumped_url_generator()
      #5 /rhea/phpBB/vendor/symfony/config/Symfony/Component/Config/FileLocator.php on line 68
      

            nicofuma nicofuma
            VSE Matt Friedman [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: