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

Uncaught TYPO3 Exception #9

Open
tastendruecker opened this issue Sep 25, 2020 · 0 comments
Open

Uncaught TYPO3 Exception #9

tastendruecker opened this issue Sep 25, 2020 · 0 comments

Comments

@tastendruecker
Copy link

Hi!

Using TYPO3 9.5.21, I can't execute the command because of this:

Uncaught TYPO3 Exception Argument 1 passed to 
Haassie\PageSpeedInsights\Utility\PageSpeedInsightsUtility::getPageAndLanguageId() 
must be of the type int, string given, called in /var/www/html/Source/public/typo3conf/
ext/page_speed_insights/Classes/Command/CheckPageSpeedInsightsCommand.php 
on line 46
thrown in file /var/www/html/Source/public/typo3conf/ext/page_speed_insights
/Classes/Utility/PageSpeedInsightsUtility.php
in line 144

To me it looks as if in line 46 of Classes/Command/CheckPageSpeedInsightsCommand.php the uid of the page should be cast to integer like so:

            [
                'pageId' => $pageId,
                'languageId' => $languageId,
                'pid' => $pid
            ] = PageSpeedInsightsUtility::getPageAndLanguageId((int)$row['uid']);

Thanks!

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