theme development - Why am I getting a white screen without a slash at the end of the address?

I am currently building a custom Wordpress theme for my rugby team. I just noticed something and I can't work out w

I am currently building a custom Wordpress theme for my rugby team. I just noticed something and I can't work out whether this has been happening for a while and I have only just noticed it or it is a new thing.

It would appear that any page address without a slash at the end of the address renders a white screen of death.

For example

(url)/fixtures/

works fine but

(url)/fixtures

Gives me a WSOD

I am currently building a custom Wordpress theme for my rugby team. I just noticed something and I can't work out whether this has been happening for a while and I have only just noticed it or it is a new thing.

It would appear that any page address without a slash at the end of the address renders a white screen of death.

For example

(url)/fixtures/

works fine but

(url)/fixtures

Gives me a WSOD

Share Improve this question asked May 27, 2014 at 14:11 Ben WainwrightBen Wainwright 1291 silver badge7 bronze badges 2
  • Have you tried removing the trailing slash in your permalink structure from Settings->Permalinks and then save the changes? d.pr/i/X2sR – TomHarrigan Commented May 27, 2014 at 14:14
  • 2 Typical behavior is a redirect from slash-less to slashed. Do you have this trouble with a buncled theme like Twenty Fourteen and with plugins disabled? – s_ha_dum Commented May 27, 2014 at 14:41
Add a comment  | 

2 Answers 2

Reset to default -1

I solved my own problem by debugging all the different functions.php includes.

One of the files had some whitespace at the beginning.

I had the same issue, turns out i had ?> at the end of functions.php that was NOT needed. Deleted it and all is fixed.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745608889a4635832.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信