Issue Bug Closed

#107113Debug with Fluid not possible

Florian Rival 07/18/25, 13:17 updated 08/22/25, 07:51

Description

With TYPO3 V13, I tried to debug fluid variables as usual but the result is not HTML formatted and then not readable.

In my Fluid template, I use the debug ViewHelper like this:

<f:debug>{_all}</f:debug>

the result displayed is:

array: "settings": array: "dancers": array: "0": array: "uid": integer 1 "username": string 'florian' "1": array: "uid": integer 2 "username": string 'estelle' "2": array: "uid": integer 3 "username": string 'xx' "3": array: "uid": integer 4 "username": string 'test' "4": array: "uid": integer 6 "username": string 'fefez' "5": array: "uid": integer 9 "username": string 'florian2' "6": array: "uid": integer 10 "username": string 'disable' "7": array: "uid": integer 11 "username": string 'flo3' "8": array: "uid": integer 12 "username": string 'test avec pid dans form' "9": array: "uid": integer 13 "username": string 'test5' "10": array: "uid": integer 14 "username": string 'test6' "11": array: "uid": integer 15 "username": string 'test7' "12": array: "uid": integer 18 "username": string 'test8' "13": array: "uid": integer 19 "username": string 'test9' "14": array: "uid": integer 20 "username": string 'test10' array:

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 8

  1. Garvin Hicking commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2025-07-18T13:29:14+00:00" > 07/18/25, 13:29 </span>

    Whats your exact context? You might need to use the parameters “inline” or “plainText”.

    The VH only works in regular page context routed through the Page renderer otherwise.

    Also have a look at https://docs.typo3.org/p/brainworxx/includekrexx/5.1/en-us/Introduction/WhatDoesItDo/Index.html for advanced fluid live debugging.

  2. Florian Rival commented <span data-processor="relativetime" data-value="2025-07-18T13:48:48+00:00" > 07/18/25, 13:48 </span>

    Tried to add a parameter “plainText” to debug and the have this error:

    Undeclared arguments passed to *ViewHelper* TYPO3Fluid\Fluid\ViewHelpers\DebugViewHelper: plainText. Valid arguments are: typeOnly, levels, html

    So I understand why it doesn’t work, the ViewHelper used is not the right one:

    TYPO3Fluid\Fluid\ViewHelpers

    the right one is located here:

    TYPO3\CMS\Fluid\ViewHelpers

    Do you have an idea why it’s not the right class that is called ?

    Could it be because I used bk2k/bootstrap-package ?

  3. Garvin Hicking commented and changed status Needs Feedback Closed <span data-processor="relativetime" data-value="2025-07-18T14:51:51+00:00" > 07/18/25, 14:51 </span>

    I can’t say without more context or a reproducible example. I’m afraid this might be more of a support request and not a TYPO3 core issue.

    You could check your fluid namespaces that are used, and if any extensions you use register global namespaces for fluid?

    If it only happens in the bk2k/bootstrap-package context this would also better be solved on a bootstrap-package relevant platform.

    I hope it’s ok for you that due to this I’m closing the issue here. Feel free to come to #typo3-cms Slack for example :-)

  4. Florian Rival commented <span data-processor="relativetime" data-value="2025-08-21T15:48:38+00:00" > 08/21/25, 15:48 </span>

    The problem comes from the global namespace order, I have this:

    $GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['f']
    
    1 = TYPO3\CMS\Fluid\ViewHelpers
    2 = TYPO3Fluid\Fluid\ViewHelpers

    instead of that:

    $GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['f']
    
    1 = TYPO3Fluid\Fluid\ViewHelpers
    2 = TYPO3\CMS\Fluid\ViewHelpers

    So if I change my FLUIDTEMPLATE like this:

    <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
          xmlns:test="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
          data-namespace-typo3-fluid="true">
    
    <test:debug>{_all}</test:debug>

    <test:debug> is doing the job as it should.</test:debug>

    I guess there is a bug with global namespace inclusion.

  5. Garvin Hicking commented <span data-processor="relativetime" data-value="2025-08-21T16:19:02+00:00" > 08/21/25, 16:19 </span>

    You manually set that order? Because both namespaces come with a debug VH. Only the TYPO3 Core VH has advanced debugging. The fluid VH is very basic.

  6. Florian Rival commented <span data-processor="relativetime" data-value="2025-08-22T07:16:37+00:00" > 08/22/25, 07:16 </span>

    I found where the problem comes from, it comes from a wrong configuration in file system/settings.php I have this:

    'SYS' => [
        'fluid' => [
            'namespaces' => [
                'f' => [
                    'TYPO3\\CMS\\Fluid\\ViewHelpers',
                    'TYPO3Fluid\\Fluid\\ViewHelpers',
                    'FriendsOfTYPO3\\Crowdin\\ViewHelpers\\Override',
                ],
            ],
        ],
    ],

    but don’t know how it was generated.

  7. Garvin Hicking commented <span data-processor="relativetime" data-value="2025-08-22T07:51:49+00:00" > 08/22/25, 07:51 </span>

    Hm, that could only happen with manual editing I believe, as the is no GUI to do this. Don’t know if crowdin has some wizard that changed it? You can change the order in your settings to fix this.