You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having this error with WhoopsHandler, note that with default Cakephp 3 ErrorHandler I can see the trigger_error rised by Cell__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:
<?php
$somearray = array('testing' => 'values');
// then try to echo
echo $somearray;
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:
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
The text was updated successfully, but these errors were encountered: