Issue Bug Closed

#108710Redirect to pages results in symfony error

Yannik Börgener 01/21/26, 09:51 updated 10/23/26, 07:46

Description

If I redirect to a page in the redirects module, I get the attached error.
The error occures, because the property $id is not initialized in TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController
I made a workaround to set it to 0 and everything works fine.

I use TYPO3 13.4.24

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 2

History 6

  1. Garvin Hicking commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2026-01-21T16:11:13+00:00" > 01/21/26, 16:11 </span>

    This could actually also be related to some middleware or custom code being called to access TSFE too early.

    Do you have a minimal example to reproduce this?

  2. Yannik Börgener commented and changed attached clipboard-202601212218-bvwqq.png <span data-processor="relativetime" data-value="2026-01-21T21:20:07+00:00" > 01/21/26, 21:20 </span>

    Yeah, I also thought it might be a result of a middleware, but there is no none-core before the redirect middleware.
    clipboard-202601212218-bvwqq.png

    The error also does not occur on all of our webs which makes it quite mysterious.
    I will try to provide a minimal example in the next days.

  3. Stefan Wagler commented <span data-processor="relativetime" data-value="2026-04-08T14:46:11+00:00" > 04/08/26, 14:46 </span>

    We also have this problem when using the “getTSFE()” TypoScript condition for checking for the current page UID.
    When replacing the previously existing condition with “traverse(page, “uid”)” the configured redirects are working again without any exceptions.

    Tested using TYPO3 13.4.27 without any non-Core-Middleware before “typo3/cms-redirects/redirecthandler”.
    The exception was:

    Typed property TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::$id must not be accessed before initialization
    in /var/www/web-sector27-typo313/data/sc27-typo3-installation/vendor/symfony/expression-language/Node/GetAttrNode.php line 95

  4. Georg Ringer commented <span data-processor="relativetime" data-value="2026-10-15T19:33:26+00:00" > 10/15/26, 19:33 </span>

    can you please check if this is still relevant in v14?

  5. Stefan Wagler commented <span data-processor="relativetime" data-value="2026-10-22T15:44:18+00:00" > 10/22/26, 15:44 </span>

    For my part, at least, I can’t reproduce the problem in TYPO3 14.3.9 / 14.3.10 using the old/previous TypoScript conditions.

  6. Georg Ringer commented and changed status Needs Feedback Closed <span data-processor="relativetime" data-value="2026-10-23T07:46:05+00:00" > 10/23/26, 07:46 </span>

    closed as cant be reproduced