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

Error: Call to undefined method Doctrine\DBAL\Driver\Mysqli\MysqliStatement::fetchAllAssociative() #1234

Closed
RudStar opened this issue Dec 14, 2022 · 8 comments
Labels

Comments

@RudStar
Copy link

RudStar commented Dec 14, 2022

[x] TYPO3 v10.4.31 - v10.4.33 LTS
[x] bootstrap_package v12.0.5 - v12.0.7
[x] PHP 7.4
[x] Multiple websites hosted by different providers.

With bootstrap_package from v12.0.5 on, an error is output when calling the "Report" page.
Also, the Upgrade Wizard does not work anymore.

Bildschirmfoto 2022-12-14 um 11 59 55

Bildschirmfoto 2022-12-14 um 12 00 29

TYPO3-CMS-10-4-33

@RudStar RudStar added the bug label Dec 14, 2022
@Typine3
Copy link

Typine3 commented Dec 15, 2022

I face the same problem in two projekts with bootstrap_package 12.0.7, one is Typo3 10.4.31, one 10.4.32. When trying to update to Typo3 10.4.33, I get

Uncaught TYPO3 Exception Call to undefined method Doctrine\DBAL\Driver\Mysqli\MysqliStatement::fetchAllAssociative()
thrown in file /html/typo3/typo3conf/ext/bootstrap_package/Classes/Updates/AbstractUpdate.php
in line 147

which is quite bad as 10.4.33 is a security release and the update doesn't work !!! What can I do?
Thanks
Typine3

@Typine3
Copy link

Typine3 commented Dec 15, 2022

I found out that if I deactivate bootstrap_package 12.0.7, update to typo3 10.4.33, and activate bootstrap 12.0.7 afterwards, everything is fine...

@RudStar
Copy link
Author

RudStar commented Dec 15, 2022

@Typine3 And can you call up the "Reports" page without errors? Specifically the "Status Report" subpage.

@Typine3
Copy link

Typine3 commented Dec 15, 2022

Oh, I just tested it - both
bootstrap_package 12.0.5 with Typo3 10.4.32 (Call to undefined method Doctrine\DBAL\Driver\Mysqli\MysqliStatement::fetchOne() )and
bootstrap_package 12.0.7 with Typo3 10.4.33 (Call to undefined method Doctrine\DBAL\Driver\Mysqli\MysqliStatement::fetchAllAssociative())
produce an error like you described when I call up "Reports"!
"Everything is fine" only in my frontends, sorry...

@Hawkeye1909
Copy link
Contributor

Hi!

Just ran into this. This seems to affect only non-composer installations.

I have replaced the affected line 147 in AbstractUpdate.php with the following code:

        /** @phpstan-ignore-next-line */
        if (method_exists($result, 'fetchAllAssociative')) {
            return $result->fetchAllAssociative();
        } else {
            return $result->fetchAll(\PDO::FETCH_ASSOC);
        }

If there's any need for a pull request, I can make one.

@oliverklee
Copy link

#1252 looks like a duplicate of this ticket.

@RudStar
Copy link
Author

RudStar commented May 31, 2023

from Hawkeye1909 fixes the bug. Thanks!

@benjaminkott
Copy link
Owner

resolved with d43358b

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

No branches or pull requests

5 participants