jeudi 12 juillet 2018

Laravel FatalErrorException but code seems ok

I'm dealing with laravel 5.0 throwing a FatalErrorException with no useful description.

We have a web app developed in laravel 5.0, with a small part in angularJS, and I work on an macbook air 2015.

A branch of the git project doesn't seem to work on my machine, although the other branches work just fine, and there's been no changes in configuration and no big changes in the code either. Also, it works on my colleague's machine.

Here's the returned error message:

local.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: 
Uncaught TypeError: Argument 1 passed to App\Exceptions\Handler::report() must be an instance of Exception, 
instance of ParseError given, called in Applications/XAMPP/htdocs/myApp/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php on line 73 and defined in /Applications/XAMPP/htdocs/myApp/app/Exceptions/Handler.php:36

I'm used at seeing this type of generic message whenever I forget an import, but this doesn't seem to be case. I suspect I'm missing something in the configuration.

The error occurs on every page but the login page and the part in angular.

As soon as I log in and I get redirected to the homepage it crashes.

Any help would be appreciated.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire