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

前端 未结 23 695
别跟我提以往
别跟我提以往 2021-02-02 13:14

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

相关标签:
23条回答
  • 2021-02-02 13:33

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

    0 讨论(0)
  • 2021-02-02 13:33

    That white screen of death happened to my blog, and what I did was that I renamed the theme and plugin, and everything was back to normal.

    0 讨论(0)
  • 2021-02-02 13:34

    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.

    In my case I had the same problem. Helped remove the wp-config.php file. Wordpress created new wp-config.php file and wp-admin is working flawlessly now. Rename plugins, themes folder does not help.

    0 讨论(0)
  • 2021-02-02 13:36

    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.

    0 讨论(0)
  • 2021-02-02 13:38

    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.

    0 讨论(0)
  • 2021-02-02 13:39

    Try turning on WP Debug. If this is happening due to a PHP error (which I bet that it is), you will be able to see what's going on and fix the error.

    0 讨论(0)
提交回复
热议问题