Questions tagged [whoops]

A PHP library for better dealing with errors and exceptions

whoops is a nice little library that helps you develop and maintain your projects better, by helping you deal with errors and exceptions in a less painful way.

Site : http://filp.github.io/whoops/

Demo : http://filp.github.io/whoops/demo

Download: https://github.com/filp/whoops/tags

Docs: https://github.com/filp/whoops/wiki/API-Documentation

Features

  • Includes providers for Silex and Zend Framework 2, with community-provided support for other platforms and frameworks
  • Now included in the Laravel 4 core!
  • Detailed & intuitive page for errors and exceptions (PrettyPageHandler)
  • Code view for all frames in a stack trace with line highlights (PrettyPageHandler)
  • Frame comments & analysis through custom middle-ware/handlers (PrettyPageHandler)
  • Request & app-specific information through custom middle-ware/handlers (PrettyPageHandler)
  • JSON & AJAX support (JsonResponseHandler)
  • XML & SOAP support (XmlResponsehandler, SoapResponseHandler)
  • Clean and tested code-base that's easy to extend and build on to make it work just right for your project
32 questions
1
vote
1 answer

Whoops to catch PDO errors?

I use whoops on my site, and now I try to get it work with PDO errors, it work fine when there missing a information to connect to the database, but when you (as a example) type a not existing table, it don't show a error. I have try to add…
Benjamin H
  • 65
  • 1
  • 9
1
vote
0 answers

Whoops on Laravel 5.2 not working

Following this thread to use Whoops as debugger, I'm not able to see chrome page like this: but it looks like this no matter what error I get: Things I've tried: run composer require filp/whoops --dev modify app/Exceptions/Handler.php public…
bluenowhere
  • 2,683
  • 5
  • 24
  • 37
1
vote
2 answers

Laravel 5.2 + Whoops

I've previously had Whoops in 5.1 and 5.0; but since 5.2 the implementation I used earlier no longer works. I have been unable to find a way to implement Whoops 2.0 to Laravel 5.2 as is. Any suggestions?
FooBar
  • 5,752
  • 10
  • 44
  • 93
1
vote
0 answers

Is it possible to display local variables in laravel error page

In laravel 4, the debug error pages is very useful. It uses whoops library. I am wondering, is it possible to get values of local variables in the error pages? I mean It could display the arguments and the other local variables (by var_dump) for…
muhammedea
  • 121
  • 2
  • 7
1
vote
1 answer

Whoops error in laravel 4

Most of the time i am getting "htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument" in laravel even for syntax error. I didnt understand and I am unable to track the actual…
Prabhash
  • 11
  • 2
0
votes
1 answer

How do I display function arguments with PHP and the Whoops PrettyPageHandler error handler?

In Whoops, PlainTextHandler has the addTraceFunctionArgsToOutput method that I can use to display function arguments with the stack trace. What is the equivalent for PrettyPageHandler? In my live environment I do this to show function arguments in…
George
  • 934
  • 2
  • 10
  • 21
0
votes
0 answers

How do we deal with custom error handling in real world?

I'll start with a minimal example. Suppose we have the following dependency in our project:
user10021762
0
votes
1 answer

I keep getting a “Call to undefined function..” error displaying

I am new to PHP programming and I am trying to teach myself WordPress theme development for fun and I am using PhpStorm as my IDE. I am trying to better understand the inner-workings of WordPress and I am running into a roadblock on something. I…
I Am Sir Ask Alot
  • 117
  • 1
  • 1
  • 9
0
votes
1 answer

Laravel package whoops exception

In my Laravel package I have this code: try { $var_msg = "Exception example"; throw new InvalidNameException($var_msg); } catch (InvalidNameException $e) { abort(403, $e->getMessage()); //report($e);Exception Log } The error is…
whollaus
  • 5
  • 3
0
votes
0 answers

Properties null when extending Whoops PrettyPageHandler

Consider this simple child class of PrettyPageHandler class NewErrorHandler extends \Whoops\Handler\PrettyPageHandler { public $foo = null; public function __construct() { parent::__construct(); } public function…
IMB
  • 15,163
  • 19
  • 82
  • 140
0
votes
0 answers

Laravel 5.5: Whopps only display some of the details

I'm using laravel 5.5 and i've noticed that at some scenarios whoops will only show some details: Most of the text is missing, any ideas what is going on?
YahavIL
  • 13
  • 3
0
votes
2 answers

Temporarily hide the Whoops page in Laravel 5.4?

When my PHP script goes wrong, I see a nice Whoops page with all details of the error. However, sometimes I need to see the output of where it went wrong (for example in a loop with 1 million items, but only 1 of them gives a problem, I need to see…
Dylan
  • 9,129
  • 20
  • 96
  • 153
0
votes
3 answers

Cant find class when using "Whoops!" library?

Recently I have been trying the Whoops! library and trying to get it to work, however, unfortunately this is the closest I have gotten to get it working. I installed it via the composer using this…
Stuart Little
  • 33
  • 1
  • 4
0
votes
1 answer

Enable Whoops error console within Laravel

I'm new to using Laravel 5.0. I use Laravel on my web server and prefer to use it there instead of locally. In tutorials, I've seen that there's a nice debugger (called "Whoops", if I'm not mistaken). It looks like…
Tupic
  • 545
  • 1
  • 6
  • 12
0
votes
1 answer

Laravel show Whoops debugger in dev environment

I am in need of having try-catch blocks inside my business logic. Thereby I can do some logging of the error with some more context. try { // business logic } catch(Exception $e) { // Log message like 'Could not create user with email…
Esben
  • 1,943
  • 1
  • 18
  • 37