Search code examples
typo3typo3-10.xtx-news

TYPO3 typoscript condition without log error


I am trying to make a condition which does not produces errors in the log.

Tried:

[request.getQueryParams() && request.getQueryParams()['tx_news_pi1'] && request.getQueryParams()['tx_news_pi1']['news'] > 0 && request.getQueryParams()['tx_news_pi1']['news'] in [857,858,913,914]]

and

[traverse(request.getQueryParams(), 'tx_news_pi/news') in [857,858,913,914]]

both give Unable to get an item of non-array


Solution

  • I found out that an old condition still existed in a system template which caused the var/log/typo3_x.log entry. So the condition examples above are good.