Reputation: 3447
I know there are a thousand white-screen issues posted about wordpress, but for some reason I can't find the answer.
I'm running PHP 7.1
A small "side note" - I added an index.html file that won't list at the root url, only if I type in url.com/index.html does it come up - perhaps related?
I started with a fresh database just now, the problem still persists. The server shows plenty of access log attempts but zero errors. I'm starting to think this is an apache conf issue even though I have copied the default from WP many times and verified it's being read.
Upvotes: 1
Views: 3973
Reputation: 1391
Put in wp.config:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', true);
Also, verify .htaccess
Upvotes: 0
Reputation: 732
1- Wordpress has a built-in Debug function, you just need to enable it through wp-config.php
error_reporting(E_ALL); ini_set('display_errors', 1);
define( 'WP_DEBUG', true );
From now on you should be able to view where's the error is coming from.
2- White screen is a result of a lack of PHP memory. Add this line as well to your wp-config:
define( 'WP_MEMORY_LIMIT', '256M' );
3- Just to be sure download latest version of wordpress from https://wordpress.org/ and then Upload only wp-admin | wp-includes and other *.php files that are outside the folders.
4- You might also want to check your .htaccess
and make sure it looks standard like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Upvotes: 1