Issue Bug Closed

#105135TypoScript object path "tt_content..20" does not exist

Lina Wolf 09/27/24, 05:18 updated 04/25/25, 16:06

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

  1. Garvin Hicking commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2024-09-27T05:21:58+00:00" > 09/27/24, 05:21 </span>

    The error message is really “tt_content..20” with two dots? Or was that some shortening error when posting?

  2. Lina Wolf commented and changed status Needs Feedback New <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

  3. Markus Klein commented and changed status New Needs 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.

  4. Lina Wolf commented and changed status Needs Feedback Closed <span data-processor="relativetime" data-value="2024-11-05T05:40:34+00:00" > 11/05/24, 05:40 </span>

    Cannot reproduce

  5. 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"/>
  6. 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"/>
  7. Markus Klein commented and changed category status Closed Needs 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?

  8. 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 .20 which refers to the EXTBASEPLUGIN or USER function, depending on the type while plugin.tx_news_pi1 was previously also accessed through tt_content.list.20.tx_news_pi1, it is now in the same places as tt_content.tx_news_pi1.20 and NOT tt_content.tx_news_pi1 because tt_content.tx_news_pi1 is 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/p1732636158214989

    PS: 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_pi1

    This would be the same as the TypoScript Tree would render all other content elements

  9. 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…

  10. 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

  11. 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.

  12. 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.

  13. 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?

  14. 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.

  15. 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? 😬😇