Issue Bug Closed

#105859Menu data processor with type browse causes array error

Lina Wolf 12/22/24, 10:52 updated 12/02/25, 14:27

Description

Using such a browser menu:

page {
    10 {
        dataProcessing {
            50 = menu
            50 {
                special = browse
                as = browseNavigation
            }
        }
    }
}

causes

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: Undefined array key "special." in /var/www/html/vendor/typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php line 1062

I would suggest to insert an early return or, prefered, deliver all items in this case and let the template descide which ones to use

Reviews 3

Files 1

History 47

  1. Lina Wolf commented 12/22/24, 10:55

    Actually https://docs.typo3.org/permalink/t3tsref:confval-hmenu-browse-special-items claims that the default for “items” is the current page.

    It seems like the docs are wrong here or the default has disappeared

  2. Chris Müller changed description 12/23/24, 15:25

  3. Gerrit Code Review pushed patch set 1 for main to change 88332 status New Under Review 02/24/25, 20:46

  4. Gerrit Code Review pushed patch set 1 for 13.4 to change 88390 02/27/25, 22:24

  5. Gerrit Code Review pushed patch set 1 for 12.4 to change 88391 02/27/25, 22:25

  6. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % 02/27/25, 22:30

    Applied in changeset commit:d0723c02542d4c333090b6d2705060e1a1abc735.

  7. Benni Mack changed status Resolved Closed 12/02/25, 14:27