# Carddav pour roundcube

**URL:** <https://www.debian-fr.org/t/carddav-pour-roundcube/79392>\
**Category:** Support Debian\
**Created:** [Juin 5, 2019, 1:17 UTC](https://www.debian-fr.org/t/carddav-pour-roundcube/79392 "2019-06-05T13:17:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FredMa01](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/f/278dde/32.png) [@FredMa01](https://www.debian-fr.org/u/FredMa01)\
**Post date:** [Juin 5, 2019, 1:17 UTC](https://www.debian-fr.org/t/carddav-pour-roundcube/79392/1 "2019-06-05T13:17:24Z")

</div>

Bonjour,

C’est surprenant que carddav ne fasse pas partie des plugins dans le package Debian roundcube-plugins. C’est quand même pratique de pouvoir synchroniser ses carnets d’adresses avec nextcloud, thunderbird…  
Du coup, j’ai tenté une installation via composer comment indiqué ici :  
[https://plugins.roundcube.net/packages/roundcube/carddav](https://plugins.roundcube.net/packages/roundcube/carddav)  
mais j’ai l’erreur suivante et le webmail roundcube affiche page blanche…

> ```
> PHP Fatal error: Uncaught Error: Class 'Httpful\Bootstrap' not found in /usr/share/roundcube/plugins/carddav/carddav_common.php:25
> Stack trace:
> #0 /usr/share/roundcube/plugins/carddav/carddav_backend.php(22): require_once()
> #1 /usr/share/roundcube/plugins/carddav/carddav.php(122): require_once('/usr/share/roun...')
> #2 /usr/share/roundcube/program/lib/Roundcube/rcube_plugin_api.php(99): carddav-&gt;init()
> #3 /usr/share/roundcube/program/include/rcmail.php(135): rcube_plugin_api-&gt;init(Object(rcmail), 'mail')
> #4 /usr/share/roundcube/program/include/rcmail.php(79): rcmail-&gt;startup()
> #5 /usr/share/roundcube/index.php(43): rcmail::get_instance(0, NULL)
> #6 {main}
> thrown in /usr/share/roundcube/plugins/carddav/carddav_common.php on line 25
> 
> ```

J’ai tenté un message ici mais pas de réponse :

> <https://github.com/mstilkerich/rcmcarddav/issues/260>
>
> I have RCM 1.3.8 on apache 2.4 / php 7.2 ( opensuse leap 15 ).
> after installing… carddav 3.0.3.tar.gz ( about 700kB), setting up ownership and adding carddav into $plugins .. I get white page if try load roundcube. Firefox's devtool show me 500 internal server error occurs. Server is my own. 
> 
> Rouncube log 
> PHP Fatal error: Uncaught Error: Class 'Httpful\\Bootstrap' not found in /xxxx/roundcubemail-1.3.8/plugins/carddav/carddav\_common.php:25
> I search some solution, but nothing helps me. 
> 'Library' Httpfull is present in oundcubemail-1.3.8/plugins/carddav/vendor/nategood .... 
>  
> Disabling carddav via $plugins variable RCM works again.
> 
> I also try install it via composer, but I'm not familiar with this way ... I not found \` composer.json\` and \`composer.phar\` ( as you wrote in install instruction ). ... ough ... these files present in carddav tarball .... Must I use these files ?

Quelqu’un a déjà tenté cette install de carddav sur roundcube sur Debian ?

Merci  
Fred  
RCM 1.2.3 on Debian 9. PHP 7.0.33 an Apache 2.4.25

---

<div class="post-metadata">

**Author:** ![FredMa01](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/f/278dde/32.png) [@FredMa01](https://www.debian-fr.org/u/FredMa01)\
**Post date:** [Juin 9, 2019, 5:51 UTC](https://www.debian-fr.org/t/carddav-pour-roundcube/79392/2 "2019-06-09T17:51:17Z")

</div>

D’après : [https://www.benhup.com/freebsd/carddav-support-in-roundcube-webmail-with-nextcloud-back-end/](https://www.benhup.com/freebsd/carddav-support-in-roundcube-webmail-with-nextcloud-back-end/), il faut passer par les archives…  
[https://github.com/blind-coder/rcmcarddav/releases/](https://github.com/blind-coder/rcmcarddav/releases/)  
J’ai donc fait :  
cd /usr/share/roundcube/plugins/ :  
wget [https://github.com/blind-coder/rcmcarddav/releases/download/v3.0.3/carddav-3.0.3.tar.bz2](https://github.com/blind-coder/rcmcarddav/releases/download/v3.0.3/carddav-3.0.3.tar.bz2)  
puis tar xjf carddav-3.0.3.tar.bz2  
J’ai bien le répertoire et les fichiers dans /usr/share/roundcube/plugins/carddav  
J’ai ensuite créé le fichier de config /etc/roundcube/plugins/carddav/config.inc.php :  
cp -p /usr/share/roundcube/plugins/carddav/config.inc.php.dist /etc/roundcube/plugins/carddav/config.inc.php.dist  
Enfin, j’ai ajouté dans /etc/roundcube/config.inc.php le nom du répertoire du plugin ‘carddav’ dans $config[‘plugins’].  
Tout fonctionne !  
Merci !  
Fred  
Fred

---

<div class="post-metadata">

**Author:** ![anon44391915](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/a/958977/32.png) [@anon44391915](https://www.debian-fr.org/u/anon44391915)\
**Post date:** [Juin 9, 2019, 9:48 UTC](https://www.debian-fr.org/t/carddav-pour-roundcube/79392/3 "2019-06-09T21:48:25Z")

</div>

Salut **[FredMa01](https://www.debian-fr.org/u/FredMa01)**

> [@FredMa01](#):
>
> PHP Error: Failed to load plugin file /var/lib/roundcube/plugins/roundcube/roundcube.php in /usr/share/roundcube/program/lib/Roundcube/rcube\_plugin\_api.php on line 173  
> Le fichier /var/lib/roundcube/plugins/roundcube/roundcube.php n’existe pas !!

À la ligne 173 de /usr/share/roundcube/program/lib/Roundcube/rcube\_plugin\_api.php  
il y a un appel à /var/lib/roundcube/plugins/roundcube/roundcube.php  
qui n’existe pas, donc « Failed to load »

Où est donc ce `plugins/roundcube/roundcube.php` ?

---

<div class="post-metadata">

**Author:** ![FredMa01](https://www.debian-fr.org/letter_avatar_proxy/v4/letter/f/278dde/32.png) [@FredMa01](https://www.debian-fr.org/u/FredMa01)\
**Post date:** [Juin 9, 2019, 10:14 UTC](https://www.debian-fr.org/t/carddav-pour-roundcube/79392/4 "2019-06-09T22:14:25Z")

</div>

Euh ça c’est parce que j’avais par erreur ajouté roundcube dans $config[‘plugins’] du /etc/roundcube/config.inc.php … Ce qui n’avait pas de sens…

Fred
