Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Nextcloud
  3. PHP configuration option output_buffering must be disabled

PHP configuration option output_buffering must be disabled

Scheduled Pinned Locked Moved Nextcloud
12 Posts 2 Posters 7.5k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jdaviescoatesJ jdaviescoates

    Since updating to the latest version of Nextcloud 25.0.2 with PHP 8.1 I'm getting this error when viewing /settings/admin/overview

    PHP configuration option output_buffering must be disabled
    

    7250bead-c1c4-45b0-8f43-104f381c26f0-image.png

    jdaviescoatesJ Online
    jdaviescoatesJ Online
    jdaviescoates
    wrote on last edited by
    #2

    Searching the Nextcloud Docs I found this:

    Output Buffering must be turned off in .htaccess or .user.ini or php.ini, or PHP will return memory-related errors:
    output_buffering = 0

    On this page https://docs.nextcloud.com/server/25/admin_manual/configuration_files/big_file_upload_configuration.html

    Not sure how/ where best to achieve this on Cloudron? (and I'd expect the package to do it for me, really 🙂 )

    I use Cloudron with Gandi & Hetzner

    1 Reply Last reply
    1
    • jdaviescoatesJ Online
      jdaviescoatesJ Online
      jdaviescoates
      wrote on last edited by
      #3

      Additionally, I clicked on the log shown in the screenshot above and it took my to /settings/admin/logging

      But it doesn't load. Just have a spinning wheel spinning.

      I use Cloudron with Gandi & Hetzner

      girishG 1 Reply Last reply
      1
      • jdaviescoatesJ Online
        jdaviescoatesJ Online
        jdaviescoates
        wrote on last edited by
        #4

        Hmz, I'm not getting this on another install of Nextcloud running the exact same version on the exact same Cloudron...but with less plugins, so I guess it may be one of the plugins that is causing it.

        Still would be nice to get it sorted 🙂

        I use Cloudron with Gandi & Hetzner

        1 Reply Last reply
        0
        • jdaviescoatesJ jdaviescoates

          Additionally, I clicked on the log shown in the screenshot above and it took my to /settings/admin/logging

          But it doesn't load. Just have a spinning wheel spinning.

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #5

          @jdaviescoates said in PHP configuration option output_buffering must be disabled:

          But it doesn't load. Just have a spinning wheel spinning.

          this one is a nextcloud bug. If you log to stdout/stderr instead of a file, that UI breaks.

          jdaviescoatesJ 1 Reply Last reply
          0
          • girishG girish

            @jdaviescoates said in PHP configuration option output_buffering must be disabled:

            But it doesn't load. Just have a spinning wheel spinning.

            this one is a nextcloud bug. If you log to stdout/stderr instead of a file, that UI breaks.

            jdaviescoatesJ Online
            jdaviescoatesJ Online
            jdaviescoates
            wrote on last edited by jdaviescoates
            #6

            @girish said in PHP configuration option output_buffering must be disabled:

            this one is a nextcloud bug.

            Got a link to an existing issue we can chime in on?

            @girish said in PHP configuration option output_buffering must be disabled:

            If you log to stdout/stderr instead of a file, that UI breaks.

            I've no idea what that means, but OK

            I use Cloudron with Gandi & Hetzner

            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #7

              Can you check if your /app/data/htaccess has https://github.com/nextcloud/server/blob/master/.htaccess#L71 ?

              (Note, this file is different from /app/data/.htaccess)

              <IfModule mod_php.c>
                php_value mbstring.func_overload 0
                php_value default_charset 'UTF-8'
                php_value output_buffering 0
                <IfModule mod_env.c>
                  SetEnv htaccessWorking true
                </IfModule>
              </IfModule>
              
              jdaviescoatesJ 1 Reply Last reply
              0
              • girishG girish

                Can you check if your /app/data/htaccess has https://github.com/nextcloud/server/blob/master/.htaccess#L71 ?

                (Note, this file is different from /app/data/.htaccess)

                <IfModule mod_php.c>
                  php_value mbstring.func_overload 0
                  php_value default_charset 'UTF-8'
                  php_value output_buffering 0
                  <IfModule mod_env.c>
                    SetEnv htaccessWorking true
                  </IfModule>
                </IfModule>
                
                jdaviescoatesJ Online
                jdaviescoatesJ Online
                jdaviescoates
                wrote on last edited by
                #8

                @girish said in PHP configuration option output_buffering must be disabled:

                php_value output_buffering 0

                It does have that, but within this:

                <IfModule mod_php7.c>
                  php_value mbstring.func_overload 0
                  php_value default_charset 'UTF-8'
                  php_value output_buffering 0
                  <IfModule mod_env.c>
                    SetEnv htaccessWorking true
                  </IfModule>
                

                Can't help notice that php7 in there, perhaps that's the issue.

                I use Cloudron with Gandi & Hetzner

                jdaviescoatesJ 1 Reply Last reply
                0
                • jdaviescoatesJ jdaviescoates

                  @girish said in PHP configuration option output_buffering must be disabled:

                  php_value output_buffering 0

                  It does have that, but within this:

                  <IfModule mod_php7.c>
                    php_value mbstring.func_overload 0
                    php_value default_charset 'UTF-8'
                    php_value output_buffering 0
                    <IfModule mod_env.c>
                      SetEnv htaccessWorking true
                    </IfModule>
                  

                  Can't help notice that php7 in there, perhaps that's the issue.

                  jdaviescoatesJ Online
                  jdaviescoatesJ Online
                  jdaviescoates
                  wrote on last edited by
                  #9

                  Aha, and in my other Nextcloud that isn't having this issue there is this:

                  # PHP 7.x
                  <IfModule mod_php7.c>
                    php_value mbstring.func_overload 0
                    php_value default_charset 'UTF-8'
                    php_value output_buffering 0
                    <IfModule mod_env.c>
                      SetEnv htaccessWorking true
                    </IfModule>
                  </IfModule>
                  
                  # PHP 8+
                  <IfModule mod_php.c>
                    php_value mbstring.func_overload 0
                    php_value default_charset 'UTF-8'
                    php_value output_buffering 0
                    <IfModule mod_env.c>
                      SetEnv htaccessWorking true
                    </IfModule>
                  </IfModule>
                  

                  I use Cloudron with Gandi & Hetzner

                  jdaviescoatesJ 1 Reply Last reply
                  0
                  • jdaviescoatesJ jdaviescoates

                    Aha, and in my other Nextcloud that isn't having this issue there is this:

                    # PHP 7.x
                    <IfModule mod_php7.c>
                      php_value mbstring.func_overload 0
                      php_value default_charset 'UTF-8'
                      php_value output_buffering 0
                      <IfModule mod_env.c>
                        SetEnv htaccessWorking true
                      </IfModule>
                    </IfModule>
                    
                    # PHP 8+
                    <IfModule mod_php.c>
                      php_value mbstring.func_overload 0
                      php_value default_charset 'UTF-8'
                      php_value output_buffering 0
                      <IfModule mod_env.c>
                        SetEnv htaccessWorking true
                      </IfModule>
                    </IfModule>
                    
                    jdaviescoatesJ Online
                    jdaviescoatesJ Online
                    jdaviescoates
                    wrote on last edited by
                    #10

                    So, I guess I could try just copy pasting this bit:

                    # PHP 8+
                    <IfModule mod_php.c>
                      php_value mbstring.func_overload 0
                      php_value default_charset 'UTF-8'
                      php_value output_buffering 0
                      <IfModule mod_env.c>
                        SetEnv htaccessWorking true
                      </IfModule>
                    </IfModule>
                    

                    Into the /app/data/htaccess file on the Nextcloud where I'm hitting this issue.

                    I guess that would very likely make it work...

                    But also wondering if I should perhaps just copy/ paste the whole file. Or perhaps the app package could include the above in an update?

                    I use Cloudron with Gandi & Hetzner

                    girishG 1 Reply Last reply
                    0
                    • jdaviescoatesJ jdaviescoates

                      So, I guess I could try just copy pasting this bit:

                      # PHP 8+
                      <IfModule mod_php.c>
                        php_value mbstring.func_overload 0
                        php_value default_charset 'UTF-8'
                        php_value output_buffering 0
                        <IfModule mod_env.c>
                          SetEnv htaccessWorking true
                        </IfModule>
                      </IfModule>
                      

                      Into the /app/data/htaccess file on the Nextcloud where I'm hitting this issue.

                      I guess that would very likely make it work...

                      But also wondering if I should perhaps just copy/ paste the whole file. Or perhaps the app package could include the above in an update?

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #11

                      @jdaviescoates yes, just copy/paste the whole file. Ideally, nextcloud should be "upgrading" this file but it isn't. Let me see why it's not.

                      1 Reply Last reply
                      2
                      • girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #12

                        I have fixed the code now to always copy over the latest htaccess.

                        1 Reply Last reply
                        2
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search