Z-push php8.1 problem
Z-push php8.1 problem
Hello,
When switching to php8.1 from 7.4, my z-push returns an error:
06/09/2022 11:43:04 [379496] [FATAL] Fatal error: /z-push/lib/wbxml/wbxmlencoder.php:174 - Uncaught TypeError: stream_filter_append(): Argument #1 ($stream) must be of type resource, string given in /z-push/lib/wbxml/wbxmlencoder.php:174
Could someone help?
Any php package missing?
Thank you in advance!
When switching to php8.1 from 7.4, my z-push returns an error:
06/09/2022 11:43:04 [379496] [FATAL] Fatal error: /z-push/lib/wbxml/wbxmlencoder.php:174 - Uncaught TypeError: stream_filter_append(): Argument #1 ($stream) must be of type resource, string given in /z-push/lib/wbxml/wbxmlencoder.php:174
Could someone help?
Any php package missing?
Thank you in advance!
Re: Z-push php8.1 problem
Sorry for the silly question: did you forced the update to php8.1 or did it come from the yum repos ?
Just asking because I am also running z-push on a Centos7 server separate from the zimbra server and regularly update with yum update but never had this issue
Thanks
Just asking because I am also running z-push on a Centos7 server separate from the zimbra server and regularly update with yum update but never had this issue
Thanks
Re: Z-push php8.1 problem
I do not think there are silly questions...
The update was done separately, I have debian where actually numerous versions of php are allowed (can enable or disable the desired one), so I have both 7.4 and 8.1.
Everything is working fine under 7.4 enabled.
Under 8.1 the error comes up. Here once again the full error:
06/09/2022 11:43:04 [379496] [FATAL] [] Fatal error: /z-push/lib/wbxml/wbxmlencoder.php:174 - Uncaught TypeError: stream_filter_append(): Argument #1 ($stream) must be of type resource, string given in /z-push/lib/wbxml/wbxmlencoder.php:174
Stack trace:
#0 /z-push/lib/wbxml/wbxmlencoder.php(174): stream_filter_append()
#1 /z-push/lib/core/streamer.php(327): WBXMLEncoder->contentStream()
#2 /z-push/lib/core/streamer.php(252): Streamer->Encode()
#3 /z-push/lib/core/streamimporter.php(171): Streamer->Encode()
#4 /z-push/lib/default/diffbackend/exportchangesdiff.php(166): ImportChangesStream->ImportMessageChange()
#5 /z-push/lib/request/sync.php(1199): ExportChangesDiff->Synchronize()
#6 /z-push/lib/request/sync.php(956): Sync->syncFolder()
#7 /z-push/lib/request/requestprocessor.php(116): Sync->Handle()
#8 /z-push/index.php(107): RequestProcessor::HandleRequest()
#9 {main}
thrown (1)
The update was done separately, I have debian where actually numerous versions of php are allowed (can enable or disable the desired one), so I have both 7.4 and 8.1.
Everything is working fine under 7.4 enabled.
Under 8.1 the error comes up. Here once again the full error:
06/09/2022 11:43:04 [379496] [FATAL] [] Fatal error: /z-push/lib/wbxml/wbxmlencoder.php:174 - Uncaught TypeError: stream_filter_append(): Argument #1 ($stream) must be of type resource, string given in /z-push/lib/wbxml/wbxmlencoder.php:174
Stack trace:
#0 /z-push/lib/wbxml/wbxmlencoder.php(174): stream_filter_append()
#1 /z-push/lib/core/streamer.php(327): WBXMLEncoder->contentStream()
#2 /z-push/lib/core/streamer.php(252): Streamer->Encode()
#3 /z-push/lib/core/streamimporter.php(171): Streamer->Encode()
#4 /z-push/lib/default/diffbackend/exportchangesdiff.php(166): ImportChangesStream->ImportMessageChange()
#5 /z-push/lib/request/sync.php(1199): ExportChangesDiff->Synchronize()
#6 /z-push/lib/request/sync.php(956): Sync->syncFolder()
#7 /z-push/lib/request/requestprocessor.php(116): Sync->Handle()
#8 /z-push/index.php(107): RequestProcessor::HandleRequest()
#9 {main}
thrown (1)
Last edited by Kordian on Mon Sep 12, 2022 12:43 pm, edited 1 time in total.
Re: Z-push php8.1 problem
If not directly related to Zimbra might be worth posting this question in the Kopano forum: https://forum.kopano.io/category/25/syn ... via-z-push
Re: Z-push php8.1 problem
Is there any specific reason you update the php version? This problem is not a Zimbra problem and as has been mentioned you'd more likely to get an answer on the Kopano forums.Kordian wrote:I do not think there are silly questions...
The update was done separately, I have debian where actually numerous versions of php are allowed (can enable or disable the desired one), so I have both 7.4 and 8.1.
Everything is working fine under 7.4 enabled.
Re: Z-push php8.1 problem
Well, I am trying on the kopano forum as well.
The reason is simply 7.4 will not be supported anymore. So I need to upgrade the server anyway.
The reason is simply 7.4 will not be supported anymore. So I need to upgrade the server anyway.
Re: Z-push php8.1 problem
These are not support forums for z-push, you should always post questions about z-push on the Kopano forums.Kordian wrote:Well, I am trying on the kopano forum as well.
Re: Z-push php8.1 problem
From the experience I know people here also help on z-push issues.
Re: Z-push php8.1 problem
As I've already mentioned, these are Zimbra forums and while you may get other z-push users helping you here I'd suggest you'll find a better experience getting support from the Kopano forums.Kordian wrote:From the experience I know people here also help on z-push issues.
Re: Z-push php8.1 problem
Can we concentate on my problem, please?
But thanks for the idea with kopano, as mentioned is already contacted as well.
But thanks for the idea with kopano, as mentioned is already contacted as well.