{"id":18856015,"date":"2026-03-18T21:50:12","date_gmt":"2026-03-18T21:50:12","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=18856015"},"modified":"2026-03-18T21:53:11","modified_gmt":"2026-03-18T21:53:11","slug":"ini_set-cannot-change-zlib-output_compression-headers-already-sent","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/ini_set-cannot-change-zlib-output_compression-headers-already-sent\/","title":{"rendered":"&#8220;ini_set(): Cannot change zlib.output_compression &#8211; headers already sent&#8221;"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The weekly backup job on one of the sites I manage suddenly started showing a warning during weekly backups created after 3\/4\/26. The log is below, showing the warning, which appeared on both the 3\/11\/26 and 3\/18\/26 backups. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">No changes were made to the job in this timeframe. The only things I changed between 3\/4\/26, when the job last ran without the warning, and 3\/11\/26, when it first ran with the warning, were:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3\/5\/26 &#8211; BackWPup 5.6.5 &gt; 5.6.6<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3\/9\/26 &#8211; Burst Statistics 3.2.0 &gt; 3.2.1 (I applied a subsequent update to 3.2.3 on 3\/12\/26, warnings recurred on the 3\/18\/26 backup)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3\/10\/26 &#8211; WordPress core &#8211; 6.9.1 &gt; 6.9.3<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Both the zip and zliib PHP extensions are enabled (PHP 8.3). <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;INFO] BackWPup 5.6.6; A project of WP Media<br \/>&#091;INFO] WordPress 6.9.4 on<br \/>&#091;INFO] Log Level: Normal<br \/>&#091;INFO] BackWPup job: Weekly Full Site Backup<br \/>&#091;INFO] Logfile is: backwpup_log_2026-03-18_01-36-37.html<br \/>&#091;INFO] Backup file is: 2026-03-18_01-36_backwpup_DBDUMP-FILE-WPPLUGIN.zip<br \/>&#091;18-Mar-2026 01:36:37] WARNING: ini_set(): Cannot change zlib.output_compression - headers already sent<br \/>&#091;18-Mar-2026 01:36:37] 1. Try to backup database \u2026<br \/>&#091;18-Mar-2026 01:36:37] Connected to database on localhost<br \/>&#091;18-Mar-2026 01:36:39] Added database dump with 32.45 MB to backup file list<br \/>&#091;18-Mar-2026 01:36:39] Database backup done!<br \/>&#091;18-Mar-2026 01:36:39] 1. Trying to make a list of folders to back up \u2026<br \/>&#091;18-Mar-2026 01:36:40] Added \"wp-config.php\" to backup file list<br \/>&#091;18-Mar-2026 01:36:40] 1391 folders to backup.<br \/>&#091;18-Mar-2026 01:36:41] WARNING: ini_set(): Cannot change zlib.output_compression - headers already sent<br \/>&#091;18-Mar-2026 01:36:41] 1. Trying to generate a file with installed plugin names \u2026<br \/>&#091;18-Mar-2026 01:36:41] Added plugin list file \"_.pluginlist.2026-03-18.txt\" with 2.30 KB to backup file list.<br \/>&#091;18-Mar-2026 01:36:41] 1. Trying to generate a manifest file \u2026<br \/>&#091;18-Mar-2026 01:36:41] Added manifest.json file with 2.85 KB to backup file list.<br \/>&#091;18-Mar-2026 01:36:41] 1. Trying to create backup archive \u2026<br \/>&#091;18-Mar-2026 01:36:41] Compressing files as ZipArchive. Please be patient, this may take a moment.<br \/>&#091;18-Mar-2026 01:37:08] WARNING: ini_set(): Cannot change zlib.output_compression - headers already sent<br \/>&#091;18-Mar-2026 01:37:44] WARNING: ini_set(): Cannot change zlib.output_compression - headers already sent<br \/>&#091;18-Mar-2026 01:38:03] Backup archive created.<br \/>&#091;18-Mar-2026 01:38:03] Archive size is 717.35 MB.<br \/>&#091;18-Mar-2026 01:38:03] 9213 Files with 896.06 MB in Archive.<br \/>&#091;18-Mar-2026 01:38:04] WARNING: ini_set(): Cannot change zlib.output_compression - headers already sent<br \/>&#091;18-Mar-2026 01:38:04] 1 old log deleted<br \/>&#091;18-Mar-2026 01:38:04] WARNING: Job finished with warnings in 87 seconds. Please resolve them for correct execution.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Any thoughts about what the problem might be? I manage many sites (in separate accounts) on this host, and am not seeing this warning anywhere else. <\/p>\n","protected":false},"template":"","class_list":["post-18856015","topic","type-topic","status-publish","hentry","topic-tag-headers-already-sent","topic-tag-log","topic-tag-warning","topic-tag-zlib-output_compression"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18856015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18856015\/revisions"}],"predecessor-version":[{"id":18856016,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18856015\/revisions\/18856016"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18856015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}