filp / whoops

PHP errors for cool kids
http://filp.github.io/whoops/
MIT License
13.19k stars 604 forks source link

Bug report. #750

Closed Shelamkoff closed 1 year ago

Shelamkoff commented 1 year ago

Hi. After upgrading to version 2.15.0, an exception is thrown when using the Whoops\Handler\PrettyPageHandler . [Exception: Error, File: vendor\filp\whoops\src\Whoops\Handler\PlainTextHandler.php, Line: 285, Message: Call to a member function getFrameFilters() on null, Code: 0] I believe this is related to the code below:

// Whoops\Handler\PrettyPageHandler lines 289 - 292
$plainTextHandler = new PlainTextHandler();
$plainTextHandler->setException($this->getException());
$plainTextHandler->setInspector($this->getInspector());
$vars["preface"] = "<!--\n\n\n" .  $this->templateHelper->escape($plainTextHandler->generateResponse()) . "\n\n\n\n\n\n\n\n\n\n\n-->";

Calling $plainTextHandler->setRun($this->getRun()) after initializing $plainTextHandler solves this problem

follestad commented 1 year ago

Same problem here.

marcLeeroy commented 1 year ago

same problem here

AmraniCh commented 1 year ago

Hey, thanks for opening this issue. This error will be fixed after merging this PR (#751) and releasing a new version.