PHP Fatal error: Declaration of App\Exceptions\Handler::report(Exception $e) must be compatible with Illuminate\Foundation\Exceptions\Handler::report(Throwable $e) in /var/www/html/invoiceninja/app/Exceptions/Handler.php on line 46
PHP Fatal error: Uncaught ReflectionException: Class App\Exceptions\Handler does not exist in /var/www/html/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php:836
Stack trace: #0 /var/www/html/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php(836): ReflectionClass->__construct() #1 /var/www/html/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php(717): Illuminate\Container\Container->build() #2 /var/www/html/invoiceninja/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(841): Illuminate\Container\Container->resolve() #3 /var/www/html/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php(287): Illuminate\Foundation\Application->resolve() #4 /var/www/html/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php(832): Illuminate\Container\Container->Illuminate\Container{closure}() #5 /var/www/html/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php(717): Illuminate\Co in /var/www/html/invoiceninja/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 838
the web server log and the Laravel log at storage/logs/laravel.log
[2021-10-24 10:47:04] production.ERROR: Trait ‘App\Traits\GenerateMigrationResources’ not found {“exception”:"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Trait ‘App\Traits\GenerateMigrationResources’ not found at /var/www/html/invoiceninja/app/Console/Commands/ExportMigrations.php:12)
[stacktrace] #0 {main}
"}
Error On Browser when doing upgrations
FormatException: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
It looks like the self updater picked the v4 release instead of the v5 release. Whilst i’ve put a fix in for this. You’ll need to manually copy the files over from this package.
I had the same issue with 5.2.27 downloading v4 code.
The admin still worked though.
It wasn’t showing any available updates, but clicking on the I icon at the bottom of the menu and then ‘Force Update’ took me to v5.3.29-C62