wp-admin shows blank page, how to fix it?

2019-03-11 05:54发布

I am working with WordPress 3.5.8. Yesterday I made some changes into it to a friend. I don't know what happened, but after some time when I try to log in at wp-admin side and execute URL www.mysite.com/wp-admin it shows me a blank page. How do I solve this? I have searched over the internet and blogs. I found it could be related to hosting problems or brute force-attack, but I don't think that that's what happened to my site.

Links I visited:

标签: php wordpress
21条回答
太酷不给撩
2楼-- · 2019-03-11 06:41

[6] was spot on. I had the same problem ie a blank screen where wp-admin should have been Renaming plugins to pluginss let me get back in.

I also had a blank screen for my blog. The solution was to copy up a backup copy of wp-config,php somehow the 'live' wp-config.php had been replaced with a file size of zero.

It seems that it is very important to have an off-line backup The easy way to copy of the files is Filezilla (freeware)

You need a wordpress plugin for database backup - ie to back up all your pages and posts. But the pros will tell you that you need to get a

Peter

查看更多
贼婆χ
3楼-- · 2019-03-11 06:42

After dozens of times trying to fix this problem reading forums and posts, reinstalling WordPress, removing white spaces, putting lines of code in wp-config.php, index.php, admin.php, I fixed the issue just by renaming the plugins folder to "pluginss" in FTP. So wordpress asked me to update the database. I updated and I could enter at /wp-admin. A plugin was causing some conflict, so when I rename the plugins folder, all plugins automatically has been disabled.

As I was inside the /wp-admin dashboard, I could rename the "pluginss" folder to the regular name and start to activate all the plugins one by one and see what plugin was broken.

Now is 100% fine.

查看更多
SAY GOODBYE
4楼-- · 2019-03-11 06:42

Go to your functions.php page and delete any spaces immediately above or below your PHP tags.

查看更多
成全新的幸福
5楼-- · 2019-03-11 06:44

In my case, wp-admin/post.php blank screen was fixed by removing the " ?> " at the end of my function.php in my child theme. I don't know how the end tag ended in there, but removing it solved my problems.

查看更多
劳资没心,怎么记你
6楼-- · 2019-03-11 06:44

I have experienced the same problem as well. The reason was, that the functions.php was configured wrongly.

I did the following to solve the problem:

  • In my child theme, I backed up all my files
  • Then I deleted all of them leaving only the style.css page.
  • I could then log in.

On reloading my functions.php I found it was the culprit. I rewrote the php and it was fine.

查看更多
Ridiculous、
7楼-- · 2019-03-11 06:47

I had this problem (not showing /wp-admin/), when I moved my site to new host. i solve this problem by: 1. Re mane activated theme's folder 2. Install that them again and active it 3. copy and re place some customized file like .css .js from backup

Now problem solved.

查看更多
登录 后发表回答