[Kolab-devel] Caldav Problems
Daniel Morlock
daniel.morlock at gmail.com
Wed May 28 12:43:50 CEST 2014
Hi,
I don't know which RPM provides this, sorry. This is only a guess, so
there might also be some other Roundcube/Kolab components or plugins
that include the incompatible Sabre/VObject.
In fact, you are not using Sabre/VObject 2.1.0. If you would, PHP
wouldn't complain about the missing abstract methods getValueType(),
setRawMimeDirValue() and getRawMimeDirValue().
Compare the Property class in 2.1.X
(https://github.com/fruux/sabre-vobject/blob/2.1.4/lib/Sabre/VObject/Property.php)
against the class in 3.0.0
(https://github.com/fruux/sabre-vobject/blob/3.0.0/lib/Sabre/VObject/Property.php)
and search for e.g. "setRawMimeDirValue". Something in your setup
includes Sabre/Vobject 3+ which conflicts with the required version in
libcalendaring.
Maybe you've installed a plugin that comes with Sabre/Vobject 3+ ?
I would suggest you run a "grep setRawMimeDirValue plugins" in your
Roundcube installation directory to figure out which plugin comes with
the conflicting Sabre/Vobject version.
Best,
Daniel.
On 2014-05-28 10:59, Josef Tschiggerl wrote:
> Hi Daniel,
>
> Not that I am aware of (do you happen to know which rpm might provide
> it? Running Centos 6.5). Went through installed python and php modules
> but no sign of sabre/vobject-
> Checked the version of Sabre/VObject in libcalendaring and according
> to "lib/Sabre/VObject/Version.php" I have 2.1.0 (stable).
>
> Regards,
> Josef
>
>
> ---
> ------
> DI(FH) Josef Tschiggerl <josef at tschiggerl.name> | +43 660 6896609
>
> On 28-05-2014 10:44, Daniel Morlock wrote:
>> Hi Josef,
>>
>> it seems that libcalendaring is using an incompatible version for
>> Sabre/VObject. Have you installed a system wide Sabre/VObject lib for
>> PHP? Basically, libcalendaring brings its own Sabre/VObject lib in
>> "plugins/libcalendaring/lib/Sabre/VObject". You should make sure that
>> libcalendaring is also using this one (Sabre/VObject V2.1.0) instead
>> of the system wide Sabre/VObject lib. See
>> "plugins/libcalendaring/libvcalenar.php", line 26-28 for details.
>>
>> Regards,
>> Daniel.
>>
>> On 2014-05-28 10:31, Josef Tschiggerl wrote:
>>> Hi Daniel,
>>>
>>> Thanks for the new config file. Seems to work and the kolabformat
>>> module errors are gone too ... ;)
>>> But the following error still exists:
>>>
>>> May 28 10:24:01 sunrise roundcube: PHP Fatal error: Class
>>> vobject_location_property contains 3 abstract methods and must
>>> therefore be declared abstract or implement the remaining methods
>>> (Sabre\VObject\Property::getValueType,
>>> Sabre\VObject\Property::setRawMimeDirValue,
>>> Sabre\VObject\Property::getRawMimeDirValue) in
>>> /var/www/mail.tschiggerl.name/plugins/libcalendaring/libvcalendar.php
>>> on line 1061
>>>
>>> (happens when adding a new caldav calendar via Roundcube)
>>>
>>> Could you please help me with that too?
>>>
>>> Thanks,
>>> Josef
>>>
>>> ---
>>> ------
>>> DI(FH) Josef Tschiggerl <josef at tschiggerl.name> | +43 660 6896609
>>>
>>> On 28-05-2014 10:19, Daniel Morlock wrote:
>>>> Hi Josef,
>>>>
>>>> the default config in the repository is indeed out-dated. I will
>>>> replace that with a config that is compatible to Roundcube 1.0.1. In
>>>> the meantime, you can try to use the following snippet as config:
>>>>
>>>> <?php
>>>> $config['calendar_driver'] = array("caldav", "ical");
>>>> $config['calendar_default_view'] = "agendaWeek";
>>>> $config['calendar_timeslots'] = 2;
>>>> $config['calendar_first_day'] = 1;
>>>> $config['calendar_first_hour'] = 6;
>>>> $config['calendar_work_start'] = 6;
>>>> $config['calendar_work_end'] = 18;
>>>> $config['calendar_event_coloring'] = 0;
>>>>
>>>> $config['calendar_crypt_key'] = "put here some random key";
>>>>
>>>> $config['calendar_caldav_debug'] = false;
>>>> $config['calendar_ical_debug'] = false;
>>>>
>>>> if (file_exists(RCUBE_CONFIG_DIR . '/' . $_SERVER["HTTP_HOST"] .
>>>> '/' . basename(__FILE__))) {
>>>> include_once(RCUBE_CONFIG_DIR . '/' . $_SERVER["HTTP_HOST"]
>>>> .
>>>> '/' . basename(__FILE__));
>>>> }
>>>>
>>>> ?>
>>>>
>>>> Please note that if no Kolab Groupware is involved, you cannot add
>>>> the
>>>> "kolab" calendar driver to $config['calendar_driver']. This causes
>>>> the
>>>> "required kolabformat" error you posted above.
>>>>
>>>> Regards,
>>>> Daniel.
>>>>
>>>>
>>>> On 2014-05-28 09:51, Josef Tschiggerl wrote:
>>>>> Hi all,
>>>>>
>>>>> I am currently trying to get the CALDAV plugin(s) for Roundcube
>>>>> working on my webserver (Using Roundcube 1.0.1, no Kolab Groupware
>>>>> involved).
>>>>> Looks like I am having difficulties getting the latest and correct
>>>>> version of the necessary files from
>>>>> https://gitlab.awesome-it.de/kolab/roundcube-plugins
>>>>>
>>>>> What I did so far:
>>>>> # git clone
>>>>> https://gitlab.awesome-it.de/kolab/roundcube-plugins.git
>>>>> plugins-caldav
>>>>> # cd plugins-caldav
>>>>> # git checkout roundcubemail-plugins-kolab-caldav-3.1.11-r1
>>>>>
>>>>> After that I added "$config['calendar_driver'] = array("kolab",
>>>>> "caldav", "ical");" to config.inc.php
>>>>> (config.inc.php header says "Version 0.7-beta", is that correct?)
>>>>> It's a bit odd that all other settings/variables in this file start
>>>>> with "$rcmail_config" instead of "$config"
>>>>>
>>>>> In addition I applied the three .sql files for caldav, ical and
>>>>> calendar - no problems.
>>>>>
>>>>> Upon adding a new caldav calendar in Roundcube I get some serious
>>>>> php
>>>>> warnings/errors in the logs:
>>>>>
>>>>> May 28 09:48:31 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET /?_task=calendar)
>>>>> May 28 09:48:31 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET /?_task=calendar)
>>>>> May 28 09:48:31 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET /?_task=calendar)
>>>>> May 28 09:48:32 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET /?_task=calendar)
>>>>> May 28 09:48:32 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET /?_task=calendar)
>>>>> May 28 09:48:32 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET /?_task=calendar)
>>>>> May 28 09:48:32 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET /?_task=calendar)
>>>>> May 28 09:48:32 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET /?_task=calendar)
>>>>> May 28 09:48:32 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET /?_task=calendar)
>>>>> May 28 09:48:32 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET /?_task=calendar)
>>>>> May 28 09:48:32 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET /?_task=calendar)
>>>>> May 28 09:48:32 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET /?_task=calendar)
>>>>> May 28 09:48:32 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET /?_task=calendar)
>>>>> May 28 09:48:46 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET
>>>>> /?_task=calendar&_action=calendar&action=form-new&driver=caldav&_=1401263312288)
>>>>> May 28 09:48:49 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (GET
>>>>> /?_task=mail&_mbox=INBOX&_folderlist=1&_list=1&_uids=274%2C280%2C281&_last=1401263268&_action=refresh&_remote=1&_unlock=loading1401263328858&_=1401262187819)
>>>>> May 28 09:49:13 sunrise roundcube: PHP Error: required kolabformat
>>>>> module not found (POST
>>>>> /?_task=calendar&_action=calendar?_task=&_action=)
>>>>> May 28 09:49:13 sunrise roundcube: PHP Fatal error: Class
>>>>> vobject_location_property contains 3 abstract methods and must
>>>>> therefore be declared abstract or implement the remaining methods
>>>>> (Sabre\VObject\Property::getValueType,
>>>>> Sabre\VObject\Property::setRawMimeDirValue,
>>>>> Sabre\VObject\Property::getRawMimeDirValue) in
>>>>> /var/www/mail.tschiggerl.name/plugins/libcalendaring/libvcalendar.php
>>>>> on line 1061
>>>>>
>>>>> (I read through the
>>>>> http://lists.kolab.org/pipermail/devel/2014-February/014878.html
>>>>> postings but it didn't help me :( )
>>>>>
>>>>> Could you please point me in the right direction - I am stuck :(
>>>>>
>>>>> _______________________________________________
>>>>> devel mailing list
>>>>> devel at lists.kolab.org
>>>>> https://lists.kolab.org/mailman/listinfo/devel
>>>> _______________________________________________
>>>> devel mailing list
>>>> devel at lists.kolab.org
>>>> https://lists.kolab.org/mailman/listinfo/devel
>> _______________________________________________
>> devel mailing list
>> devel at lists.kolab.org
>> https://lists.kolab.org/mailman/listinfo/devel
> _______________________________________________
> devel mailing list
> devel at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/devel
More information about the devel
mailing list