Getting Blank Page After upgrading from version 5.3.23 to 5.3.27

The error log is

sudo -u www-data /usr/bin/php7.4 artisan optimize

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

Hi,

@david any thoughts?

Might be database installed on a remote server ? ? But don’t know :slight_smile:

That looks like v4 code

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.

https://github.com/invoiceninja/invoiceninja/releases/download/v5.3.28/invoiceninja.zip

Be sure to backup you .env and copy it back over when you finish copying the files.

Thanks sir, this morning I just tried it again from the browser and it successfully upgrade from 5.3.23 to v5.3.27-C62.

Sir upgradation is done but on creation or deletion of Quotes task is done with an error “500: Server .

Are there any details about the error in storage/logs

No error in storage/logs . there is only production.INFO: messages like
021-10-22 00:00:03] production.INFO: latest version = 5.3.25
[2021-10-22 00:00:03] production.INFO: updating currencies
[2021-10-22 00:00:05] production.INFO: latest version = 5.3.25
[2021-10-22 00:30:02] production.INFO: Performing Autobilling 2021-10-22 12:30:02
[2021-10-23 00:00:03] production.INFO: latest version = 5.3.25
[2021-10-23 00:00:04] production.INFO: updating currencies
[2021-10-23 00:00:05] production.INFO: latest version = 5.3.25
[2021-10-23 00:30:02] production.INFO: Performing Autobilling 2021-10-23 12:30:02
[2021-10-25 00:00:02] production.INFO: latest version = 5.3.27
[2021-10-25 00:00:03] production.INFO: updating currencies
[2021-10-25 00:00:04] production.INFO: latest version = 5.3.27
[2021-10-25 00:30:01] production.INFO: Performing Autobilling 2021-10-25 12:30:01
[2021-10-25 05:10:33] production.INFO: https://xxx/phantom/quote/FIsaBPQfhu9cCToCa3gy4yyXRFdYZKAW?phantomjs_secret=secret
[2021-10-25 05:10:59] production.INFO: https://xxx.com/phantom/quote/FIsaBPQfhu9cCToCa3gy4yyXRFdYZKAW?phantomjs_secret=secret

Sir waiting for the repository updates

It may help to upgrade to v5.3.28

No luck sir, already tried with a shared link by @david

Hello sir, It’s done by upgrading to v5.3.29-C62. Thanks

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