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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    PHP configuration option output_buffering must be disabled

    Nextcloud
    2
    12
    479
    Loading More Posts
    • 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.
    • jdaviescoates
      jdaviescoates last edited by 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

      I use Cloudron with Gandi & Hetzner

      jdaviescoates 1 Reply Last reply Reply Quote 0
      • jdaviescoates
        jdaviescoates @jdaviescoates last edited by

        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 Reply Quote 1
        • jdaviescoates
          jdaviescoates last edited by

          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

          girish 1 Reply Last reply Reply Quote 1
          • jdaviescoates
            jdaviescoates last edited by

            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 Reply Quote 0
            • girish
              girish Staff @jdaviescoates last edited by

              @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.

              jdaviescoates 1 Reply Last reply Reply Quote 0
              • jdaviescoates
                jdaviescoates @girish last edited by jdaviescoates

                @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 Reply Quote 0
                • girish
                  girish Staff last edited by

                  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>
                  
                  jdaviescoates 1 Reply Last reply Reply Quote 0
                  • jdaviescoates
                    jdaviescoates @girish last edited by

                    @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

                    jdaviescoates 1 Reply Last reply Reply Quote 0
                    • jdaviescoates
                      jdaviescoates @jdaviescoates last edited by

                      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

                      jdaviescoates 1 Reply Last reply Reply Quote 0
                      • jdaviescoates
                        jdaviescoates @jdaviescoates last edited by

                        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

                        girish 1 Reply Last reply Reply Quote 0
                        • girish
                          girish Staff @jdaviescoates last edited by

                          @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 Reply Quote 2
                          • girish
                            girish Staff last edited by

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

                            1 Reply Last reply Reply Quote 2
                            • First post
                              Last post
                            Powered by NodeBB