Issue Bug Closed

#101394Undefined array key "pageuid" in /typo3/sysext/frontend/Classes/Middleware/StaticRouteResolver.php line 159

Fronzes Philippe 07/20/23, 07:34 updated 07/09/24, 14:15

Description

No description.

Reviews 3

History 58

  1. Stefan Bürk commented 07/24/23, 22:15

    Can you please provide your static route configuration ?

    Granted, we should guard this – butlooking into the code that means that a valid pageuid is missing.
    We can add such a guard and throw a InvalidArgumentException, would not help much – beside having a
    more naming error eventually.

    I would be interessted into which constellation causes this, so maybe we can do a check early in the
    stack to avoid things or deal with a configuration issue more correctly.

  2. Stefan Bürk changed status New Needs Feedback assigned to Stefan Bürk 07/24/23, 22:16

  3. Fronzes Philippe commented 07/25/23, 07:22

    This is these lines in my config.yaml file.

    routes:
    -
    route: rss.xml
    type: uri
    source: 't3://page?type=9818'
    -
    route: sitemap.xml
    type: uri
    source: 't3://page?type=1533906435'

    Actually, I have added a uid=1 parameter in the source (source: ‘t3://page?uid=1&type=9818’), and the error is gone, but I think the syntax without the uid is correct ?

  4. Gerrit Code Review pushed patch set 1 for main to change 80188 status Needs Feedback Under Review 07/27/23, 14:42

  5. Gerrit Code Review pushed patch set 1 for 12.4 to change 80149 07/28/23, 07:54

  6. Gerrit Code Review pushed patch set 1 for 11.5 to change 80150 07/28/23, 07:54

  7. Stefan Bürk commented and changed status Under Review Resolved done 0 % 100 % 07/28/23, 08:15

    Applied in changeset commit:dc0b6070f188c9dc8946f8f768382d0ee4b69ade.

  8. Benni Mack changed status Resolved Closed 07/09/24, 14:15