A strange thing happened the other day. One day, I could log into WordPress and everything was fine. The very next day, when I loaded up the /wp-admin page, I just got a blank screen. I tried going directly to wp-login.php, but again, just a blank screen. I checked the Apache error logs, and there wasn’t anything strange in there. I then checked the PHP error logs and found:
[08-May-2013 19:51:44 UTC] PHP Fatal error: Unknown: Failed opening required '/path/on/server/web-root-dir/wp-login.php' (include_path='.:/usr/local/php:/usr/share/pear') in Unknown on line 0
I checked, and wp-login.php was exactly where it was supposed to be. However, upon closer inspection, the file permissions were completely cleared out for this file. I reset the file permissions using:
chmod 644 wp-login.php
I went refreshed the wp-admin page, and everything worked again. Still investigating why this file permission changed occurred, but wanted to document what I had done to fix it while I still remembered.
Hi There Beth,
Thanks for the above, I installed wordpress in my web hosts cpanel account and I was able to login to mydomain/wp-admin and install a theme and everything but yesterday I went to upload an image but I received a blank white screen that said “Cheatin, uh?”. Ever since that I cant go into my admin page to modify my theme or upload a new one. I have access to my wordpress.com options only and you can’t upload your own themes there….
How can I fix this?
All the Best
Hi Daniel,
Are you hosting on WordPress.com? If so, you should submit a support request to them and ask them for help. However, it sounds like it might be an issue with one of your plug-ins or themes not being compatible with your current version of WordPress. You can try deactivating all of your plug-ins (if you can’t access them through the admin panel, here are instructions for other ways to deactivate them: http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F). You could also try deleting any themes and plug-ins you aren’t using. Even inactive themes and plug-ins may still cause some problems for you. If everything works again after you delete all of your themes and plug-ins, try adding them back one at a time so you can determine which one is causing the issue. You could also try reinstalling WordPress from scratch. Make sure to back everything up before you do anything.
Hope this helps!
Hi!,
I also a problem with my site that when I trie to go to wp-admin, it will appear blank page and I tried also to go to wp-login.php, there’s a login page but i can’t also access because of an errof
“ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
I already enable cookies but still cannot login..
any idea would be great
Which browser are you using? Make sure that you are accepting cookies for the www. version and without the www (depending on which ones your site is using). It’s also possible that your site is being cached by the browser. Try doing a forced-refresh (control + F5 or command + F5). Also double-check that when you are going to /wp-login.php that the domain name isn’t changing.
I am curious to find out what blog platform you are utilizing?
I’m experiencing some minor security issues with my latest blog and I would like too find something more secure.
Do you have any recommendations?
If you are experiencing security issues with your blog, I would make sure you are on the latest version of your blogging software, but also take a look at your hosting company. Many security issues come through the hosting company, not the blogging software.
I generally use SiteGround or Dreamhost if I need simple shared hosting for a WordPress blog. Both offer some nice safety features for protecting a WordPress site. SiteGround has an awesome feature where they will scan your site and send you a report letting you know it is clean. Really helpful for keeping an eye on WordPress sites. Dreamhost has a similar feature which scans for malware once a week and helps automatically clean it up. SiteGround also makes it really easy to install external security features like CloudFlare and such.