Giter Club home page Giter Club logo

zf3-whoops's People

Contributors

ppito avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zf3-whoops's Issues

ZFW-6: Error when working in console mode

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

Clicking on stack filenames doesn't change editor

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.

selection_052
selection_053

ZFW-5: Causes blank PHP error pages

First, thanks for putting this module together.

With WhoopsErrorHandler enabled in my config/modules.config.php, any PHP level errors get squashed.

So instead of this
selection_044

I get this
selection_045

What have I done wrong?

[BUG] Blank page when errors triggered

Similar issue to this one: #5
but not the same.

Bug description

When any php error is triggered it's not displayed (blank page).

Enviroment

ppito/zf3-whoops 1.3.1
zendframework/zend-mvc 3.1.1
php 5.6
xdebug
Ubuntu
error_reporting and display_errors properly configured

Steps to reproduce

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.