修复了 WordPress 中的 500 错误
注意:我没有安装 WordPress,当我到达这里时它就在这里。基本上,无论谁设置它,都将它用作 CMS,其结构如下:
index->mainIndex.php /weblog/ ->archives.php
如果我们尝试从网站的 /weblog 部分访问永久链接,我们会收到 500 错误。我已经尝试了书中的每一个 .htaccess 技巧,但我似乎无法弄清楚这一点。
在此处查看网站:gamedesk.org,查看博客选项卡。任何永久链接(在标题中)都会抛出 500。我也尝试了管理面板中永久链接的每种排列。
编辑:已解决。检查了 Apache 服务器日志 - 错误的分号引发了错误,但 PHP 没有设置为处理错误,因此 Apache 抛出了 500。孩子们,一定要检查日志!
Note: I didn't do this install of Wordpress, it was here when I get here. Basically, whoever set it up is using it as a CMS and it's structured like so:
index->mainIndex.php
/weblog/ ->archives.php
If we try to access a Permalink from the /weblog portion of the site, we get a 500 error. I've tried every .htaccess trick in the book, I can't seem to get to the bottom of this.
View the site here: gamedesk.org , check out the weblog tab. Any permalink (In the titles) will throw a 500. I've tried every permutation of permalink from the admin panel, as well.
EDIT: Solved. Checked the Apache server logs- A misplaced semicolon was tossing an error, but PHP wasn't set up to handle errors so Apache tossed a 500 instead. Always check the logs, kids!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您也可以在第一个 php 文件的开头执行此操作:
Also you can do this in the beginning of your first php file: