# False "output\_buffering must be disabled" warning

**URL:** <https://help.nextcloud.com/t/false-output-buffering-must-be-disabled-warning/102791>\
**Category:** ℹ️ Support\
**Created:** [December 30, 2020, 7:35pm UTC](https://help.nextcloud.com/t/false-output-buffering-must-be-disabled-warning/102791 "2020-12-30T19:35:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cloo](https://help.nextcloud.com/user_avatar/help.nextcloud.com/cloo/32/16751_2.png) [@cloo](https://help.nextcloud.com/u/cloo)\
**Post date:** [December 30, 2020, 7:35pm UTC](https://help.nextcloud.com/t/false-output-buffering-must-be-disabled-warning/102791/1 "2020-12-30T19:35:42Z")

</div>

I get an error about “output\_buffering” in Settings/Overview:  
 ![firefox_7y9uiRfPM3](https://help.nextcloud.com/uploads/default/original/3X/c/0/c00c0aed870d7131b2402c28fcb0bcacd200147a.png)

But Output Buffering it is disabled everywhere in php.ini and .htaccess.  
Also phpinfo() in nextcloud installation folder reports it is off:

![firefox_1oRdV9Vbct](https://help.nextcloud.com/uploads/default/original/3X/8/3/83b79ca1c708563fc430b9690fc4ed3fc92acc71.png)

> **System info**
>
> Nextcloud **20.0.4**  
> Ubuntu 18.04  
> Apache 2.4.46  
> PHP 7.4

> **Output of config.php**
>
> ```auto
> '<?php
> $CONFIG = array (
> 'instanceid' => '___',
> 'passwordsalt' => '___',
> 'secret' => '___',
> 'trusted_domains' =>
> array (
> 0 => '___',
> 1 => '___',
> ),
> 'datadirectory' => '/mnt/diskas1',
> 'dbtype' => 'mysql',
> 'version' => '20.0.4.0',
> 'overwrite.cli.url' => '___',
> 'dbname' => 'nc',
> 'dbhost' => 'localhost',
> 'dbport' => '',
> 'dbtableprefix' => 'oc_',
> 'dbuser' => '___',
> 'dbpassword' => '___',
> 'installed' => true,
> 'mail_smtpmode' => 'smtp',
> 'mail_smtpsecure' => 'ssl',
> 'mail_sendmailmode' => 'smtp',
> 'mail_from_address' => 'ceiri',
> 'mail_domain' => '___',
> 'mail_smtpauthtype' => 'LOGIN',
> 'mail_smtpauth' => 1,
> 'mail_smtphost' => '___',
> 'mail_smtpport' => '465',
> 'mail_smtpname' => '___',
> 'mail_smtppassword' => '___',
> 'maintenance' => false,
> 'theme' => '',
> 'loglevel' => 2,
> 'updater.secret' => '___',
> 'has_rebuilt_cache' => true,
> 'updater.release.channel' => 'stable',
> 'memcache.locking' => '\\OC\\Memcache\\Redis',
> 'memcache.distributed' => '\\OC\\Memcache\\Redis',
> 'memcache.local' => '\\OC\\Memcache\\Redis',
> 'redis' =>
> array (
> 'host' => 'localhost',
> 'port' => 6379,
> 'timeout' => 3,
> ),
> 'mysql.utf8mb4' => true,
> 'app_install_overwrite' =>
> array (
> 0 => 'joplin',
> ),
> );
> 
> ```

> **Enabled apps**
>
> - accessibility: 1.6.0
> - activity: 2.13.4
> - admin\_audit: 1.10.0
> - apporder: 0.11.0
> - bruteforcesettings: 2.0.1
> - calendar: 2.1.2
> - carnet: 0.23.7
> - cloud\_federation\_api: 1.3.0
> - comments: 1.10.0
> - contacts: 3.4.2
> - contactsinteraction: 1.1.0
> - cospend: 1.2.7
> - dav: 1.16.2
> - external: 3.7.1
> - extract: 1.2.5
> - federatedfilesharing: 1.10.2
> - federation: 1.10.1
> - files: 1.15.0
> - files\_external: 1.11.1
> - files\_pdfviewer: 2.0.1
> - files\_photospheres: 1.20.0
> - files\_rightclick: 0.17.0
> - files\_sharing: 1.12.1
> - files\_trashbin: 1.10.1
> - files\_versions: 1.13.0
> - files\_videoplayer: 1.9.0
> - gpxpod: 4.2.4
> - logreader: 2.5.0
> - lookup\_server\_connector: 1.8.0
> - maps: 0.1.8
> - notifications: 2.8.0
> - oauth2: 1.8.0
> - password\_policy: 1.10.1
> - photos: 1.2.1
> - privacy: 1.4.0
> - provisioning\_api: 1.10.0
> - recommendations: 0.8.0
> - serverinfo: 1.10.0
> - settings: 1.2.0
> - sharebymail: 1.10.0
> - tasks: 0.13.6
> - text: 3.1.0
> - theming: 1.11.0
> - twofactor\_backupcodes: 1.9.0
> - updatenotification: 1.10.0
> - user\_status: 1.0.1
> - viewer: 1.4.0
> - workflowengine: 2.2.0

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [December 31, 2020, 3:11pm UTC](https://help.nextcloud.com/t/false-output-buffering-must-be-disabled-warning/102791/2 "2020-12-31T15:11:09Z")

</div>

> [@cloo](#):
>
> “output\_buffering

I think you haven’t used the search function of this forum to find an answer on your question, have you? Otherwise you should have seen this thread in which the problem has already been discussed:

> [@PHP configuration option output\_buffering must be disabled nextcloud 20.0.1 ubuntu](https://help.nextcloud.com/t/php-configuration-option-output-buffering-must-be-disabled-nextcloud-20-0-1-ubuntu/97918/14):
>
> \<?php phpinfo(); open it in your browser and look for output\_buffering. This worked for me. When I looked for output\_buffering it was indeed set to a number. I did a search in my php.ini and found that in one area I had it commented out with the default value being off. But when I searched further I saw that output\_buffering was set to 4096 further down in my php.ini. I think I did this before, but forgot about it. Once I commented out the line, the error was gone. So the moral of the story …

---

<div class="post-metadata">

**Author:** ![cloo](https://help.nextcloud.com/user_avatar/help.nextcloud.com/cloo/32/16751_2.png) [@cloo](https://help.nextcloud.com/u/cloo)\
**Post date:** [December 31, 2020, 4:09pm UTC](https://help.nextcloud.com/t/false-output-buffering-must-be-disabled-warning/102791/3 "2020-12-31T16:09:16Z")

</div>

Yess, I saw that post, but stopped reading where OP confessed he just missed some records in php.ini… My mistake.

For the record, the answer is to use proper php syntax in .htaccess:  
**php\_flag output\_buffering Off**  
instead of **php\_value output\_buffering Off**

---

<div class="post-metadata">

**Author:** ![Freigeist](https://help.nextcloud.com/letter_avatar/freigeist/32/6_449c533f586939b6e5f246632a46421f.png) [@Freigeist](https://help.nextcloud.com/u/Freigeist)\
**Post date:** [April 20, 2021, 6:50pm UTC](https://help.nextcloud.com/t/false-output-buffering-must-be-disabled-warning/102791/4 "2021-04-20T18:50:52Z")

</div>

In my case, this solution does not work.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 9:47pm UTC](https://help.nextcloud.com/t/false-output-buffering-must-be-disabled-warning/102791/5 "2024-12-12T21:47:48Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 9:47pm UTC](https://help.nextcloud.com/t/false-output-buffering-must-be-disabled-warning/102791/6 "2024-12-12T21:47:50Z")

</div>


