Project

General

Profile

Actions

Bug #105509

open

Page title provider with absolute FQN causes container error

Added by Lina Wolf about 1 month ago. Updated 30 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2024-10-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Until TYPO3 v 12.4 it was possible to define a page title provider like this in TypoScript:

    config.pageTitleProviders {
        beratungsstelle {
            provider = \MyVendor\MyExtension\PageTitle\PageTitleProvider
            before = record
            after = altPageTitle
        }
    }

In 13.4 an error is thrown:

You have requested a non-existent service "\MyVendor\MyExtension\PageTitle\PageTitleProvider". 
Did you mean this: "MyVendor\MyExtension\PageTitle\PageTitleProvider"?

I would suggest that we trim for a backslash at the start in

/var/www/html/vendor/typo3/cms-core/Classes/PageTitle/PageTitleProviderManager.php line 59

And possibly test the existence of the Service before using it so that we can give better error messages.

Removing the slash at the start of the3 FQNC solves the ptoblem

Actions #1

Updated by Georg Ringer about 1 month ago

we never trim the \ but fail with class not found usually.

Actions #2

Updated by Lina Wolf 30 days ago

Why then did this still work in TYPO3 12?

Actions

Also available in: Atom PDF