Monday, September 2, 2019

Laravel 4 php 7 Uncaught TypeError: Argument 1 passed to Illuminate\Exception\WhoopsDisplayer::display()

after upgrade php from 5 to 7, in laravel 4 there were problems with display of exceptions and errors.
Need to make such fixes in code laravel files:

Add this to Illuminate\Exception\Handle

inside method

public function handleException($exception)
{
if ( ! $exception instanceof Exception) { $exception = new ErrorException( $exception->getMessage(), $exception->getCode(), E_ERROR, $exception->getFile(), $exception->getLine() ); }

/////// original code here
}

Restore xampp database from backup

steps: stop mysql xampp 1 - create some backup folder "data_1"  2 - from your current xampp/mysql/data folder move core folders an...