Open gtrias opened 9 years ago
Interesting...
What's your PHP's error level? Could be related to that since Whoops I believe catches triggered errors, not just thrown exceptions.
My PHP error level is 24575.
Which error level should I have?
It does not just occur with Cells. I'm having a similar issue with a custom AuthComponent (which also loads custom authenticators, password hashers and custom authorize classes).
Using the default CakePHP error handler shows all the stack and a clear error, whilst using this whoops plugin only shows a PHP7ErrorException
:
@elboletaire Sounds also like Middleware is a different handler than the low level one. https://github.com/dereuromark/cakephp-whoops should fix things for you.
I'm having this error with
WhoopsHandler
, note that with default Cakephp 3 ErrorHandler I can see thetrigger_error
rised byCell
__toString()
method. I'm not sure if the error is from the plugin or the Whoops library itself but I post here because is related with cakephp as well.This error makes very hard to debug errors on Cell's templates.
To reproduce the error create a cell and on its
display.ctp
write the next:Some useful information about this error:
http://stackoverflow.com/questions/2429642/why-its-impossible-to-throw-exception-from-tostring http://www.phpsadness.com/sad/14