Problem with Feature: #73409 - Auto-render Assets sections
we have a problem regarding above mentioned feature. We use the extension news and have a category list which links to a RSS feed page. It always works once, right after the cache is cleared, but when hitting browser back and selecting another category we get the error:
PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/typo3_system/typo3_sources/typo3_src-8.7.7/vendor/typo3fluid/fluid/src/Core/ViewHelper/ViewHelperResolver.php line 92
In the TRACE we see:
renderSection("HeaderAssets", array, boolean)
Since adding header or footer sections is somewhat meaningless when rendering plain RSS-Feed-XML anyway, I wonder if we can just disable the Asset Auto render on that page? Any Typoscript for that?
I have a suspicion I'd like to confirm, but before I go digging too deep:
1. Could you please either paste or link the template that gets rendered when this happens?
2. Can you confirm that this also happens with the same category RSS feed if you flush the page cache only and reload? This is to check that the problem is triggered from the compiled template and is not dependent on input values.
Those two bits of information should help me fix this one. I suspect it needs a fix in Fluid but I need to know the actual cause to know what the proper fix should be.
#2 Updated by SICOR KDL GmbH 3 months ago
thanks for looking into this. We didn't modify the template thus far, it's plain ext/news/Resources/Private/Templates/News/List.xml
Should be online here: https://github.com/georgringer/news/blob/master/Resources/Private/Templates/News/List.xml
The first choosen category works constantly, even when browser back is hit. To choose another category, hitting the red "All Cache" button is required, the green "Frontend cache" button has no effect in the scenario.