admin管理员组文章数量:1318027
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
1 Answer
Reset to default 1It 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.
本文标签: errorsWhite Screen on Site but wpadmin OK
版权声明:本文标题:errors - White Screen on Site but wp-admin OK 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742026402a2415621.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论