Issue Bug Closed

#60171Recursive content crashes with Text / Pics element

Antoine Bouet 07/08/14, 09:53 updated 09/16/14, 11:33

Description

For a single page, I needed to display the content of pages and subpages with this TS code :

lib.single_page = CONTENT
lib.single_page {
    table = pages
    select.orderBy = sorting
    renderObj = COA
    renderObj {
        10 = CONTENT
        10 {
            table = tt_content
            select {
                pidInList.field = uid
            }
            wrap = |
        }
        20 = CONTENT
        20{
            table = pages
            select{
                pidInList.field = uid
            }
            renderObj = COA
            renderObj{
                10 = CONTENT
                10 {
                    table = tt_content
                    select {
                        pidInList.field = uid
                    }
                    wrap = |
                }
            }
        }
    }
}

It works fine, but it crashes only when a text/pic element is found in a subpage (in the “20.10” of the COA).

I patch the problem changing the line 727 in /typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php :

if (is_array($old_conf) && count($old_conf)) {

with this line :

if (is_array($old_conf) && count($old_conf) && !empty($conf)) {

But there is maybe a better solution :)

Reviews 0

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