sonata-project / SonataPageBundle

This bundle provides a Site and Page management through container and block services
https://docs.sonata-project.org/projects/SonataPageBundle
MIT License
219 stars 209 forks source link

Route 'page_slug' not found with FOSUserBundle #990

Closed franckentien closed 4 years ago

franckentien commented 6 years ago

Environment

Sonata packages

sonata-project/admin-bundle              3.35.2 = 3.35.2 The missing Symfony Admin Generator
sonata-project/block-bundle              3.12.1 = 3.12.1 Symfony SonataBlockBundle
sonata-project/cache                     1.1.1  ~ 2.0.1  Cache library
sonata-project/cache-bundle              2.4.2  = 2.4.2  This bundle provides caching services
sonata-project/classification-bundle     3.7.0  = 3.7.0  Symfony SonataClassificationBundle
sonata-project/core-bundle               3.9.1  = 3.9.1  Symfony SonataCoreBundle
sonata-project/datagrid-bundle           2.3.1  = 2.3.1  Symfony SonataDatagridBundle
sonata-project/doctrine-extensions       1.0.2  = 1.0.2  Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 3.6.1  = 3.6.1  Symfony Sonata / Integrate Doctrine ORM into the SonataAdm...
sonata-project/easy-extends-bundle       2.5.0  = 2.5.0  Symfony SonataEasyExtendsBundle
sonata-project/exporter                  1.9.0  = 1.9.0  Lightweight Exporter library
sonata-project/formatter-bundle          3.5.0  = 3.5.0  Symfony SonataFormatterBundle
sonata-project/intl-bundle               2.4.1  = 2.4.1  Symfony SonataIntlBundle
sonata-project/media-bundle              3.13.1 = 3.13.1 Symfony SonataMediaBundle
sonata-project/news-bundle               3.4.0  = 3.4.0  Symfony SonataNewsBundle
sonata-project/notification-bundle       3.5.1  = 3.5.1  Symfony SonataNotificationBundle
sonata-project/page-bundle               3.8.0  = 3.8.0  This bundle provides a Site and Page management through co...
sonata-project/seo-bundle                2.5.1  = 2.5.1  Symfony SonataSeoBundle
sonata-project/user-bundle               4.2.2  = 4.2.2  Symfony SonataUserBundle

Symfony packages

symfony/monolog-bundle     v3.3.0  = v3.3.0 Symfony MonologBundle
symfony/phpunit-bridge     v3.4.11 ~ v4.1.0 Symfony PHPUnit Bridge
symfony/polyfill-apcu      v1.8.0  = v1.8.0 Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-ctype     v1.8.0  = v1.8.0 Symfony polyfill for ctype functions
symfony/polyfill-intl-icu  v1.8.0  = v1.8.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring  v1.8.0  = v1.8.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php56     v1.8.0  = v1.8.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70     v1.8.0  = v1.8.0 Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-util      v1.8.0  = v1.8.0 Symfony utilities for portability of PHP codes
symfony/security-acl       v3.0.1  = v3.0.1 Symfony Security Component - ACL (Access Control List)
symfony/swiftmailer-bundle v2.6.7  ~ v3.2.2 Symfony SwiftmailerBundle
symfony/symfony            v3.4.11 ~ v4.1.0 The Symfony PHP framework

PHP version

PHP 7.1.9 (cli) (built: Aug 30 2017 18:34:46) ( ZTS MSVC14 (Visual C++ 2015) x64 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

Subject

I have an Error with the PagBundle and the FOSUserBundle.

Steps to reproduce

I have install the PageBundle and the FOSUserBundle When i add the route fos_user and regenerating the route I got an error.

Expected results

When i go on a page of FOSUserBundle, exemple: web/app_dev.php/login I want to see the default page of FOS

Actual results

Error Page with: An exception has been thrown during the rendering of a template ("None of the chained routers were able to generate route: Route 'page_slug' not found").

Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("None of the chained routers were able to generate route: Route 'page_slug' not found")." at D:\Programation\web\www\SampleSonata\vendor\sonata-project\page-bundle\src\Resources\views\layout.html.twig line 22

Thanks

stale[bot] commented 4 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.