最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

errors - White Screen on Site but wp-admin OK

programmeradmin4浏览0评论

I am hoping someone can help me - I have white screen on my whole site but wp-admin is full access and will update ok.

I have done the following:

Enabled debug in config - got errors around headers already sent contact form 7 so have disabled that.

Checked the code in my header file, as it was telling me headers already sent.

Added a memory define on config but it said I had already added it - referring to the one I just added - something tells me it's doing stuff twice?

Checked the last loop i added in a page - removed it, saved and reloaded - that didn't fix it (it was working originally anyway as it din't break the site).

Now I have no error messages but also no visible site. And no idea how to fix it. Can add whatever code needed here if anyone can point in the right direction?

UPDATE: I changed from the theme I am building to twenty fifteen and that loaded ok - think I have a php error somewhere - how do I find out where?

I am hoping someone can help me - I have white screen on my whole site but wp-admin is full access and will update ok.

I have done the following:

Enabled debug in config - got errors around headers already sent contact form 7 so have disabled that.

Checked the code in my header file, as it was telling me headers already sent.

Added a memory define on config but it said I had already added it - referring to the one I just added - something tells me it's doing stuff twice?

Checked the last loop i added in a page - removed it, saved and reloaded - that didn't fix it (it was working originally anyway as it din't break the site).

Now I have no error messages but also no visible site. And no idea how to fix it. Can add whatever code needed here if anyone can point in the right direction?

UPDATE: I changed from the theme I am building to twenty fifteen and that loaded ok - think I have a php error somewhere - how do I find out where?

Share Improve this question edited May 3, 2017 at 9:23 Tracy asked May 3, 2017 at 9:03 TracyTracy 1252 silver badges13 bronze badges 11
  • - have you tried ob_start(); after get_header() ? this will buffer output before display... – Aishan Commented May 3, 2017 at 9:08
  • That doesn't seem to do anything. – Tracy Commented May 3, 2017 at 9:20
  • seems like there is a problem in your functions.php file. plz add that code on the begining of functions.php file.. – Aishan Commented May 3, 2017 at 9:35
  • That's not done anything. Added functions.php to question. – Tracy Commented May 3, 2017 at 9:51
  • I've not added it as it messes up :/ – Tracy Commented May 3, 2017 at 9:57
 |  Show 6 more comments

1 Answer 1

Reset to default 1

It is usually because there are spaces, new lines, or other stuff before an opening <?php tag or after a closing ?> tag, typically in wp-config.php or any of your theme or plugin files.

Please check your theme and remove white space from top and bottom of your files.

发布评论

评论列表(0)

  1. 暂无评论