Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Warning: Trying to access array offset on value of type bool #26

Open
PhilippKuhlmay opened this issue Jan 31, 2022 · 1 comment
Open

Comments

@PhilippKuhlmay
Copy link

With TYPO3 11.5.5 and EXT:page_speed_insights 3.0.0 and PHP 8.0.15 I get the following Error when I try to use the Page module:

PHP Warning: Trying to access array offset on value of type bool in .....ext/page_speed_insights/Classes/Utility/PageSpeedInsightsUtility.php line 190

@PhilippKuhlmay
Copy link
Author

This only happens if a page is not yet indexed by pagespeedinsights so there is no data available in the database for this page.
So if a page shouldn't be analyzed, the code is still executed and the database query in PageSpeedInsightsUtility.php line 190 returns false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant