carddav2fb icon indicating copy to clipboard operation
carddav2fb copied to clipboard

upgrading from Ubuntu 20.04 to 22.04 (PHP 7.4 to 8.1.) - error messages

Open tonyblue2 opened this issue 2 years ago • 0 comments

Hello,

carddav2fb has been running successfully for me on an Ubuntu 20.04 LXC container for several years.

Since upgrading from Ubuntu 20.04 to 22.04 I only get error messages.

I suspect this is due to the move from PHP 7.4 to 8.1.

`/var/www/carddav2fb# php carddav2fb.php PHP Deprecated: Return type of vCard::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/carddav2fb/lib/vCard-parser/vCard.php on line 649 PHP Deprecated: Return type of vCard::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/carddav2fb/lib/vCard-parser/vCard.php on line 672 PHP Deprecated: Return type of vCard::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/carddav2fb/lib/vCard-parser/vCard.php on line 677 PHP Deprecated: Return type of vCard::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/carddav2fb/lib/vCard-parser/vCard.php on line 687 PHP Deprecated: Return type of vCard::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/carddav2fb/lib/vCard-parser/vCard.php on line 682 PHP Deprecated: Return type of vCard::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/carddav2fb/lib/vCard-parser/vCard.php on line 667 carddav2fb.php 1.11 (2016-05-12) - CardDAV to FRITZ!Box phonebook conversion tool Copyright (c) 2012-2016 Karl Glatz, Martin Rost, Jens Maus, Johannes Freiburger

Retrieving VCards from all CardDAV server(s): [0]: https://firstcloud.ddnss.de/remote.php/dav/addressbooks/users/testuser/kontakte/ PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 631 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 632 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 633 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 634 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 579 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 364 .PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 586 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 579 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 364 .PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 586 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 579 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 364 .PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 586 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 579 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 364 .PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 586 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 579 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 364 .PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 586 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 579 PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/carddav2fb/lib/CardDAV-PHP/carddav.php on line 364 --snip---

root@carddav2fb:/var/www/carddav2fb# php -v PHP 8.1.2-1ubuntu2.10 (cli) (built: Jan 16 2023 15:19:49) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.2, Copyright (c) Zend Technologies with Zend OPcache v8.1.2-1ubuntu2.10, Copyright (c), by Zend Technologies `

Can this be repaired somehow?

Thanks very much!

tony

tonyblue2 avatar Feb 13 '23 21:02 tonyblue2