Warning during recent update to v5.10.43

Version 5.10.43

Environment

Ubuntu 24.04 VM, tarball install

Checklist

  • Can you replicate the issue on our v5 demo site https://demo.invoiceninja.com or Invoice Ninja? No. This relates to self hosted updating. I have not tried.
  • Have you searched existing issues? Yes
  • Have you inspected the logs in storage/logs/laravel.log for any errors? Yes, there are no recent errors listed there.

Describe the bug

Earlier today I updated to v5.10.43. Upon running www-data composer install I am given the following warning:

Warning: Ambiguous class resolution, "Carbon\Doctrine\DateTimeImmutableType" was found in both "/var/www/invoiceninja/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeImmutableType.php" and "/var/www/invoiceninja/vendor/nesbot/carbon/src/Carbon/Doctrine/DateTimeImmutableType.php", the first will be used.
Warning: Ambiguous class resolution, "Carbon\Doctrine\DateTimeType" was found in both "/var/www/invoiceninja/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeType.php" and "/var/www/invoiceninja/vendor/nesbot/carbon/src/Carbon/Doctrine/DateTimeType.php", the first will be used.
Warning: Ambiguous class resolution, "Carbon\Doctrine\CarbonDoctrineType" was found in both "/var/www/invoiceninja/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonDoctrineType.php" and "/var/www/invoiceninja/vendor/nesbot/carbon/src/Carbon/Doctrine/CarbonDoctrineType.php", the first will be used.
Warning: Ambiguous class resolution, "Carbon\Doctrine\CarbonTypeConverter" was found in both "/var/www/invoiceninja/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonTypeConverter.php" and "/var/www/invoiceninja/vendor/nesbot/carbon/src/Carbon/Doctrine/CarbonTypeConverter.php", the first will be used.
Warning: Ambiguous class resolution, "Carbon\Doctrine\DateTimeDefaultPrecision" was found in both "/var/www/invoiceninja/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeDefaultPrecision.php" and "/var/www/invoiceninja/vendor/nesbot/carbon/src/Carbon/Doctrine/DateTimeDefaultPrecision.php", the first will be used.
Warning: Ambiguous class resolution, "Carbon\Doctrine\CarbonType" was found in both "/var/www/invoiceninja/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonType.php" and "/var/www/invoiceninja/vendor/nesbot/carbon/src/Carbon/Doctrine/CarbonType.php", the first will be used.
Warning: Ambiguous class resolution, "Carbon\Doctrine\CarbonImmutableType" was found in both "/var/www/invoiceninja/vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonImmutableType.php" and "/var/www/invoiceninja/vendor/nesbot/carbon/src/Carbon/Doctrine/CarbonImmutableType.php", the first will be used.
Class Tests\Unit\Requests\EInvoice\Peppol\AddTaxIdentifierRequestTest located in ./tests/Feature/EInvoice/Validation/AddTaxIdentifierRequestTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Tests\Unit\TimeZoneTest located in ./tests/Unit/TimezoneTest.php does not comply with psr-4 autoloading standard. Skipping.
Class CleverIt\UBL\Invoice\Codes\V21\PaymentCode located in ./vendor/invoiceninja/ubl_invoice/src/Codes/V21/PaymeanMeansCode.php does not comply with psr-4 autoloading standard. Skipping.

Steps To Reproduce

  1. Download tarball for v5.10.43
  2. Unzip it to InvoiceNinja directory
  3. Run -u www-data composer install

Expected Behavior

No warning should be presented.

Additional context

Here is the very odd occurrence. I initially performed the update on my production server for my business and got the warning above. I also have two test VMs running InvoiceNinja to try duplicating errors when assisting other users here on the forum. One is a VM of Ubuntu 22.04 and the other is another VM with Ubuntu 24.04. Running the update on the two test VMs did not produce the warning.

Logs

There are no errors in my laravel.log file.

Any idea what went on? Yes, I have reported this on GitHub.

Hi,

I found this post where the user saw the same error, I suggest downloading the latest tar file and copying it over.

And one more post I found in case it’s helpful…

Hi @hillel - As you see in my original, this is the latest tarball from version 5.10.43 that was only released about 6 hours ago. There are no newer releases on GitHub. As noted in my original post, I did search the forum and did not find any relevant or related topics. It is the first thing I do, I have been helping you out when I am able, so I know this is one of the first things you recommend. :sweat_smile:

The first link is for someone using v4 legacy. Not to mention, I am not having any issues with PDF generation. The second link is also irrelevant. I do not have problems logging in or using my instance. I saw both of those when searching and they are not related to what I’ve seen. I also cannot duplicate it on my test VMs.