Yoast / Yoast-SEO-for-TYPO3

Yoast SEO plugin for TYPO3
Other
51 stars 56 forks source link

Hidden pages trigger exception in PageRouter with PHP8 #478

Closed georgringer closed 2 years ago

georgringer commented 2 years ago

Please give us a description of what happened.

Having a hidden page in the rootline and using TYPO3 11.5 will get you

PHP Warning: Undefined array key "uid" in /var/www/html/app/site/public/typo3/sysext/core/Classes/Routing/PageRouter.php line 533

Please describe what you expected to happen and why.

Hidden pages should be excluded in the BreadcrumbStructuredDataProvider.

How can we reproduce this behavior?

  1. Use PHP8.1 and TYPO3 11
  2. Setup a page structure like Lorem > Ipsum and set page "Lorem" to hidden
  3. Call the frontend