Page MenuHomePhorge

PHP Extension Runtime Error
Closed, ResolvedPublic

Description

ii  chwala                                        0.5.13-1~kolab1                                   all          Glorified WebDAV, done right
ii  irony                                         0.4.7-1~kolab1                                    all          Kolab Groupware DAV Access
ii  kolab-autoconf                                1.3.4-1                                           all          Autodiscovery component for kolab
ii  kolab-plesk                                   16.0.1-22                                         all          Meta-package for Kolab on Plesk
ii  kolab-syncroton                               2.3.22-1~kolab1                                   all          ActiveSync for Kolab Groupware
ii  libkolab3                                     3.0.2-0~kolab1                                    amd64        Maps KDE containers to Kolab formats
ii  libkolabxml1v5                                1.3.0-0~kolab1                                    amd64        Libkolabxml is the reference implementation of the Kolab XML format
ii  php-kolab                                     3.0.2-0~kolab1                                    amd64        PHP bindings for Kolab Library
ii  php-kolabformat                               1.3.0-0~kolab1                                    amd64        PHP bindings for Kolab Format 3.0 XML parsing
ii  php-net-sieve                                 1.4.4-0~kolab2                                    all          Handles talking to a sieve server
ii  roundcubemail                                 1:1.5.3-0~kolab2                                  all          skinnable AJAX based webmail solution for IMAP servers
ii  swig4.0                                       4.1.0-0~kolab1                                    amd64        Generate scripting interfaces to C/C++ code

I'm getting a PHP Fatal Error when reading calendars in the kolab roundcube interface with the kolabobject,kolabformat,kolabshared,kolabcalendaring extensions

PHP Fatal error:  Uncaught Error: Call to undefined method SWIG\_p_Kolab__cDateTime::isValid() in /usr/share/roundcubemail/plugins/libkolab/lib/kolab_format.php:279

I'm on ubuntu 20.04 and just using the default packages provided by https://mirror.apheleia-it.ch/repos/Kolab:/16/Ubuntu_20.04_Plesk_17/

I also tried rebuilding all those extensions from source but I'm getting exactly the same issue

If I only leave kolabformat extension enabled then this is working fine (but some other features are broken) and the class there is cDateTime instead of SWIG\_p_Kolab__cDateTime

It looks to me like the kolabcalendaring extension is replacing the kolabformat classes but the standard methods are not present

I'm really not qualified to understand the inner workings of kolab, swig etc, so if somebody can shed a light

Details

Ticket Type
Task

Event Timeline

Tofandel updated the task description. (Show Details)

Well after much hair loss, it seems this issue was caused by the order the extensions were loaded in

kolabformat needs to be loaded AFTER kolabobject kolabshared and kolabcalendaring

Tofandel claimed this task.