wordpress エラーログ出力

.htaccessに以下の1行を追加

php_flag display_errors On

# 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>

//==この一行を追加
php_flag display_errors On

# END WordPress

.htaccessは再帰的にしたの階層まで適用されるので、 themeのフォルダ以下に追加すれば良い。

IfModule mod_rewrite.c 以下はWEBサーバーが、ルーティングを決めている.

ワードプレスは独自のルーティングがあるので、それを決めている所

エラーログはありがたい!

f:id:happy_teeth_ago:20190309192616p:plain

ファイルの場所

大抵は、ワードプレスをインストールしたフォルダ直下にあります。 ないときは、隠しファイルを表示してみてください。 必ずあります。