Zip Streamer PHP errors

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
  • Operating system and version (e.g., Ubuntu 24.04):
    -Ubunto 22.04
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • replace me
  • Is this the first time you’ve seen this error? (Yes / No):
    • `yes new instance
  • When did this problem seem to first start?
    • as soon as i installed
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • docker compose
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    -using cloudflare tunneling

Summary of the issue you are facing:

[getting error messages everyone in a while inmy logs about PHP and zipstreamer]

Steps to replicate it (hint: details matter!):

  1. I believe it happens when someone download a document
Error PHP Cannot modify header information - headers already sent by (output started at /var/www/html/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php:328) at /var/www/html/3rdparty/sabre/http/lib/Sapi.php#68 Apr 3, 2025, 1:30:06 PM
Error PHP Cannot modify header information - headers already sent by (output started at /var/www/html/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php:328) at /var/www/html/3rdparty/sabre/http/lib/Sapi.php#64 Apr 3, 2025, 1:30:06 PM
Error PHP Cannot modify header information - headers already sent by (output started at /var/www/html/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php:328) at /var/www/html/3rdparty/sabre/http/lib/Sapi.php#68 Apr 3, 2025, 12:44:37 PM
Error PHP Cannot modify header information - headers already sent by (output started at /var/www/html/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php:328) at /var/www/html/3rdparty/sabre/http/lib/Sapi.php#64 Apr 3, 2025, 12:44:37 PM
Error PHP Cannot modify header information - headers already sent by (output started at /var/www/html/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php:328) at /var/www/html/3rdparty/sabre/http/lib/Sapi.php#68 Apr 3, 2025, 12:35:52 PM
Error PHP Cannot modify header information - headers already sent by (output started at /var/www/html/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php:328) at /var/www/html/3rdparty/sabre/http/lib/Sapi.php#64 Apr 3, 2025, 12:35:52 PM
Warning no app in context Login failed: msingh@edwardleske.com (Remote IP: 107.6.98.132) Apr 1, 2025, 8:16:59 AM
Warning core Login failed: ‘Matt’ (Remote IP: ‘107.6.98.132’) Apr 1, 2025, 8:16:59 AM
Warning no app in context Login failed: msingh@edwardleske.com (Remote IP: 107.6.98.132) Apr 1, 2025, 8:16:42 AM
Warning core Login failed: ‘Matt’ (Remote IP: ‘107.6.98.132’) Apr 1, 2025, 8:16:42 AM
Error PHP Cannot modify header information - headers already sent by (output started at /var/www/html/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php:328) at /var/www/html/3rdparty/sabre/http/lib/Sapi.php#68 Apr 1, 2025, 12:09:07 AM
Error PHP Cannot modify header information - headers already sent by (output started at /var/www/html/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php:328) at /var/www/html/3rdparty/sabre/http/lib/Sapi.php#64 Apr 1, 2025, 12:09:07 AM

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

PASTE HERE
{"reqId":"I0MCJVASEYa0dwC0ml80","level":3,"time":"2025-04-03T17:30:06+00:00","remoteAddr":"50.248.146.185","user":false,"app":"PHP","method":"GET","url":"/public.php/dav/files/MNB8YnYJKFEXXPR/?accept=zip","message":"Cannot modify header information - headers already sent by (output started at /var/www/html/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php:328) at /var/www/html/3rdparty/sabre/http/lib/Sapi.php#68","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0","version":"31.0.2.1","data":{"app":"PHP"},"id":"67eed57f14f1b"}
#### Web Browser

If the problem is related to the Web interface, open your browser inspector *Console* and *Network* tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE


#### Web server / Reverse Proxy

The output of your Apache/nginx/system log in `/var/log/____`:

PASTE HERE



### Configuration
 
#### Nextcloud

The output of `occ config:list system` or similar is best, but, if not possible, the contents of your `config.php` file from `/path/to/nextcloud` is fine (make sure to remove any identifiable information!):

PASTE HERE


#### Apps

The output of `occ app:list` (if possible).

### Tips for increasing the likelihood of a response

* Use the `preformatted text` formatting option in the editor for all log entries and configuration output.
* If screenshots are useful, feel free to include them. 
  - If possible, also include key error output in text form so it can be searched for.
* Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Do you use the app zipstreamer? Maybe you can better use an app from the appstore e.g. Zipper. Zipper is working in the background.

I don’t use either. But if you want to keep your programme.

Maybe you can update to Ubuntu 24.04 LTS with the newer PHP 8.3 and the problem will be solved. Sooner or later you’ll have to switch anyway. Nextcloud 31 Requirements

The error may be related to a problem with the tmp directory. Perhaps an authorisation is missing. You can specify a tmp directory manually within Nextcloud. You can also search in this direction.

Thanks for the reply, I don’t think I use Zipstreamer? I’m sure it does something in my setup but Im not 100%, Primarily using Nextcloud as an ftp site for files and documents to big to email. Although I have those errors, I have not been told of any issues by anyone downloading documents.

I had issues with 24.04 when I originally tried installing Nextcloud so i reverted back and reinstalled. This is the least amount of errors Ive had so Im reluctant to mess with anything unless its not working.

Was hoping this was a common error and someone would know a quick fix

And your logs?

Can you search “zip” or “deep” in your Nextcloud GUI app list?

Deepdiver and ZipStreamer are not listed in my “Your apps” from the GUI, i don’t see a search feature.
Thanks