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条回答
SAY GOODBYE
2楼-- · 2019-03-11 06:24

Just visit the plugins folder and delete the last plugin you uploaded and should do the trick.

查看更多
唯我独甜
3楼-- · 2019-03-11 06:24

I found following solution working as I was using older version of wordpress.

  1. Open file blog/wp-admin/includes/screen.php in your favorite text editor.
  2. on line 706 find the following PHP statement: <?php echo self::$this->_help_sidebar; ?>
  3. Replace it with the statement: <?php echo $this->_help_sidebar; ?>
  4. Save your changes.
查看更多
做个烂人
4楼-- · 2019-03-11 06:25

I faced the same problem and I tried many things such as trying to login through wp-login.php instead of /wp-admin and adding ob_start() in /wp-admin/index.php (if you hit the url /wp-admin it goes for /wp-admin). It showed login page but entering the username and password shows an error like "cookies are blocked due to unexpected output".

I finally got the solution: it happens because the theme or plugins that you installed are not supported.

How to check and fix:

  • Rename the plugin folder name and theme folder name. If opening /wp-admin and entering a valid username and password the dashboard is shown, then it worked.

  • Revert the folder name of plugin and theme, then activate the themes and plugins one by one, cross-checking with /wp-admin. You will find out the unsupported plugin or theme.

查看更多
女痞
5楼-- · 2019-03-11 06:26

I ran into the same problem a few minutes ago, the problem was when I uploaded my local theme I had a bunch of tags separating each function I had in there I solved this by putting all the functions in one php tag... Hope this helps.

查看更多
再贱就再见
6楼-- · 2019-03-11 06:27

All your problem is solved right now just follow this instruction:

  1. go to your themes then de activate your current theme, just put "x" in the the first letter of your theme name.

for example this is your theme folder name: "mytheme" just put "x" in the first letter like this "xmytheme" tho di activate.

  1. Then after that go back to your wp-admin panel then BOOM! wp-admin accessable.

  2. When you access your wp-admin panel or you are on your dashboard, again activate your theme again, but before that. REMOVE THE "X" letter you putted in your theme name. example: "xmytheme" just remove "x", output like this: "mytheme"

  3. then activate it in your dashboard.

hope this help!.

查看更多
forever°为你锁心
7楼-- · 2019-03-11 06:28

In my case, I was able to see the backend, but in my front I was getting a blank page...

Nothing about debugging and disabling themes/plugins was useful...
After some research, I've realized that my index.php (located at the root directory, not the theme's one) was empty!
The only content was a message saying Silence is golden.

Using a backup I had, I could get back my original index.php and get the site working again.

查看更多
登录 后发表回答