-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
PHP8 V11: fetch() deprecated #1819
Comments
I will try to commit a patch |
thanks for creating this issue. I will change the requirements a bit because such propose changed is not possible because of support of v10 |
@georgringer I am not sure about moving to V12? I used fetchAssociative already in V10 projects. I could not find out about fetchOne() and fetchAssociativeAll(), but if they are also available in V10, why not updating? |
yes, if you are using composer and use doctrine/dbal with 2.13 but if TYPO3 is installed by using tar files you won't get this version and no |
Bug Report
Current Behavior
With a new installation of TYPO3 V11 with PHP8.1 and all Warnings enabled, I get these Exceptions, for example with News Administration Module in Backend and List view in Frontend.
PHP Runtime Deprecation Notice: PDOStatement::fetch(): Passing null to parameter #1 ($mode) of type int is deprecated in /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php line 138
Expected behavior/output
No Exception
Environment
Possible Solution
replace all fetch() with fetchAssociative
This fixed my Exception:
class CategoryService, Line 103:
while (($row = $res->fetchAssociative())) {
Additional context
Searching in code showed more fetch() statements, so replacing all of them at once would be the best solution
The text was updated successfully, but these errors were encountered: