Exception in Template module with parsing constant comments
If you have defaultTypoScript_constants defined in the LocalConfiguration, it's possible that the Template backend module throws an exception while trying to parse the constant comments:
trim() expects parameter 1 to be string, null given in /var/www/html/public/typo3/sysext/core/Classes/TypoScript/Parser/ConstantConfigurationParser.php line 296
I'm not exactly sure where this went wrong, since the parsing of these constants have changed quite a bit in CMS10.
The only thing I see is that the isset() check has been removed, in CMS9:
Not sure if it has something to do with the defaultTypoScript_constants or that it's just the check that goes wrong (and it's enough to restore the isset check).
Updated by Georg Ringer 7 months ago
- Status changed from New to Needs Feedback
thanks for creating the issue. can you please add your configuration of
defaultTypoScript_constants and in which module this warning occurs?
please also test with latest master as I couldn't reproduce it just now.