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

Fatal error on Windows #22

Open
ghost opened this issue Sep 11, 2017 · 2 comments
Open

Fatal error on Windows #22

ghost opened this issue Sep 11, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 11, 2017

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!

@carlos22
Copy link
Owner

You need to enable php-curl (which should be part of your windows distribution) using php.ini, see: http://php.net/manual/en/install.pecl.windows.php#install.pecl.windows.loading
The project requires (as stated in the Readme): curl, ftp, mbstring

@ghost
Copy link
Author

ghost commented Sep 12, 2017

Thank you.
I edited the php.ini-production, but it doesn't work yesterday.
After renaming the file to php.ini it works. Thanks a lot! Great work!

But the script doesn't fetch any "#" in the phone numbers.
For example:
#31#+49151 12 34 56 78 -> 31+49151 12 34 56 78
The #31# suppresses the caller ID.
Can you provide this feature?

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