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
  • Brite
  • 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 - Status | 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 9.8k 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 Offline
    jdaviescoatesJ Offline
    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 Offline
      jdaviescoatesJ Offline
      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 Offline
          jdaviescoatesJ Offline
          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 Offline
              jdaviescoatesJ Offline
              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 Offline
                jdaviescoatesJ Offline
                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 Offline
                  jdaviescoatesJ Offline
                  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

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      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