Hi,
I’m working on updating 4.4.4 to 4.5.19 in preparation for updating to V5. I’ve tried the update script, but after update the web page is blank white, so I assume it’s a php error. I’m on PHP 7.1.33, at least CLI, on CentOS with NGINX. I’ve followed the instructions at https://invoice-ninja.readthedocs.io/en/latest/update.html . I did clear cache too.
Here is the output of my composer and php commands:
[root@invoiceninja ninja]# composer dump-autoload --optimize
Generating optimized autoload files
Warning: Ambiguous class resolution, "ZendService\Google\Exception\InvalidArgumentException" was found in both "/var/www/ninja/vendor/zendframework/zendservice-google-gcm/library/ZendService/Google/Exception/InvalidArgumentException.php" and "/var/www/ninja/vendor/zendframework/zendservice-google-gcm/library/Exception/InvalidArgumentException.php", the first will be used.
Warning: Ambiguous class resolution, "ZendService\Google\Exception\RuntimeException" was found in both "/var/www/ninja/vendor/zendframework/zendservice-google-gcm/library/ZendService/Google/Exception/RuntimeException.php" and "/var/www/ninja/vendor/zendframework/zendservice-google-gcm/library/Exception/RuntimeException.php", the first will be used.
Warning: Ambiguous class resolution, "ZendService\Google\Gcm\Client" was found in both "/var/www/ninja/vendor/zendframework/zendservice-google-gcm/library/ZendService/Google/Gcm/Client.php" and "/var/www/ninja/vendor/zendframework/zendservice-google-gcm/library/Gcm/Client.php", the first will be used.
Warning: Ambiguous class resolution, "ZendService\Google\Gcm\Message" was found in both "/var/www/ninja/vendor/zendframework/zendservice-google-gcm/library/ZendService/Google/Gcm/Message.php" and "/var/www/ninja/vendor/zendframework/zendservice-google-gcm/library/Gcm/Message.php", the first will be used.
Warning: Ambiguous class resolution, "ZendService\Google\Gcm\Response" was found in both "/var/www/ninja/vendor/zendframework/zendservice-google-gcm/library/ZendService/Google/Gcm/Response.php" and "/var/www/ninja/vendor/zendframework/zendservice-google-gcm/library/Gcm/Response.php", the first will be used.
Warning: Ambiguous class resolution, "Websight\GcsProvider\CloudStorageServiceProvider" was found in both "/var/www/ninja/vendor/websight/l5-google-cloud-storage/src/Websight/GcsProvider/CloudStorageServiceProvider.php" and "/var/www/ninja/vendor/websight/l5-google-cloud-storage/src/CloudStorageServiceProvider.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\SourceContext" was found in both "/var/www/ninja/vendor/google/protobuf/src/GPBMetadata/Google/Protobuf/SourceContext.php" and "/var/www/ninja/vendor/google/gax/metadata/Protobuf/SourceContext.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\Type" was found in both "/var/www/ninja/vendor/google/protobuf/src/GPBMetadata/Google/Protobuf/Type.php" and "/var/www/ninja/vendor/google/gax/metadata/Protobuf/Type.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\GPBEmpty" was found in both "/var/www/ninja/vendor/google/protobuf/src/GPBMetadata/Google/Protobuf/GPBEmpty.php" and "/var/www/ninja/vendor/google/gax/metadata/Protobuf/GPBEmpty.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\Any" was found in both "/var/www/ninja/vendor/google/protobuf/src/GPBMetadata/Google/Protobuf/Any.php" and "/var/www/ninja/vendor/google/gax/metadata/Protobuf/Any.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\Struct" was found in both "/var/www/ninja/vendor/google/protobuf/src/GPBMetadata/Google/Protobuf/Struct.php" and "/var/www/ninja/vendor/google/gax/metadata/Protobuf/Struct.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\FieldMask" was found in both "/var/www/ninja/vendor/google/protobuf/src/GPBMetadata/Google/Protobuf/FieldMask.php" and "/var/www/ninja/vendor/google/gax/metadata/Protobuf/FieldMask.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\Duration" was found in both "/var/www/ninja/vendor/google/protobuf/src/GPBMetadata/Google/Protobuf/Duration.php" and "/var/www/ninja/vendor/google/gax/metadata/Protobuf/Duration.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\Timestamp" was found in both "/var/www/ninja/vendor/google/protobuf/src/GPBMetadata/Google/Protobuf/Timestamp.php" and "/var/www/ninja/vendor/google/gax/metadata/Protobuf/Timestamp.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\Wrappers" was found in both "/var/www/ninja/vendor/google/protobuf/src/GPBMetadata/Google/Protobuf/Wrappers.php" and "/var/www/ninja/vendor/google/gax/metadata/Protobuf/Wrappers.php", the first will be used.
Warning: Ambiguous class resolution, "GPBMetadata\Google\Protobuf\Api" was found in both "/var/www/ninja/vendor/google/protobuf/src/GPBMetadata/Google/Protobuf/Api.php" and "/var/www/ninja/vendor/google/gax/metadata/Protobuf/Api.php", the first will be used.
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
Discovered Package: anahkiasen/former
Discovered Package: barryvdh/laravel-cors
Discovered Package: barryvdh/laravel-debugbar
Discovered Package: barryvdh/laravel-ide-helper
Discovered Package: intervention/image
Discovered Package: jaybizzle/laravel-crawler-detect
Discovered Package: laravel/socialite
Discovered Package: laravel/tinker
Discovered Package: laravelcollective/html
Discovered Package: maatwebsite/excel
Discovered Package: nesbot/carbon
Discovered Package: nwidart/laravel-modules
Discovered Package: pragmarx/google2fa-laravel
Discovered Package: webpatser/laravel-countries
Package manifest generated successfully.
[root@invoiceninja ninja]# php artisan optimize --force
[root@invoiceninja ninja]# php artisan migrate
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> yes
Migrating: 2018_05_14_091806_limit_notifications
Migrated: 2018_05_14_091806_limit_notifications
Migrating: 2018_05_19_095124_add_json_permissions
Migrated: 2018_05_19_095124_add_json_permissions
Migrating: 2018_06_29_110607_add_dart_format_column
Migrated: 2018_06_29_110607_add_dart_format_column
Migrating: 2018_07_26_170243_fix_payment_contact_foreign_key
Migrated: 2018_07_26_170243_fix_payment_contact_foreign_key
Migrating: 2018_10_22_084326_add_option_for_product_notes
Migrated: 2018_10_22_084326_add_option_for_product_notes
Migrating: 2019_08_27_074711_add_app_store_order_id
Migrated: 2019_08_27_074711_add_app_store_order_id
[root@invoiceninja ninja]# php artisan db:seed --class=UpdateSeeder
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> yes
Running UpdateSeeder...
Seeding: CountriesSeeder
Seeding: PaymentLibrariesSeeder
Seeding: FontsSeeder
Seeding: GatewayTypesSeeder
Seeding: BanksSeeder
Seeding: InvoiceStatusSeeder
Seeding: PaymentStatusSeeder
Seeding: CurrenciesSeeder
Seeding: DateFormatsSeeder
Seeding: InvoiceDesignsSeeder
Seeding: ProposalTemplatesSeeder
Seeding: PaymentTermsSeeder
Seeding: PaymentTypesSeeder
Seeding: LanguageSeeder
Seeding: IndustrySeeder
Seeding: FrequencySeeder
Seeding: DbServerSeeder