False "output_buffering must be disabled" warning

I get an error about “output_buffering” in Settings/Overview:
firefox_7y9uiRfPM3

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

firefox_1oRdV9Vbct

System info

Nextcloud 20.0.4
Ubuntu 18.04
Apache 2.4.46
PHP 7.4

Output of config.php
'<?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

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:

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

2 Likes

In my case, this solution does not work.

1 Like