[GH-ISSUE #640] CardDAV contacts module does not work #428

Closed
opened 2026-02-25 21:35:00 +03:00 by kerem · 13 comments
Owner

Originally created by @robert-winkler on GitHub (Oct 15, 2022).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/640

Hi, I installed the Cypht master of 2022/10/13 on an Ubuntu 20.04 LTS web server.
I would like to use my 1,000+ CardDAV contacts that are hosted on a different NextCloud server.
Thus, I

  • enabled the modules 'contacts' and 'contacts_carddav' in the hm3.ini
  • copied the carddav.ini to the app_data directory, renamed the [Personal] to [CardDAV NextCloud] and added http of my CardDAV server (the exact address, without port, works e.g. with vdirsyncer).
  • run PHP ./scripts/config-gen.php
  • login to Cypht.
  • in contacts, I can see the error: "No contact backends are enabled!
    At least one backend must be enabled in the hm3.ini file to use contacts.", However, I have the option to add contacts to the [Contacts NextCloud]
  • In Settings, I found the section CardDAV; added username and password, save the settings and site settings, log out and log in; same symptoms.

I have the impression, there are 2 different problems:

  • The check for a valid backend fails, if there is no local, LDAP or Gmail backend (CardDAV is not in the checked backends?)
  • The connection to the CardDAV server fails. Is there any way to find out the reason (http or user validation)?
Originally created by @robert-winkler on GitHub (Oct 15, 2022). Original GitHub issue: https://github.com/cypht-org/cypht/issues/640 Hi, I installed the Cypht master of 2022/10/13 on an Ubuntu 20.04 LTS web server. I would like to use my 1,000+ CardDAV contacts that are hosted on a different NextCloud server. Thus, I - enabled the modules 'contacts' and 'contacts_carddav' in the hm3.ini - copied the carddav.ini to the app_data directory, renamed the [Personal] to [CardDAV NextCloud] and added http of my CardDAV server (the exact address, without port, works e.g. with vdirsyncer). - run PHP ./scripts/config-gen.php - login to Cypht. - in contacts, I can see the error: "No contact backends are enabled! At least one backend must be enabled in the hm3.ini file to use contacts.", However, I have the option to add contacts to the [Contacts NextCloud] - In Settings, I found the section CardDAV; added username and password, save the settings and site settings, log out and log in; same symptoms. I have the impression, there are 2 different problems: - The check for a valid backend fails, if there is no local, LDAP or Gmail backend (CardDAV is not in the checked backends?) - The connection to the CardDAV server fails. Is there any way to find out the reason (http or user validation)?
kerem closed this issue 2026-02-25 21:35:00 +03:00
Author
Owner

@marclaporte commented on GitHub (Oct 22, 2022):

Related: https://github.com/jasonmunro/cypht/issues/120

<!-- gh-comment-id:1287949128 --> @marclaporte commented on GitHub (Oct 22, 2022): Related: https://github.com/jasonmunro/cypht/issues/120
Author
Owner

@marclaporte commented on GitHub (Nov 3, 2022):

Related discussion: https://gitter.im/cypht-org/community?at=636403d45b0dbc04b8b41123

<!-- gh-comment-id:1302715284 --> @marclaporte commented on GitHub (Nov 3, 2022): Related discussion: https://gitter.im/cypht-org/community?at=636403d45b0dbc04b8b41123
Author
Owner

@marclaporte commented on GitHub (Dec 15, 2022):

@ElvisAns will work on this.

<!-- gh-comment-id:1353728991 --> @marclaporte commented on GitHub (Dec 15, 2022): @ElvisAns will work on this.
Author
Owner

@ElvisAns commented on GitHub (Jan 19, 2023):

I'm working on it.

Hope we fix it soon. Stay tuned!

The original thread about the integration : https://github.com/jasonmunro/cypht/issues/120

<!-- gh-comment-id:1397605529 --> @ElvisAns commented on GitHub (Jan 19, 2023): I'm working on it. Hope we fix it soon. Stay tuned! The original thread about the integration : https://github.com/jasonmunro/cypht/issues/120
Author
Owner

@marclaporte commented on GitHub (Feb 18, 2023):

@robert-winkler Please test

<!-- gh-comment-id:1435658118 --> @marclaporte commented on GitHub (Feb 18, 2023): @robert-winkler Please test
Author
Owner

@ElvisAns commented on GitHub (Feb 18, 2023):

Please see the following video : https://app.flonnect.com/view/video/ansimapersic/Flonnect_2023-02-18_173c3c94-4107-4c30-9d9d-6a5c9a3b208e

<!-- gh-comment-id:1435660861 --> @ElvisAns commented on GitHub (Feb 18, 2023): Please see the following video : https://app.flonnect.com/view/video/ansimapersic/Flonnect_2023-02-18_173c3c94-4107-4c30-9d9d-6a5c9a3b208e
Author
Owner

@robert-winkler commented on GitHub (Feb 21, 2023):

Dear @ElvisAns and @marclaporte, I watched the video twice, but it only shows the client side (the user's web interface). What do I need to do on the server? Changing any .PHP files; install a new version of Cypht? How do I have to configure the CardDAV connection?

<!-- gh-comment-id:1439160969 --> @robert-winkler commented on GitHub (Feb 21, 2023): Dear @ElvisAns and @marclaporte, I watched the video twice, but it only shows the client side (the user's web interface). What do I need to do on the server? Changing any .PHP files; install a new version of Cypht? How do I have to configure the CardDAV connection?
Author
Owner

@marclaporte commented on GitHub (Feb 25, 2023):

@robert-winkler Please change PHP files as per https://github.com/jasonmunro/cypht/pull/674/files

<!-- gh-comment-id:1445189843 --> @marclaporte commented on GitHub (Feb 25, 2023): @robert-winkler Please change PHP files as per https://github.com/jasonmunro/cypht/pull/674/files
Author
Owner

@robert-winkler commented on GitHub (Feb 28, 2023):

Dear @marclaporte and @ElvisAns:
Yes, with the modified PHP I can see my NextCloud CardDAV server.

carddav

I still got two problems:

  1. How do I authenticate to my server?

I added to the carddav.ini:

server="https://server.org/...contacts/"
user="Robert"
pass="A very long password"
  1. Cypht complains about a missing contacts module.

But my hm3.ini contains:

modules[]=contacts
modules[]=carddav_contacts

of course, I could uncomment the local_contacts, but just carddav_contacts should be sufficient.

<!-- gh-comment-id:1448855980 --> @robert-winkler commented on GitHub (Feb 28, 2023): Dear @marclaporte and @ElvisAns: Yes, with the modified PHP I can see my NextCloud CardDAV server. ![carddav](https://user-images.githubusercontent.com/9994605/221969291-07fbdfef-5d14-4c04-940a-718b50e1bb2e.png) I still got two problems: 1) How do I authenticate to my server? I added to the `carddav.ini`: ~~~ server="https://server.org/...contacts/" user="Robert" pass="A very long password" ~~~ 2) Cypht complains about a missing contacts module. But my `hm3.ini` contains: ~~~ modules[]=contacts modules[]=carddav_contacts ~~~ of course, I could uncomment the local_contacts, but just carddav_contacts should be sufficient.
Author
Owner

@ElvisAns commented on GitHub (Mar 1, 2023):

@robert-winkler it's still complaining because your enabled contact backend is not yet authenticated.

<!-- gh-comment-id:1449434766 --> @ElvisAns commented on GitHub (Mar 1, 2023): @robert-winkler it's still complaining because your enabled contact backend is not yet authenticated.
Author
Owner

@ElvisAns commented on GitHub (Mar 1, 2023):

Go to Site Settings and then put your username / password under the Carddav Adressbooks section and hit save.
Dont forget to read https://github.com/jasonmunro/cypht/pull/674#issue-1590316401

<!-- gh-comment-id:1449437314 --> @ElvisAns commented on GitHub (Mar 1, 2023): Go to Site Settings and then put your username / password under the `Carddav Adressbooks` section and hit save. Dont forget to read https://github.com/jasonmunro/cypht/pull/674#issue-1590316401
Author
Owner

@robert-winkler commented on GitHub (Mar 1, 2023):

Thanks for the quick reply, @ElvisAns!

I added my credentials and now the error disappeared. We are getting closer.
However, I still cannot see/ add/ edit my NextCloud contacts.
In the carddav.ini I put the server link. Is there any port needed (in other programs, the CardDAV connection works with this location.)
Any idea what I might have forgotten?

<!-- gh-comment-id:1450842745 --> @robert-winkler commented on GitHub (Mar 1, 2023): Thanks for the quick reply, @ElvisAns! I added my credentials and now the error disappeared. We are getting closer. However, I still cannot see/ add/ edit my NextCloud contacts. In the carddav.ini I put the server link. Is there any port needed (in other programs, the CardDAV connection works with this location.) Any idea what I might have forgotten?
Author
Owner

@ElvisAns commented on GitHub (Mar 1, 2023):

You are much welcome Dear @robert-winkler
Now I think there is an issue with the NextCloud configuration.
The port is not necessary unless NextCloud recommend some

<!-- gh-comment-id:1450863640 --> @ElvisAns commented on GitHub (Mar 1, 2023): You are much welcome Dear @robert-winkler Now I think there is an issue with the NextCloud configuration. The port is not necessary unless NextCloud recommend some
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#428
No description provided.