Incident: Call to undefined function mapi_zarafa_getuser()
darootler last edited by darootler
Ubuntu 16.04.3 LTS
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()
Steps to Reproduce
Just try to add a task on the iPhone.
The task shows up on the iPhone but never synchronizes to the server.
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.
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.
The same problem exists in /usr/share/z-push/backend/kopano/kopano.php line 1876 and 1882.
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.
fallingdamps last edited by
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.
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.
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.
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.
i already reinstalled the packages.