Le 23/07/2020 à 18:39, Cerulean a écrit :

    Why are you trying to rely on the arguments in the backtrace
    (which are indeed dumped in a compact form) to see the Doctrine
    error message ?


Because that is the only part of the logged error that is specific to the problem. The full error looks like this:

PHP Fatal error:  Uncaught Doctrine\ORM\Query\QueryException: SELECT s.wrong
FROM Submission s
 in /home/user/folder/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:43
Stack trace: ...

As you can see, the top part of the logged error is just my bad DQL. Only the stack trace shows any interesting specifics from Doctrine.

    If your error reporting renders the backtrace but drops the error
message, there is nothing we can do for you.

So far as I know I haven't customized php or Doctrine error reporting in any way, but I'd be thankful to be told otherwise. Are there any settings I should adjust?

~Martin
--
You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/doctrine-user/5f958fb6-e6f2-442a-b448-2bfe644f444fo%40googlegroups.com <https://groups.google.com/d/msgid/doctrine-user/5f958fb6-e6f2-442a-b448-2bfe644f444fo%40googlegroups.com?utm_medium=email&utm_source=footer>.

The exception containing the full DQL query as the message is *not* the exception thrown by Doctrine. It is the *previous* exception attached in the thrown exception. So it looks like your error reporting system dropped one layer of exception to report the inner one.

--
Christophe | Stof

--
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/doctrine-user/f751e78e-2438-91f8-5e93-a91b47ef24e6%40notk.org.

Reply via email to