Author Topic: Calendar import  (Read 3005 times)

Offline Mailman

  • Jr. Member
  • **
  • Posts: 11
Calendar import
« on: June 05, 2020, 04:17:39 PM »
Hi,

I'm trying to import an .ics file, exported from Google, and it hasn't been very succesful. The system is based on RC 1.4.5 with the latest kolab calendar https://git.kolab.org/diffusion/RPK/ plugins, on Ubuntu 18.04.

Does the import function work at all?

The log shows the following:
Code: [Select]
[05-Jun-2020 19:26:04 +0200]: <g52uk879> PHP Error: Starting sabre/vobject 4.0 the children property is now protected. You should use the children() method instead in
BEGIN:VEVENT
DTSTART:20200605T160000Z
DTEND:20200605T163000Z
DTSTAMP:20200605T153212Z
UID:16qc8adfhnvvs5n3f97pliccbm@google.com
CREATED:20200605T152445Z
DESCRIPTION:
LAST-MODIFIED:20200605T152446Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:TEST afspraak
TRANSP:OPAQUE
END:VEVENT
 in /var/www/roundcubemail/plugins/libcalendaring/libvcalendar.php on line 256 (POST /?_task=calendar&_id=&_uploadid=1591377964040&_from=&_action=import_events)
[05-Jun-2020 19:27:50 +0200]: <g52uk879> PHP Error: Error loading template for calendar.calendar in /var/www/roundcubemail/program/include/rcmail_output_html.php on line 757 (GET /?_task=calendar)

Offline alec

  • Hero Member
  • *****
  • Posts: 1,363
Re: Calendar import
« Reply #1 on: June 07, 2020, 01:45:55 AM »
libcalendaring plugin which is calendar's dependency requires sabre/vobject 3.5.x

Offline Mailman

  • Jr. Member
  • **
  • Posts: 11
Re: Calendar import
« Reply #2 on: June 12, 2020, 12:34:44 AM »
Thanks for your reply, apologies for my late reply, I forgot to activate notifications on new replies. Anyhow, as suggested, I updated libcalendaring with the following line:
Code: [Select]
sudo -u www-data composer require sabre/vobject "^3.5"
Unfortunately it's still not working. The error now is:

Code: [Select]
...
END:VEVENT
 in /var/www/roundcubemail/plugins/libcalendaring/libvcalendar.php on line 256 (POST /?_task=calendar&_id=&_uploadid=1591935383542&_from=&_action=import_events)

If you need any other information from me about the system/software, please let me know.

I have followed this guide (https://packagist.org/packages/kolab/calendar), and there doesn't seem to be much other information around about the subject.

Offline Mailman

  • Jr. Member
  • **
  • Posts: 11
Re: Calendar import - SOLVED!
« Reply #3 on: June 12, 2020, 09:04:30 AM »
Got it nailed. Here's how:
Code: [Select]
cd /tmp
git clone https://git.kolab.org/diffusion/RPK/roundcubemail-plugins-kolab.git
sudo cp -r /tmp/roundcubemail-plugins-kolab/plugins/calendar/ /tmp/roundcubemail-plugins-kolab/plugins/libcalendaring/ /tmp/roundcubemail-plugins-kolab/plugins/libkolab/ /var/www/roundcubemail/plugins/
sudo apt install -y php-sabre-*
sudo cp /var/www/roundcubemail/plugins/calendar/config.inc.php.dist /var/www/roundcubemail/plugins/calendar/config.inc.php
cd /var/www/roundcubemail
sudo bin/initdb.sh --dir=plugins/calendar/drivers/database/SQL
sudo lessc --relative-urls -x plugins/libkolab/skins/elastic/libkolab.less > plugins/libkolab/skins/elastic/libkolab.min.css
sudo vi config/config.inc.php # add calendar to plugins
sudo -u www-data composer require sabre/vobject "^3.5"

Offline henrythemouse

  • Newbie
  • *
  • Posts: 3
Re: Calendar import
« Reply #4 on: January 19, 2022, 08:13:10 PM »
I know that this post is over a year old, but I can not find any other reference to this error regarding the kolab calendar plugin. I am getting the exact error that is posted  here and have been getting that error each time I try to install the calendar plugin. This time I used composer to install the calendar and all it's dependencies. Yet, still the same error, and like your error above many, if not all, of the ics file's records are written to the error log.

I should post a new topic, but since this was so exact I wanted to see if anyone can shed some light on this problem.

TIA for any help offered.