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

    Blank page in Wordpress LAMP stack unexpectedly

    WordPress (Developer)
    4
    8
    306
    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.
    • Z
      ZeZaung last edited by

      Everything was working fine one day and after I increased memory size to 1GB (probably unrelated) I got a Wordpress "white page of death". Empty HTML response.

      I also get a "403 Forbidden" Apache/2.4.41 (Ubuntu) Server at domain.com Port 443 when I go to /wp-admin

      I deleted all my plugins and current theme, the home page is still returning blank with the default wordpress favicon.

      These are the HTTP response headers:

      content-length: 0
      content-type: text/html; charset=UTF-8
      date: Thu, 25 Nov 2021 02:09:09 GMT
      referrer-policy: same-origin
      server: nginx
      strict-transport-security: max-age=63072000
      x-content-type-options: nosniff
      x-download-options: noopen
      x-permitted-cross-domain-policies: none
      x-xss-protection: 1; mode=block

      Looking at the cloudron logs:

      Nov 24 08:51:27 [GET] /healthcheck
      Nov 24 21:10:40 - - - [25/Nov/2021:02:10:40 +0000] "GET / HTTP/1.1" 200 - "-" "Mozilla (CloudronHealth)"
      Nov 24 21:10:43 66.249.70.53 - - [25/Nov/2021:02:10:43 +0000] "GET /24881ritsc8a39wicf30a HTTP/1.1" 200 10162 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
      Nov 24 21:10:50 - - - [25/Nov/2021:02:10:50 +0000] "GET / HTTP/1.1" 200 - "-" "Mozilla (CloudronHealth)"
      Nov 24 21:10:50 [Thu Nov 25 02:10:50.252770 2021] [php7:error] [pid 142] [client 62.221.254.71:46940] PHP Parse error: syntax error, unexpected '<', expecting end of file in /app/data/public/wp-config.php on line 89

      Cloning the app to a new one persists the blank page. I'm running out of ideas. Any help is appreciated, thank you.

      M 1 Reply Last reply Reply Quote 0
      • murgero
        murgero App Dev last edited by

        Is this the WordPress app or the LAMP app? If the LAMP app make sure ALL folders and files in /app/data/public are owned by www-data

        --
        https://urgero.org
        ~ Professional Nerd. Freelance Programmer. ~
        Matrix: @murgero:urgero.org

        1 Reply Last reply Reply Quote 1
        • M
          msbt App Dev @ZeZaung last edited by

          @zezaung said in Blank page in Wordpress LAMP stack unexpectedly:

          Nov 24 21:10:50 [Thu Nov 25 02:10:50.252770 2021] [php7:error] [pid 142] [client 62.221.254.71:46940] PHP Parse error: syntax error, unexpected '<', expecting end of file in /app/data/public/wp-config.php on line 89

          this suggests an error in your wp-config.php file in /app/data/public, you might want to check out line 89 and see what's missing

          1 Reply Last reply Reply Quote 2
          • girish
            girish Staff last edited by

            Indeed, as @msbt said the issue is there is a syntax error in your wp-config.php on line 89

            1 Reply Last reply Reply Quote 0
            • Moved from Support by  girish girish 
            • Z
              ZeZaung last edited by

              $chown www-data app/data/public
              

              No effect.

              I had some PHP debug code in wp-config.php on line 89, removed it.

              I tried adding the following:

              define( 'WP_DEBUG', true );
              define( 'WP_DEBUG_LOG', true);
              define( 'SCRIPT_DEBUG', true );
              

              There was no effect after restarting the LAMP stack. From the logs:

              Nov 25 19:35:28 - - [26/Nov/2021:00:35:28 +0000] "GET / HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"
              Nov 25 19:35:29 - - [26/Nov/2021:00:35:29 +0000] "GET /favicon.ico HTTP/1.1" 200 - "https://kingarthur.ca/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"

              Absolute blank page, no change at all. What can I do to debug this further?

              murgero 1 Reply Last reply Reply Quote 0
              • murgero
                murgero App Dev @ZeZaung last edited by

                @zezaung Would you like to DM me and we can talk in better detail?

                --
                https://urgero.org
                ~ Professional Nerd. Freelance Programmer. ~
                Matrix: @murgero:urgero.org

                Z 1 Reply Last reply Reply Quote 0
                • Z
                  ZeZaung @murgero last edited by

                  @murgero I sent you a DM on here a few hours ago happy to get some eyes on it, thanks

                  murgero 1 Reply Last reply Reply Quote 0
                  • murgero
                    murgero App Dev @ZeZaung last edited by

                    @zezaung hey sorry been sick today so I've been sleeping what page had the issue? Cause the site loads great for me

                    --
                    https://urgero.org
                    ~ Professional Nerd. Freelance Programmer. ~
                    Matrix: @murgero:urgero.org

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