georgringer / news

TYPO3 Extension news
GNU General Public License v2.0
264 stars 358 forks source link

PHP warning with TypoScript condition from SEO documentation #2251

Closed cundd closed 11 months ago

cundd commented 11 months ago

Bug Report

Current Behavior TypoScript condition in SEO documentation may lead to PHP warning: 'Unable to call method "getQueryParams" of non-object "request".'

Expected behavior/output TypoScript example without triggering warnings.

Environment

Possible Solution See pull request in TYPO3 core

Additional context https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-Typoscript/pull/807 https://typo3.slack.com/archives/C025BQLFA/p1695726759085809