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

Explain query in profiler shows An error occurred while loading the query explanation #860

Closed
PaddyLock opened this issue Oct 9, 2018 · 4 comments
Assignees

Comments

@PaddyLock
Copy link

When I view Doctrine Query metrics in the symfony profiler toolbar, and then I click Explain Query, I see the following message "An error occurred while loading the query explanation". There was a previous bug report which looks like it should be fixed #802

I am using symfony 4.1.4 with flex

@alegout
Copy link

alegout commented Oct 25, 2018

Hello,

packages:

Symfony with Flex 4.1.6
doctrine/dbal v2.8.0
doctrine/orm v2.6.2
doctrine/doctrine-bundle 1.9.1

Same error message:

An error occurred while loading the query explanation.

Log:

[2018-10-25 11:59:49] php.CRITICAL: Argument 2 passed to Doctrine\DBAL\Connection::executeQuery() must be of the type array, object given, called in /var/www/html/vendor/doctrine/doctrine-bundle/Controller/ProfilerController.php on line 87 {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Argument 2 passed to Doctrine\DBAL\Connection::executeQuery() must be of the type array, object given, called in /var/www/html/vendor/doctrine/doctrine-bundle/Controller/ProfilerController.php on line
87 at /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:915)"} []

Thank you,
Alban

@stof
Copy link
Member

stof commented Oct 25, 2018

#802 indeed fixes that, but it is not released yet

@alegout
Copy link

alegout commented Oct 25, 2018

Ah cool!

Just have to wait so.

Thank you @stof for your PR.

@kimhemsoe kimhemsoe self-assigned this Dec 9, 2018
@kimhemsoe
Copy link
Member

Fix should have been released now.

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

4 participants