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! -
Z-Push has not been updated to work with PHP8 and above.
PHP7.4 it is… -
Thank you. Are there any plans to do so?
-
@kordian
Here the full log:
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)