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

Response of initialization call /login_sid.lua in initSID was not xml-formatted. #18

Open
staehler opened this issue Mar 2, 2017 · 3 comments

Comments

@staehler
Copy link

staehler commented Mar 2, 2017

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

@staehler
Copy link
Author

staehler commented Mar 6, 2017

Does anybody has an idea, how to get rid of this error, as the sync between fritzbox and my owncloud doesn't work anymore.

@DummerJunge
Copy link

Hello, this happens to me if I use IP and not names:

WORKS:
$config['fritzbox_ip'] = 'fritz.box';
$config['fritzbox_ip_ftp'] = 'fritz.box';

DOES NOT WORK:
$config['fritzbox_ip'] = '192.168.10.1';
$config['fritzbox_ip_ftp'] = '192.168.10.1';

@mrmadcow
Copy link

Same problem here. For me this happened due to an SSL certificate error in the fritz API.

As a quick fix I included
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);

into the tree functions doPostForm, doPostFile and doGetPage ( lib/fritzbox_api_php/fritzbox_api.class.php ). It would have to be fixed upstream though. There is already some disabling of SSL verification going on based on the setting of config->getItem('enable_remote_config').

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

3 participants