YunoHost-Apps / roundcube_ynh

Roundcube package for YunoHost
https://roundcube.net/
GNU Affero General Public License v3.0
11 stars 22 forks source link

Problem with cardav after an upgrade #178

Open Jojo144 opened 1 year ago

Jojo144 commented 1 year ago

Hi,

After a migration to Yunohost 11, the roundcube interface was broken:

image

In /var/www/roundcube/logs/errors.log I have:

Uncaught Error: Class 'Httpful\Bootstrap' not found in /var/www/roundcube/plugins/carddav/carddav_common.php:25

Commenting cardav in the section installed plugins of /var/www/roundcube/config/config.inc.php makes the error disapear.

Exactly the same problem was described here (but without understanding the origin of the problem): https://forum.yunohost.org/t/interface-web-roundcube-cassee-apres-migration-11/20898

Context

Logs

Upgrade the 'roundcube' app: https://paste.yunohost.org/raw/casuzifowa

navanchauhan commented 4 months ago

I fixed this issue by upgrading the carddav plugin to the latest version.

Before you do this you need to logout from YunoHost. (Another option is to disable the plugin by removing it from the list of plugins in /var/www/roundcube/config/config.inc.php and then logging out from the webmail, performing the below commands and then re-adding the plugin to the list)

sudo su
cd /var/www/roundcube
sudo -u roundcube php8.1 composer.phar require --update-no-dev -o "roundcube/carddav:*"

You will also need to update /var/www/roundcube/plugins/carddav/config.inc.php and change 'name' to 'accountname' and 'url' to 'discovery_url'