Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tonyblue2 opened this issue Feb 13, 2023 · 0 comments
Open

Comments

@tonyblue2
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant