This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Exceptions, thrown in templates not showing #157
Comments
Maybe this is related to #146 |
hi, i reproduce the problem, form my site it looks like that in your error template is a check like <?php if(isset($this->exception) && $this->exception instanceof Exception): ?> the problem is that the $this->exception is from class so change it to smth like that <?php if(isset($this->exception) && ($this->exception instanceof Exception || $this->exception instanceof Error)): ?> hope i can help you. about #146 this result in http error code 500 with a error in your webserver logs. Tested on PHP 7.0.7 CentOS 7 |
I don't have any checks in my templates. I'm just calling a method on a non-object. I don't get an error - instead, I get the message: "No exception available" and I have to debug every single line. |
It's working like a charm! Thanks. |
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Since release-2.7.8 there is a problem when an error occurs in the template (even a syntax or parse error). The framework says that an error occurred and "No exception is available".
Sometimes it is frustrating, because I can't even see on which line is the error. I am using the latest PHP7 version (v7.0.7) on Ubuntu 16.10.
The text was updated successfully, but these errors were encountered: