Blank page in Wordpress LAMP stack unexpectedly
-
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=blockLooking 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 89Cloning the app to a new one persists the blank page. I'm running out of ideas. Any help is appreciated, thank you.
-
@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
-
-
$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?