#105135TypoScript object path "tt_content..20" does not exist
Description
Trying to display an EXTBASE plugin with additional information in a fluid template I did the following:
<f:cObject typoscriptObjectPath="tt_content.myextension_showpersoninsearch" data="{person: document.fields.uid}" />
I get the very hard to debug error message
(1/1) #1253191023 TYPO3Fluid\Fluid\Core\ViewHelper\Exception TypoScript object path "tt_content..20" does not exist
It seems like the CObjectViewHelper is recursively calling itself with a missing path.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
History 19
-
Garvin Hicking commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2024-09-27T05:21:58+00:00" > 09/27/24, 05:21 </span> -
Lina Wolf commented and changed status
Needs FeedbackNew <span data-processor="relativetime" data-value="2024-09-27T05:24:18+00:00" > 09/27/24, 05:24 </span>Yes, that is the exact error message. On the first call CObjectViewHelper::renderStatic gets called with the correct typoscriptObjectPath in its string.
It then calls renderContentObject where the typoscriptObjectPath is still correct. line 184 then seeems to recuresively call CObjectViewHelper::renderStatic with the missing path
Solution should be mentioned here; https://docs.typo3.org/m/typo3/reference-exceptions/main/en-us/Exceptions/1253191023.html#typoscript-object-path-tt-content-20-does-not-exist
-
Markus Klein commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2024-10-16T14:43:57+00:00" > 10/16/24, 14:43 </span>it seems like your `tt_content.myextension_showpersoninsearch` extension is rendering some Fluid, which again contains an f:cObject viewhelper.
Please check that first. This smells like nesting. -
Lina Wolf commented and changed status
Needs FeedbackClosed <span data-processor="relativetime" data-value="2024-11-05T05:40:34+00:00" > 11/05/24, 05:40 </span>Cannot reproduce
-
Stefan Terborg commented <span data-processor="relativetime" data-value="2024-11-14T15:36:13+00:00" > 11/14/24, 15:36 </span>
I have the same problem with plugins from news or indexed_search:
# typoscript: lib.searchBox < tt_content.indexedsearch_pi2 # fluid template: <f:cObject typoscriptObjectPath="lib.searchBox"/>
-
Stefan Terborg commented <span data-processor="relativetime" data-value="2024-11-14T15:42:25+00:00" > 11/14/24, 15:42 </span>
This seems to work:
# typoscript: lib.searchBox < tt_content.indexedsearch_pi2.20 # fluid template: <f:cObject typoscriptObjectPath="lib.searchBox"/>
-
Markus Klein commented and changed category status
ClosedNeeds Feedback <span data-processor="relativetime" data-value="2024-11-14T22:04:12+00:00" > 11/14/24, 22:04 </span>So it was working before and now broke with v12?
-
Simon Schaufelberger commented <span data-processor="relativetime" data-value="2024-11-26T23:02:35+00:00" > 11/26/24, 23:02 </span>
I can also confirm that it is broken with TYPO3 12. The problem is that The core actually renders all plugins like so: https://github.com/TYPO3/typo3/blob/main/typo3/sysext/fluid_styled_content/Resources/Private/Templates/Generic.html#L8 with an appended
.20which refers to the EXTBASEPLUGIN or USER function, depending on the type whileplugin.tx_news_pi1was previously also accessed through tt_content.list.20.tx_news_pi1, it is now in the same places astt_content.tx_news_pi1.20and NOTtt_content.tx_news_pi1becausett_content.tx_news_pi1is now a FLUIDTEMPLATE and rendering that is broken.See also slack channel:
https://typo3.slack.com/archives/C03AM9R17/p1732634108884449
https://typo3.slack.com/archives/C03AM9R17/p1732634623250659
https://typo3.slack.com/archives/C03AM9R17/p1732635747997139
https://typo3.slack.com/archives/C03AM9R17/p1732636158214989PS: the migration documentation is also wrong therefore: https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/ContentElements/MigrationListType.html#plugins-list-type-migration-core-plugin-typoscript because the migration is not 1:1 the same as before. The correct migration would actually be:
-tt_content.list.20.examples_pi1 = USER -tt_content.list.20.examples_pi1 { +tt_content.examples_pi1 =< lib.contentElement +tt_content.examples_pi1 { + 20 = USER + 20 { userFunc = MyVendor\Examples\Controller\ExampleController->example settings { singlePid = 42 listPid = 55 } view { templateRootPaths.10 = {$templateRootPath} partialRootPaths.10 = {$partialRootPath} layoutRootPaths.10 = {$layoutRootPath} } } + templateName = Generic } # Or if you used the plugin top level object: -tt_content.list.20.examples_pi1 < plugin.tx_examples_pi1 +tt_content.examples_pi1.20 < plugin.tx_examples_pi1This would be the same as the TypoScript Tree would render all other content elements
-
Markus Klein changed status
Needs FeedbackAccepted <span data-processor="relativetime" data-value="2024-11-27T16:21:25+00:00" > 11/27/24, 16:21 </span> -
Kurt Gusbeth commented <span data-processor="relativetime" data-value="2025-02-25T13:49:10+00:00" > 02/25/25, 13:49 </span>
I can confirm this bug for TYPO3 13 too.
I switched my PlugIns from list_type to CType, but now the Ajax call doesn´t work anymore:ajaxmyext_page = PAGE ajaxmyext_page { typeNum = 56544440 config { disableAllHeaderCode = 1 additionalHeaders = Content-type:application/html xhtml_cleaning = 0 debug = 0 no_cache = 1 admPanel = 0 } 10 < tt_content.myext_show }The error message is the same:
[CRITICAL] request=“88567dcaf807d” component=“TYPO3.CMS.Core.Error.DebugExceptionHandler”: Core: Exception handler (WEB: FE): TYPO3Fluid\Fluid\Core\ViewHelper\Exception, code #1253191023, file D:\laragon\www\typo3-13\typo3\sysext\fluid\Classes\ViewHelpers\CObjectViewHelper.php, line 147: TypoScript object path “tt_content..20” does not exist- Exception: TypoScript object path “tt_content..20” does not exist, in file xyz… -
Kurt Gusbeth commented <span data-processor="relativetime" data-value="2025-02-26T10:40:40+00:00" > 02/26/25, 10:40 </span>
The problem with the Ajax-call is:
In
sysext/fluid_styled_content/Resources/Private/Templates/Generic.html
{data.CType} is empty, but it should not be empty. {content} is empty too.
The data-array contains items of the page and not of the content element, thats why CType is empty.
When I replace {data.CType} with myext_show, it works.
So I think, the problem is, that data containt items of pages instead of tt_content.PS: with the old code its not working either:
ajaxmyext_page.10 < tt_content.list.20.myext_show -
Simon Schaufelberger commented <span data-processor="relativetime" data-value="2025-02-26T11:26:56+00:00" > 02/26/25, 11:26 </span>
Kurt, please read my comment #8 and include your plugin like this: tt_content.tx_examples_pi1.20 or plugin.tx_examples_pi1.20 and it should work.
-
Kurt Gusbeth commented <span data-processor="relativetime" data-value="2025-02-26T14:03:45+00:00" > 02/26/25, 14:03 </span>
Thanks for your hint. Yes, you are right. It works when I append “.20”.
The Generic-Template will then not be called. -
Garvin Hicking commented <span data-processor="relativetime" data-value="2025-02-26T17:32:49+00:00" > 02/26/25, 17:32 </span>
@simonschaufi Do you have an idea for a patch to remedy the situation? I must admit I didn’t go through all the links you posted. If there’s a core changelog patch to be made, maybe you could push it to gerrit? Or if it is docs related we make a PR there?
-
Simon Schaufelberger commented <span data-processor="relativetime" data-value="2025-03-04T10:41:21+00:00" > 03/04/25, 10:41 </span>
@ghi The core is fine, just the docs here https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/ContentElements/MigrationListType.html#plugins-list-type-migration-core-plugin-typoscript are wrong and maybe some other places like in the changelogs.
Alternatively the core could be fixed to render tt_content.examples_pi1 properly without crashing but this needs some more research what exactly is wrong.
-
Garvin Hicking commented <span data-processor="relativetime" data-value="2025-03-04T10:46:44+00:00" > 03/04/25, 10:46 </span>
@simonschaufi Thx, any chance you could tell me the exact changes in docs or a PR for it? 😬😇
-
Simon Schaufelberger commented <span data-processor="relativetime" data-value="2025-04-14T19:32:51+00:00" > 04/14/25, 19:32 </span>
@ghi See https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-CoreApi/pull/5521 for a bugfix for the documentation
-
Simon Schaufelberger changed status
AcceptedResolved <span data-processor="relativetime" data-value="2025-04-25T16:06:28+00:00" > 04/25/25, 16:06 </span> -
Simon Schaufelberger changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-04-25T16:06:44+00:00" > 04/25/25, 16:06 </span>
The error message is really “tt_content..20” with two dots? Or was that some shortening error when posting?