Incident: Call to undefined function mapi_zarafa_getuser()



  • Date Seen
    15.12.2017

    Versions
    Ubuntu 16.04.3 LTS
    Apache 2.4.18
    Z-Push 2.3.8
    Kopano 8.4.90.1296

    Bug Description
    If i try to add a task on my iPhone it never shows up in the WebApp and the iPhone screen get stuck. Here are the related logs:

    15/12/2017 16:42:27 [ 1670] [FATAL] [USER] Fatal error: /usr/share/z-push/backend/kopano/mapiprovider.php:1689 - Uncaught Error: Call to undefined function mapi_zarafa_getuser() in /usr/share/z-push/backend/kopano/mapiprovider.php:1689
    Stack trace:
    #0 /usr/share/z-push/backend/kopano/mapiprovider.php(1107): MAPIProvider->setTask(Resource id #112, Object(SyncTask))
    #1 /usr/share/z-push/backend/kopano/importer.php(433): MAPIProvider->SetMessage(Resource id #112, Object(SyncTask))
    #2 /usr/share/z-push/backend/kopano/kopanochangeswrapper.php(357): ImportChangesICS->ImportMessageChange(false, Object(SyncTask))
    #3 /usr/share/z-push/lib/request/sync.php(1486): KopanoChangesWrapper->ImportMessageChange(false, Object(SyncTask))
    #4 /usr/share/z-push/lib/request/sync.php(508): Sync->importMessage(Object(SyncParameters), Array, 'Add', Object(SyncTask), '15506', false, false, 1)
    #5 /usr/share/z-push/lib/request/requestprocessor.php(112): Sync->Handle(0)
    #6 /usr/share/z-push/index.php(107): RequestProcessor::HandleRequest()
    

    Severity
    Major

    Steps to Reproduce
    Just try to add a task on the iPhone.

    Actual Behavior
    The task shows up on the iPhone but never synchronizes to the server.

    Expected Behavior
    Able to add tasks on iPhone and the tasks are in sync with the server.

    Troubleshooting/Testing Steps Attempted
    I searched through the internet and didn’t find a solution. Removed the tasks folder, recreated several tasks, no success yet. This problem is reproduceable with two different users.

    Workaround
    No workaround found yet.



  • I just found a workaround:

    Just replace “mapi_zarafa_getuser” with “mapi_zarafa_getuser_by_name” in /usr/share/z-push/backend/kopano/mapiprovider.php in line 1689.

    But i think a “final” fix has to be done within the source package.

    Regards
    Richard



  • The same problem exists in /usr/share/z-push/backend/kopano/kopano.php line 1876 and 1882.

    Regards
    Richard


  • Kopano

    Hi Richard,

    thanks for reporting it. You don’t have to create a ticket a JIRA, it’s enough if you post the issue here in the forum.

    The issue now is https://jira.z-hub.io/browse/ZP-1339.

    Manfred



  • Dear Richard. dear Manfred

    Thank you for your postings. I am having the same issues Richard described and could fix them with the workaround.

    My logs only showed the problem in kopano.php.

    Regards
    fallingdamps


  • Kopano

    Hi richard, hi fallingdamps,

    we’ve released an updated Z-Push 2.3.8 which contains this and a couple more fixes regarding the PHP-MAPI function calls. See https://forum.kopano.io/topic/918/z-push-2-3-8-release for more information.

    Manfred



  • @manfred

    Thanks for the update. Would it be possible to release this version as something like 2.3.9, or something different than 2.3.8? Because right now the linux package manager doesn’t recognize that there is an update.

    Regards
    Richard


  • Kopano

    Hi Richard,

    which OS is it? If it’s debian-based, have you tried

    apt-get install --reinstall [packagename]
    

    ?

    Releasing a new version with just one fix seemed a bit too much for us.

    Manfred



  • Hi Manfred,

    i already reinstalled the packages.

    Regards
    Richard


Log in to reply
 

Looks like your connection to Kopano Community Forum was lost, please wait while we try to reconnect.