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

[BUG] Infinite loop when activating maintenance mode #11

Closed
cweiske opened this issue Mar 29, 2022 · 0 comments · Fixed by #12
Closed

[BUG] Infinite loop when activating maintenance mode #11

cweiske opened this issue Mar 29, 2022 · 0 comments · Fixed by #12

Comments

@cweiske
Copy link
Contributor

cweiske commented Mar 29, 2022

Describe the bug
The TYPO3 backend lets us enable the maintenance mode via
Settings > Configure Installation-Wide Options > [FE][pageUnavailable_force] = true

If TRUE, every frontend page is shown as "unavailable". If the client matches [SYS][devIPmask], the page is shown as normal. This is useful during temporary site maintenance.

When activating this mode, pxa_lpeh runs in an infinite loop that leads to the following error:

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 528384 bytes) in /var/www/typo3/public/typo3/sysext/core/Classes/TimeTracker/TimeTracker.php on line 188

To Reproduce
Steps to reproduce the behavior:

  1. Open TYPO3 backenc
  2. Click on Management > Settings
  3. Click on "Configure Installation-Wide Options"
  4. Search for "force"
  5. Activate [FE][pageUnavailable_force] = true
  6. Write configuration
  7. Open the frontend
  8. Wait some seconds until the memory runs out and see the error

Expected behavior
Error page is shown

Additional context

  • TYPO3 v10.4.22
  • pxa_lpeh v1.1.0
cweiske added a commit to mogic-le/pxa_lpeh that referenced this issue Mar 29, 2022
.. so that the error page gets rendered correctly when
the maintenance mode is activated.

Resolves: pixelant#11
mabolek pushed a commit that referenced this issue Mar 30, 2022
.. so that the error page gets rendered correctly when maintenance mode is activated.

Resolves #11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant