carlos22 / carddav2fb Goto Github PK
View Code? Open in Web Editor NEW:notebook: A command-line PHP script allowing to import CardDAV-based VCards (e.g. from 'owncloud') to a phonebook in a AVM FRITZ!Box
License: The Unlicense
:notebook: A command-line PHP script allowing to import CardDAV-based VCards (e.g. from 'owncloud') to a phonebook in a AVM FRITZ!Box
License: The Unlicense
i'd like to use the carddav2fb in a debian 8 system, but i dont have the following php-moduls fond:
PHP-ftp
PHP-mbstring
Can i use in debian other php-modules for bring it to work?
Greatings
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
Due to a missing slash in carddav2fb.php:569 before "FRITZ" the URL to the contact image is wrong when using the usb_disk config option.
diff --git a/carddav2fb.php b/carddav2fb.php
index 86993f3..dc0b226 100644
--- a/carddav2fb.php
+++ b/carddav2fb.php
@@ -566,7 +566,7 @@ class CardDAV2FB
unlink($photo_file . ".b64");
// add contact photo to xml
- $person->addChild("imageURL", $this->config['fritzbox_path'].$this->config['usb_disk']."FRITZ/fonpix/".basename($photo_file));
+ $person->addChild("imageURL", $this->config['fritzbox_path'].$this->config['usb_disk']."/FRITZ/fonpix/".basename($photo_file));
print " Added photo: " . basename($photo_file) . PHP_EOL;
}
Side note: uploading the file works as in carddav2fb.php:634 the remote path is set correctly:
$remote_path = $this->config['usb_disk']."/FRITZ/fonpix";
Hi,
Plugin works fine for phone numbers but is it correct, that mailadresses are not extracted by the plugin?
My Caldav is an Baikal Server and my Fritzbox is 7490.
Regards
The script worked great until I updated my FritzBox to FritzOS 7.
Besides the fact that the Fritz-user now has to have "access from the internet" to establish the FTP-connection the upload of the phonebook itself failed.
Upload data to FRITZ!Box @ fritz.box
FTP-Upload '4821f.jpg'... already exists.
Uploading Phonebook XML to fritz.box
ERROR: ERROR: Login failed with an unknown response.
I am using Debian 9.8 as the system that is running the script.
My ISP is 1and1 so the FritzBox maybe has a slightly modified firmware but i dont know how much alteration they really do.
Has someone any suggestions on how to fix this or how to get more information from the message Login failed with an unknown response.
?
Thanks!
I really do not want to delve into PHP, hope you can fix this. It seems carddav2fb cannot parse
TEL;TYPE="WORK,VOICE":+49 1111111
carddav2fb fails, finds no phone number:
VCard: 'Eyes and more'
WARNING: no phone entry found. VCard will be ignored.
Added email: (home)
Looking into the nextcloud 15.0.5 mysql tables, I find lots of different variants. The one not working in this issue has been created today with nextcloud 15.0.5. Other variants found are:
DAVDROID1.TEL;TYPE=x-mobil:
davdroid1.TEL;TYPE=x-other:
TEL;TYPE=cell:
TEL;TYPE=CELL:
TEL;TYPE=cell;PREF=1:
TEL;TYPE=fax:
TEL;TYPE=FAX:
TEL;TYPE=home:
TEL;TYPE=HOME:
TEL;TYPE=home,PREF:
TEL;TYPE=home;PREF=1:
TEL;TYPE=HOME,VOICE:
TEL;TYPE="HOME,VOICE";VALUE=URI:
TEL;TYPE=OTHER:
TEL;TYPE=PREF,CELL:
TEL;TYPE=PREF\,CELL:
TEL;TYPE=PREF,HOME:
TEL;TYPE="PREF,WORK":
TEL;TYPE=PREF,WORK:
TEL;TYPE=voice:
TEL;TYPE=work:
TEL;TYPE=WORK:
TEL;TYPE="WORK,VOICE":
TEL;TYPE=WORK,VOICE:
TEL;TYPE=WORK\,VOICE:
The full unparseable entry from nextcloud 15.0.5:
BEGIN:VCARD
VERSION:3.0
PRODID:-//Sabre//Sabre VObject 4.1.6//EN
UID:a049d91d-e283-4878-a863-867094027bfc
FN:Eyes and more
ADR;TYPE=HOME:;;;Harburg;;;
EMAIL;TYPE=HOME:
TEL;TYPE="WORK,VOICE":+49 1111111
ORG:
CATEGORIES:PG
END:VCARD
carddav2fb works with this one, it finds a phone number:
BEGIN:VCARD
VERSION:3.0
VERSION:3.0
VERSION:3.0
VERSION:3.0
VERSION:3.0
PRODID:-//ownCloud//NONSGML Contacts 0.5.0.0//EN
PRODID:-//Sabre//Sabre VObject 3.4.7//EN
PRODID:-//ownCloud//NONSGML Contacts 0.4.0.0//EN
N:;Postbank;;;;;;;
UID:5926bec7-b405-4efd-b395-181702c982fa
REV:2016-01-13T13:02:18+00:00
FN:Postbank
CATEGORIES:PG
TEL;TYPE=WORK:+49 1111111111
END:VCARD
Since Fritz!OS 5.50 a user management with administrative accounts is provided instead of a box password.
Please add an option for an user password.
If you are using the country code with a plus sign, it is not transfered to the fritzbox.
solution:
private function _clear_phone_number($number) {
return preg_replace("/[^0-9+]/", "", $number);
}
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://carddav.fastmail.com/dav/addressbooks/user/xxxx/Default/ .................................................................................................................................................................................... 180 VCards retrieved.
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
WARNING: No fullname, lastname, orgname or formatted name found!
WARNING: No fullname, lastname, orgname or formatted name found!
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
WARNING: No fullname, lastname, orgname or formatted name found!
WARNING: No fullname, lastname, orgname or formatted name found!
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
WARNING: No fullname, lastname, orgname or formatted name found!
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
WARNING: No fullname, lastname, orgname or formatted name found!
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
WARNING: No fullname, lastname, orgname or formatted name found!
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
WARNING: No fullname, lastname, orgname or formatted name found!
WARNING: No fullname, lastname, orgname or formatted name found!
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
WARNING: No fullname, lastname, orgname or formatted name found!
WARNING: No fullname, lastname, orgname or formatted name found!
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
WARNING: No fullname, lastname, orgname or formatted name found!
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
WARNING: No fullname, lastname, orgname or formatted name found!
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
WARNING: No fullname, lastname, orgname or formatted name found!
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
PHP Warning: Illegal string offset 'value' in /opt/carddav2fb/lib/vCard-parser/vCard.php on line 320
Done.
Converting VCards to FritzBox XML format:
WARNING: Only VCard embedded photo data or a reference URL is currently supported.
VCard: 'UNKNOWN'
WARNING: no phone entry found. VCard will be ignored.
VCard: 'UNKNOWN'
WARNING: no phone entry found. VCard will be ignored.
VCard: 'xxx'
WARNING: Only VCard embedded photo data or a reference URL is currently supported.
[....]
Done.
Upload data to FRITZ!Box @ 192.168.x.x
Uploading Phonebook XML to 192.168.x.x
FRITZ!Box returned message: 'FRITZ!Box Telefonbuch wiederhergestellt'
Done.
root@nas:/var/www/test/carddav2fb# php carddav2fb.php
Get all entires from CardDAV server(s)... PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Notice: Undefined variable: type in /var/www/test/carddav2fb/carddav2fb.php on line 120
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Notice: Uninitialized string offset: 0 in /var/www/test/carddav2fb/carddav2fb.php on line 109
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Notice: Uninitialized string offset: 0 in /var/www/test/carddav2fb/carddav2fb.php on line 120
PHP Notice: Uninitialized string offset: 0 in /var/www/test/carddav2fb/carddav2fb.php on line 109
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Notice: Uninitialized string offset: 0 in /var/www/test/carddav2fb/carddav2fb.php on line 120
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 110
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 113
PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/test/carddav2fb/carddav2fb.php on line 116
Done.
Transform to FritzBox XML File... Done.
Upload to fritzbox at fritz.box...PHP Warning: simplexml_load_string(): Entity: line 8: parser error : Opening and ending tag mismatch: meta line 7 and head in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Warning: simplexml_load_string(): in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Warning: simplexml_load_string(): ^ in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Warning: simplexml_load_string(): Entity: line 12: parser error : Opening and ending tag mismatch: meta line 6 and html in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Warning: simplexml_load_string(): in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Warning: simplexml_load_string(): ^ in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Warning: simplexml_load_string(): Entity: line 13: parser error : Premature end of data in tag meta line 5 in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Warning: simplexml_load_string(): in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Warning: simplexml_load_string(): ^ in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Warning: simplexml_load_string(): Entity: line 13: parser error : Premature end of data in tag head line 3 in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Warning: simplexml_load_string(): in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Warning: simplexml_load_string(): ^ in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Warning: simplexml_load_string(): Entity: line 13: parser error : Premature end of data in tag html line 2 in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Warning: simplexml_load_string(): in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Warning: simplexml_load_string(): ^ in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 338
PHP Notice: Trying to get property of non-object in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 341
PHP Notice: Trying to get property of non-object in /var/www/test/carddav2fb/lib/fritzbox_api_php/lib/fritzbox_api.class.php on line 349
ERROR: ERROR: Login failed with an unknown response
Done.
FritzBox:
When i use the skript there comes a warning:
PHP Warning: ftp_close(): SSL_read on shutdown: Die Verbindung wurde vom Kommunikationspartner zurÃŒckgesetzt (104) in /usr/local/src/carddav2fb-git/carddav2fb.php on line 791
PHP-Version on Debian 9.7:
PHP 7.2.14-1+0~20190205200805.15+stretch~1.gbpd83c69 (cli) (built: Feb 5 2019 20:08:06) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.14-1+0~20190205200805.15+stretch~1.gbpd83c69, Copyright (c) 1999-2018, by Zend Technologies
I'm testing this script with the newest owncloud / nextcloud release and noticed it doesn't work for me.
PHP Notice: Undefined offset: 0 in /home/fileshare/carddav2fb/carddav2fb.php on line 181
PHP Notice: Undefined offset: 0 in /home/fileshare/carddav2fb/carddav2fb.php on line 186
The undefined offset occurs because there is no real name in the vcard, only the FN (friendly name) is set, which is not used from the script.
BEGIN:VCARD
VERSION:3.0
FN:Mike Kunze
UID:bc44600d-ff0f-4400-89b1-518e39d6a0d8
TEL;TYPE=HOME\,VOICE:06439 69 75 74
END:VCARD
The result is that we don't have a name and entries are imported like with a null value
For me I would be fixed by using $vcard_obj->fn[0]
instead of $vcard_obj->n[0]
.
I'm ready to test it and bring up a pull request, but I'm not sure, if this is really broken or it's a special case.
Did you have the N-Property in you vcard files?
Which owncloud version did you used?
I tested it in a brand new nextcloud installation with brand new contacts created inside of the contacts app.
Hello
what did i wrong? from nextcloud contact addressbock.
have a nice day
Retrieving VCards from all CardDAV server(s):
[0]: http://nextcloud.kozo.ch/remote.php/dav/addressbooks/users/vincent/Fritzphone/ PHP Fatal error: Uncaught Exception: Woops, something's gone wrong! The CardDAV server returned the http status code 401. in /root/carddav2fb/lib/CardDAV-PHP/carddav.php:349
Stack trace:
#0 /root/carddav2fb/carddav2fb.php(217): CardDavPHP\CardDavBackend->get()
#1 /root/carddav2fb/carddav2fb.php(79): CardDAV2FB->get_carddav_entries()
#2 {main}
thrown in /root/carddav2fb/lib/CardDAV-PHP/carddav.php on line 349
First thanks for the script. That I was looking for a long time. But it does not work (yet).
The converting seems to work, but then I get the message:
[...]`
Upload data to FRITZ!Box @ 192.168.1.1
PHP Warning: ftp_mkdir(): SSL read failed in D:\Tools\carddav2fb-master\carddav2fb.php on line 721
PHP Warning: ftp_mkdir(): Opening ASCII mode data connection for 'file list'. in D:\Tools\carddav2fb-master\carddav2fb.php on line 721
PHP Warning: ftp_close(): SSL write failed in D:\Tools\carddav2fb-master\carddav2fb.php on line 791
Uploading Phonebook XML to 192.168.1.1
ERROR: Response of initialization call /login_sid.lua in initSID was not xml-formatted.
I think the settings in the box and config.php are fine so. far.
FritzBox 7490, OS 6.60
Ubuntu 16.04, Owncloud 9
Script running on Win10 causes the fault above.
Running on Ubuntu, I get only the last Error with the xml formatting problem, but does not upload either. Can anyone give any hints?
Hello,
carddav2fb runs for me since six months ago.
But this time the script hangs by this message:
"Upload data to FRITZ!Box @ fritz.box"
How can I get Information whats wrong?
Thank you!
Tony
Hello,
now I get another Error-Message:
root@meinrechner:/var/www/carddav2fb# php carddav2fb.php
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]: http://gustav.duck/owncloud/remote.php/dav/addressbooks/users/tony/kontakte/ .................................................................... 68 VCards retrieved.
WARNING: No fullname, lastname, orgname or formatted name found!
WARNING: No fullname, lastname, orgname or formatted name found!
Done.
Converting VCards to FritzBox XML format:
...
VCard: 'AAAA Testkontakt'
Added phone: +4989666666 (home)
Done.
Upload data to FRITZ!Box @ fritz.duck
PHP Warning: ftp_mkdir(): /FRITZ/fonpix: File exists. in /var/www/carddav2fb/carddav2fb.php on line 721
Uploading Phonebook XML to fritz.duck
ERROR: Response of login call to /login_sid.lua in initSID was not xml-formatted.
How can I solve this?
Thank you!
Tony
Hi,
please do an automatic exchange of national prefixes (e.g. +49 Germany) to a local prefix (germany is 0) during upload to fritzbox
Thx
I suggest to add a test for duplicates and ignore them when creating the xml file. In my use case I have several data sources, thus, some entries would occur multiple times in the xml file. Modifying the code a bit I can avoid multiple entries in the Fritz.Box.
Attached is a diff file (not only including the duplicates check but also the modification suggested in the Synology forum):
Best wishes and thanks for the nice carddav2fb tool!
Norbert
@carlos22 I wanted to point you to https://github.com/andig/carddav2fb where I've created a fork of jensmaus about 6 18 months ago. The codebase has been entirely rewritten and some features added, e.g. ability to maintain quickdial and vanity numbers or pretty-printing phone numbers.
If interested I'd be happy accept PRs and act as "official" fork.
Cheers,
Andreas
Hello everyone!
We successfully used the script until a couple of weeks ago with our Fritz Box. Unfortunately it's not working anymore, new contacts are not synced.
Any idea what might causes the problem? Seems like its no longer compatible with the current PHP. Does anyone have an solution or idea?
Thank you!
makeadmin@GardeStation:/$ /bin/php /volume1/Bureau/Bureau/XX-Fest/moco2fritz/carddav2fb.php
PHP Warning: PHP Startup: ftp: Unable to initialize module
Module compiled with module API=20131226
PHP compiled with module API=20180731
These options need to match
in Unknown on line 0
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://makestudio.mocoapp.com/carddav/principal/addressbook PHP Fatal error: Uncaught Exception: Woops, something's gone wrong! The CardDAV server returned the http status code 401. in /volume1/Bureau/Bureau/XX-Fest/moco2fritz/lib/CardDAV-PHP/carddav.php:349
Stack trace:
#0 /volume1/Bureau/Bureau/XX-Fest/moco2fritz/carddav2fb.php(217): CardDavPHP\CardDavBackend->get()
#1 /volume1/Bureau/Bureau/XX-Fest/moco2fritz/carddav2fb.php(79): CardDAV2FB->get_carddav_entries()
#2 {main}
thrown in /volume1/Bureau/Bureau/XX-Fest/moco2fritz/lib/CardDAV-PHP/carddav.php on line 349
Fatal error: Uncaught Exception: Woops, something's gone wrong! The CardDAV server returned the http status code 401. in /volume1/Bureau/Bureau/XX-Fest/moco2fritz/lib/CardDAV-PHP/carddav.php:349
Stack trace:
#0 /volume1/Bureau/Bureau/XX-Fest/moco2fritz/carddav2fb.php(217): CardDavPHP\CardDavBackend->get()
#1 /volume1/Bureau/Bureau/XX-Fest/moco2fritz/carddav2fb.php(79): CardDAV2FB->get_carddav_entries()
#2 {main}
thrown in /volume1/Bureau/Bureau/XX-Fest/moco2fritz/lib/CardDAV-PHP/carddav.php on line 349
is there a way to adress more than one adress book inside the fb,
so I could import carddav contacts from account one to phonebook one
and carddav contacts from account two to phonebook two ?
best regards
froschl
Hello!
I get this error:
Retrieving VCards from all CardDAV server(s):
[0]: https://xyzabcd.iwillhide.myserveraddress.com
Fatal error: Uncaught Error: Call to undefined function CardDavPHP\curl_init() in C:\path\to\carddav2fb\lib\CardDAV-PHP\carddav.php:647
Stack trace:
#0 C:\path\to\carddav2fb\lib\CardDAV-PHP\carddav.php(679): CardDavPHP\CardDavBackend->curlInit()
#1 C:\path\to\carddav2fb\lib\CardDAV-PHP\carddav.php(328): CardDavPHP\CardDavBackend->query('https://xyzabcd...', 'PROPFIND')
#2 C:\path\to\carddav2fb\carddav2fb.php(217): CardDavPHP\CardDavBackend->get()
#3 C:\path\to\carddav2fb\carddav2fb.php(79): CardDAV2FB->get_carddav_entries()
#4 {main}
thrown in C:\path\to\carddav2fb\lib\CardDAV-PHP\carddav.php on line 647
May you help me? And tell me what to do in order to get this nice script working?
Thanks a lot!
The fotos of a contact are not taken into account so far.
I fixed this by creating an image and storing it onto the FB.
I had to create a symbolic link between the webserver running this script and the flashdisk of the FRITZ.NAS.
If somebody is interested, I am willing to share.
There is a bug in the vCard parser, if the fotos are created with the OS X Addressbook.
Hi there,
I have a error during upload of the xml file:
Upload data to FRITZ!Box @ 192.168.178.1
FTP-Upload 'Christophel_Petra_cd6cb.jpg'... already exists.
FTP-Upload 'Ramser_Jessica_25c88.jpg'... already exists.
Uploading Phonebook XML to 192.168.178.1
ERROR: ERROR: Login failed with an unknown response.
my config.php:
$config['fritzbox_ip'] = '192.168.178.1';
$config['fritzbox_ip_ftp'] = '192.168.178.1';
// user name/password to access Fritz!Box
$config['fritzbox_user'] = 'user';
$config['fritzbox_pw'] = 'pw';
$config['fritzbox_force_local_login'] = true;
// number of the internal phone book and its name
// 0 - main phone book
// 1..n - additional phone books
$config['phonebook_number'] = '0';
$config['phonebook_name'] = 'Telefonbuch';
Hello,
please excuse my bad english. But I am not a native speaker.
First thank you, for your super idee for this script.
I Installed it on my ubuntu 16.04 server. But If I start it i get this error message:
root@meinserver:/var/www/carddav2fb# php carddav2fb.php
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]: http://meinserver.duck/owncloud/remote.php/dav/addressbooks/users/tony/kontakte/ .................................................................... 68 VCards retrieved.
WARNING: No fullname, lastname, orgname or formatted name found!
WARNING: No fullname, lastname, orgname or formatted name found!
Done.
Converting VCards to FritzBox XML format:
....
WARNING: no phone entry found. VCard will be ignored.
VCard: 'AAAA Testkontakt'
Added phone: +4989666666 (home)
Done.
Upload data to FRITZ!Box @ fritz.duch
Uploading Phonebook XML to fritz.duch
PHP Warning: simplexml_load_string(): Entity: line 1: parser error : Space required after the Public Identifier in /var/www/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): in /var/www/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): ^ in /var/www/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): Entity: line 1: parser error : SystemLiteral " or ' expected in /var/www/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): in /var/www/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): ^ in /var/www/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): Entity: line 1: parser error : SYSTEM or PUBLIC, the URI is missing in /var/www/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): in /var/www/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): ^ in /var/www/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
ERROR: Response of initialization call /login_sid.lua in initSID was not xml-formatted.
What does it mean?
Thank you!
Tony
Hi,
unfortunately I cannot upload my contacts from owncloud to fb. I get always this message:
Uploading Phonebook XML to MY_IP
PHP Warning: simplexml_load_string(): Entity: line 13: parser error : Opening and ending tag mismatch: meta line 4 and head in /home/admin/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): </head><body id="%c"> in /home/admin/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): ^ in /home/admin/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): Entity: line 34: parser error : Opening and ending tag mismatch: hr line 18 and body in /home/admin/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): </body></html> in /home/admin/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): ^ in /home/admin/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): Entity: line 34: parser error : Opening and ending tag mismatch: body line 13 and html in /home/admin/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): </body></html> in /home/admin/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): ^ in /home/admin/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): Entity: line 35: parser error : Premature end of data in tag meta line 3 in /home/admin/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): Entity: line 35: parser error : Premature end of data in tag head line 2 in /home/admin/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
PHP Warning: simplexml_load_string(): Entity: line 35: parser error : Premature end of data in tag html line 2 in /home/admin/carddav2fb/lib/fritzbox_api_php/fritzbox_api.class.php on line 340
ERROR: Response of initialization call /login_sid.lua in initSID was not xml-formatted.
I've substituted the IP in this message.
All messages before a OK, means the VCards have been read and the ftp uploads run without errors. Is this a failure of your code or what maybe the reason for this message?
Thanksand kind regards,
Michael
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.