admin管理员组文章数量:1302374
I was doing some small code changes on the theme, just changed HTML in one of the templates, and my website stopped working. I'm getting "This page isn’t working" HTTP ERROR 500 but only when I visit the website, wp admin works without problems.
Here is what I tried so far, but nothing worked: 1. Disable all plugins 2. Turn on WP_DEBUG and WP_DEBUG_LOG from wp-config.php - I'm not getting any error 3. Increase the memory limit to512M
Any ideas what else I can try?
I was doing some small code changes on the theme, just changed HTML in one of the templates, and my website stopped working. I'm getting "This page isn’t working" HTTP ERROR 500 but only when I visit the website, wp admin works without problems.
Here is what I tried so far, but nothing worked: 1. Disable all plugins 2. Turn on WP_DEBUG and WP_DEBUG_LOG from wp-config.php - I'm not getting any error 3. Increase the memory limit to512M
Any ideas what else I can try?
Share Improve this question edited May 9, 2019 at 23:00 fuxia♦ 107k38 gold badges255 silver badges459 bronze badges asked May 9, 2019 at 22:46 GocaGoca 211 silver badge3 bronze badges 6- Perhaps rename the template you were changing so that it won't be used? – Rick Hellewell Commented May 9, 2019 at 22:56
- I also tried to deactivate the theme I was changing and to activate one of Twenty theme. It didn't help. – Goca Commented May 9, 2019 at 23:00
- Have you looked at the error.log file? In the folder of your site, and/or the wp-admin folder? And the access logs of your server (separate from the error.log file). – Rick Hellewell Commented May 9, 2019 at 23:07
- I have only FTP login so I can't check server logs. I don't have any logs in WP folders. WP_DEBUG_LOG creates log file in wp-content if there are any errors, as far as I know, but I have no error files. – Goca Commented May 9, 2019 at 23:17
- If you rename the active theme folder to something else, that will deactivate it, and use one of the Twenty themes. That might get you access. Assuming you have WP 5.2? That should help you recover from white screen errors. You'll need hosting 'cpanel' access to look at server logs. You could also try reinstalling your theme files from a backup copy. Or maybe even a manual update/reinstall of WP (not a fresh install, since you don't want to overwrite config files. Codex has instructions on manual updates. – Rick Hellewell Commented May 9, 2019 at 23:37
1 Answer
Reset to default 1The solution that worked for me was to update WordPress to the latest version.
I tried deleting the theme and to run the website, it didn't work. It's very awkward how the website crashed down and I was surprised that updating WordPress actually solved the problem.
Thanks, to everyone who tried to help!
本文标签: wpadmin works but website doesn39t load
版权声明:本文标题:wp-admin works but website doesn't load 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741680841a2392158.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论