jens-maus / carddav2fb

:notebook: A command-line PHP script allowing to import CardDAV-based VCards (e.g. from 'owncloud') to a phonebook in a AVM FRITZ!Box
The Unlicense
28 stars 19 forks source link

not working on boxes without FTP server #5

Closed mokkin closed 8 years ago

mokkin commented 9 years ago

I tried to upload an addressbook to my 7312 at home, but it failed. Probably it will fail on all simple boxes without FTP server like 7312, 7412, 7112, 7113. On my office box 7390 it works fine copying the pictures to the attached USB device.

$config['usb_disk'] = '';
...
PHP Warning:  ftp_close() expects parameter 1 to be resource, boolean given in /var/www/carddav2fb/carddav2fb2.php on line 474
 Uploading Phonebook XML
  ERROR: Response of initialization call /login_sid.lua in initSID was not xml-formatted.
Done.
mecks52 commented 9 years ago

I think there are two "issues", the box has no ftp to store the pictures is one but the line

ERROR: Response of initialization call /login_sid.lua in initSID was not xml-formatted.

shows up after the ftp part of the script has already finished. If it's the main issue that you can't upload the phonebook, it seems to have an other root cause and nothing to do with the missing ftp-functionality.

mokkin commented 9 years ago

I'm watching the same behavior with a 7270. Both, the 7312 and this 7270 are connected via VPN. Maybe this is part of the problem.

jens-maus commented 8 years ago

The FTP issue has been already "solved" by having added some warning/error output. The other issue "initSID" error is however a duplicate of #15 and discussed there instead.