Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to protected product in developer mode throws HTTP 500: Page ID XXX is not routable when maintenance is enabled (ResourceNotFoundException) #2447

Closed
AlexanderWillner opened this issue May 2, 2023 · 1 comment
Labels
Milestone

Comments

@AlexanderWillner
Copy link
Contributor

AlexanderWillner commented May 2, 2023

Version: Contao 4.13.21 with Isotope 2.8

Steps that will reproduce the problem?

  1. Setup: enable developer mode (.env: APP_ENV=dev)
  2. Backend: create a protected product
  3. Frontend: login and browse to protected product
  4. Backend: enable maintenance mode of root page
  5. Frontend: reload

What is the expected result?

Maintenance warning.

What happens instead?

ResourceNotFoundException in https://github.com/isotope/core/blob/4e09cc5eb78bd64edb5a967b43eddd367248cb39/system/modules/isotope/library/Isotope/Frontend.php#LL569C1-L570C1 due to the Breadcrumb module.

Details

HTTP 500: ResourceNotFoundException - Page ID 431 is not routable

in [vendor/contao/core-bundle/src/Resources/contao/models/PageModel.php ](https://localhost:8099/_profiler/open?file=vendor/contao/core-bundle/src/Resources/contao/models/PageModel.php&line=1374#line1374)(line 1374)
in [vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Frontend.php ](https://localhost:8099/_profiler/open?file=vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Frontend.php&line=569#line569)-> getFrontendUrl (line 569)
in [vendor/contao/core-bundle/src/Resources/contao/modules/ModuleBreadcrumb.php ](https://localhost:8099/_profiler/open?file=vendor/contao/core-bundle/src/Resources/contao/modules/ModuleBreadcrumb.php&line=224#line224)-> addProductToBreadcrumb (line 224)
in [vendor/contao/core-bundle/src/Resources/contao/modules/Module.php ](https://localhost:8099/_profiler/open?file=vendor/contao/core-bundle/src/Resources/contao/modules/Module.php&line=214#line214)-> compile (line 214)
in [vendor/contao/core-bundle/src/Resources/contao/modules/ModuleBreadcrumb.php ](https://localhost:8099/_profiler/open?file=vendor/contao/core-bundle/src/Resources/contao/modules/ModuleBreadcrumb.php&line=47#line47)-> generate (line 47)
in [vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php ](https://localhost:8099/_profiler/open?file=vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php&line=440#line440)-> generate (line 440)
@AlexanderWillner AlexanderWillner changed the title Access to protected products in maintenance mode throws HTTP 500: Page ID XXX is not routable in developer mode (ResourceNotFoundException) Access to protected product in developer mode throws HTTP 500: Page ID XXX is not routable when maintenance is enabled (ResourceNotFoundException) May 2, 2023
@aschempp aschempp added the bug label May 3, 2023
@aschempp aschempp added this to the 2.8 milestone May 3, 2023
@aschempp aschempp modified the milestones: 2.8, 2.8.13 Jun 6, 2023
@aschempp
Copy link
Member

aschempp commented Jun 6, 2023

Fixed in 0100347

@aschempp aschempp closed this as completed Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants