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

Prevent errors caused by undefined indexes #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Naugrimm
Copy link
Contributor

I'm not entirely sure that this is the correct place to fix this. Problem:

Sometimes, instead of showing the Inspector's error page, a blank HTTP 500 is returned. In the logs can be found:

[2016-11-22 10:55:55] local.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Method Illuminate\View\View::__toString() must not throw an exception, caught ErrorException: Undefined index: src (View: [...]/vendor/lsrur/inspector/src/views/fs_exceptions.blade.php) (View: [...]/vendor/lsrur/inspector/src/views/fs_exceptions.blade.php) in [...]/vendor/lsrur/inspector/src/Inspector.php:0

I suppose it has something to do with Lsrur\Inspector\Collectors\ExceptionCollector::removeSrc, but haven't had the time to look into this and why it only happens sometimes.

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

Successfully merging this pull request may close these issues.

1 participant