Z-push php8.1 problem

Take your Zimbra with you!
Post Reply
Kordian
Posts: 45
Joined: Wed Oct 24, 2018 5:04 pm

Z-push php8.1 problem

Post by Kordian »

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!
milauria
Advanced member
Advanced member
Posts: 96
Joined: Mon Aug 15, 2016 12:32 pm

Re: Z-push php8.1 problem

Post by milauria »

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
Kordian
Posts: 45
Joined: Wed Oct 24, 2018 5:04 pm

Re: Z-push php8.1 problem

Post by Kordian »

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)
Last edited by Kordian on Mon Sep 12, 2022 12:43 pm, edited 1 time in total.
milauria
Advanced member
Advanced member
Posts: 96
Joined: Mon Aug 15, 2016 12:32 pm

Re: Z-push php8.1 problem

Post by milauria »

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
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Z-push php8.1 problem

Post by phoenix »

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.
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.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Kordian
Posts: 45
Joined: Wed Oct 24, 2018 5:04 pm

Re: Z-push php8.1 problem

Post by Kordian »

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.
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Z-push php8.1 problem

Post by phoenix »

Kordian wrote:Well, I am trying on the kopano forum as well.
These are not support forums for z-push, you should always post questions about z-push on the Kopano forums.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Kordian
Posts: 45
Joined: Wed Oct 24, 2018 5:04 pm

Re: Z-push php8.1 problem

Post by Kordian »

From the experience I know people here also help on z-push issues.
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Z-push php8.1 problem

Post by phoenix »

Kordian wrote:From the experience I know people here also help on z-push issues.
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.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Kordian
Posts: 45
Joined: Wed Oct 24, 2018 5:04 pm

Re: Z-push php8.1 problem

Post by Kordian »

Can we concentate on my problem, please?
But thanks for the idea with kopano, as mentioned is already contacted as well.
Post Reply