ppito / zf3-whoops Goto Github PK
View Code? Open in Web Editor NEWZF3-Whoops, integrated whoops in Zend Framework 3
License: MIT License
ZF3-Whoops, integrated whoops in Zend Framework 3
License: MIT License
Hello,
is this visible for users or configurable to bind to an admin user/cookie etc? Or is this mod only for dev environments?
Error when working with the zendframework/zend-mvc-console package.
Version ppito/zf3-whoops: 1.3.1
Perhaps need to add a check if $response is a Zend\Console\Response object, then do nothing.
Error: Call to undefined method Zend\Console\Response::getStatusCode() in file www\vendor\ppito\zf3-whoops\src\Module.php on line 151
Stack trace:
1. Error->() www\vendor\ppito\zf3-whoops\src\Module.php:151
2. WhoopsErrorHandler\Module->prepareException() www\vendor\zendframework\zend-eventmanager\src\EventManager.php:322
3. Zend\EventManager\EventManager->triggerListeners() www\vendor\zendframework\zend-eventmanager\src\EventManager.php:171
4. Zend\EventManager\EventManager->triggerEvent() www\vendor\zendframework\zend-mvc\src\DispatchListener.php:152
5. Zend\Mvc\DispatchListener->onDispatch() www\vendor\zendframework\zend-eventmanager\src\EventManager.php:322
6. Zend\EventManager\EventManager->triggerListeners() www\vendor\zendframework\zend-eventmanager\src\EventManager.php:179
7. Zend\EventManager\EventManager->triggerEventUntil() www\vendor\zendframework\zend-mvc\src\Application.php:332
8. Zend\Mvc\Application->run() www\public\index.php:40
I think the source editor may be broken - I see no syntax highlighting, highlighted lines or line numbers (unlike the screenshots for Whoops).
Also, if I click on the filenames in the left column, the source view goes away completely (right column starts with "Environment & details".
Screenshots attached.
Similar issue to this one: #5
but not the same.
When any php error is triggered it's not displayed (blank page).
ppito/zf3-whoops 1.3.1
zendframework/zend-mvc 3.1.1
php 5.6
xdebug
Ubuntu
error_reporting and display_errors properly configured
Install ZF Skeleton Application (ZF3)
Install the module, copy the sample config to /config/autoload/
, remove .dist extension
In any controller throw any exception. Whoops page is shown properly.
In any controller trigger any php error (eg. trigger_error('foo')
), instead of a whoops page or any error information at all - blank page is displayed.
Disable the module (comment module name in modules.config.php) errors - are properly displayed.
So this is definitely caused by this module.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.