Title: Can&#8217;t access wp-admin.php
Last modified: November 9, 2024

---

# Can’t access wp-admin.php

 *  [yondermann](https://wordpress.org/support/users/yondermann/)
 * (@yondermann)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cant-access-wp-admin-php-2/)
 * Hi,
 * I’ve got a problem with this site for quite a while now. Every now and again 
   I try to fix it or ask someone to have a look but so far I couldn’t manage it.
 * So, the problem is that I can’t access the wp-admin.php page.
 *  Curiously there is a workaround where I can still log into the website and do
   all the things.
 *  So far there were two exceptions:
    1. Setting up google site kit because that requires the access of the wp-amind.
       php page.
    2. I can’t create posts with the block editor directly. I need to create a post
       with the Classic editor plugin turned on. Edit the post and change the author
       of the post to someone else but the person who is signed in. Save the article
       and then I can change to the block editor and then I can edit the post with 
       the block editor.
 * The way I log in is going directly to the wp-login.php page. When I log in I’m
   redirected to the wp-admin.php page. But when I go to any of the site’s pages
   there is the admin bar. So by clicking on page edit I’m able to edit the page
   and from there I can go to the admin area. Of course going directly to the wp-
   admin/edit.php or wp-admin/plugins.php page works too.
 * The dashboard menu item is missing.
 * I’m the admin of the site with all the privileges. I can install remove or do
   whatever I want with plugins and posts.
 * I’ve tried disabling all the plugins. Reverting back to the default wordpress
   theme. Added new admin accounts.
 * I can’t restore the site because I don’t know when this thing broke and since
   then a ton of material was posted. Also I may not even have a backup of the site
   when it was working perfectly.
 * I’m open to any suggestions.
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcant-access-wp-admin-php-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cant-access-wp-admin-php-2/#post-18124327)
 * > So, the problem is that I can’t access the wp-admin.php page.
 * Did you mean `/wp-admin/`?
 * If not, then I don’t know what you’re referring to here… as `wp-admin.php` should
   not exist.
 * The WordPress administration dashboard is in the directory `/wp-admin/` which
   loads the index file `index.php`. There are a bunch of files in this directory
   responsible for various administration screens and functions, like `admin.php`,`
   edit.php`, `plugins.php`, `options.php`, etc. But there’s no `wp-admin.php` here
   or in the root — so accessing `/wp-admin.php` or `/wp-admin/wp-admin.php` **_should_**
   give you a 404: not found error.
 * If you meant `/wp-admin/`, then what exactly do you see when you go here? If 
   there’s some error, can you share the exact error message and/or screenshot with
   us?
 * > The way I log in is going directly to the wp-login.php page. When I log in 
   > I’m redirected to the wp-admin.php page.
 * Please confirm the exact URL you’re redirected to after logging in.
 * If you’re, indeed, being redirected to `wp-admin.php` (and not `/wp-admin/`),
   then it’s something on your site causing this, as this is not the expected WordPress
   behaviour.
 *  Thread Starter [yondermann](https://wordpress.org/support/users/yondermann/)
 * (@yondermann)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cant-access-wp-admin-php-2/#post-18124533)
 * Yes indeed. I meant wp-admin/ .
 * I get redirected to the [https://www.suncakemom.com/wp-admin/](https://www.suncakemom.com/wp-admin/)
   page after logging in. I get this message:
   Sorry, you are not allowed to access
   this page.
 * But if I go to [https://www.suncakemom.com/wp-admin/edit.php](https://www.suncakemom.com/wp-admin/edit.php)
   I can see all the posts and do whatever admins can do except the above already
   mentioned limitations.
 * Thanks!
 *  [George Tasioulis](https://wordpress.org/support/users/georgetasioulis/)
 * (@georgetasioulis)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cant-access-wp-admin-php-2/#post-18125207)
 * Maybe your account isn’t an admin account but an editor, or you’re using a plugin
   that allows you to customize the permissions of WordPress users and have removed
   some permissions?
 * Do you see your user as an Administrator here [https://www.suncakemom.com/wp-admin/users.php](https://www.suncakemom.com/wp-admin/users.php)?
 *  Thread Starter [yondermann](https://wordpress.org/support/users/yondermann/)
 * (@yondermann)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cant-access-wp-admin-php-2/#post-18126115)
 * On the page you linked it says I’m an administrator. I also have two editors 
   and those two have restricted privileges.
 *  I’ve created new admin accounts just to see if those would work but they are
   the same as mine. I also checked and changed file permissions but it didn’t make
   a difference either.
 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cant-access-wp-admin-php-2/#post-18126135)
 * Enable debugging: [https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
 * And let’s know what error is triggered when you try to access the dashboard’s
   homepage.
 *  Thread Starter [yondermann](https://wordpress.org/support/users/yondermann/)
 * (@yondermann)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cant-access-wp-admin-php-2/#post-18126238)
 * I’ve enabled debugging and added the required code to the wp-config.php :
 * // Enable WP_DEBUG mode
   define( ‘WP_DEBUG’, true );
 * 
   // Enable Debug logging to the /wp-content/debug.log filedefine( ‘WP_DEBUG_LOG’,
   true );// Disable display of errors and warningsdefine( ‘WP_DEBUG_DISPLAY’, false);
   @ini_set( ‘display_errors’, 0 );// Use dev versions of core JS and CSS files (
   only needed if you are modifying these core files)define( ‘SCRIPT_DEBUG’, true);
 * No debug.log file was created. I created a debug.log file to see if it gets populated
   but nothing was written there. I suppose this means that there were no errors,
   right?
 *  Thread Starter [yondermann](https://wordpress.org/support/users/yondermann/)
 * (@yondermann)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cant-access-wp-admin-php-2/#post-18153563)
 * Any idea what should I do next or where to go for help?
 *  [obidjon1122](https://wordpress.org/support/users/obidjon1122/)
 * (@obidjon1122)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/cant-access-wp-admin-php-2/#post-18428320)
 * i have i problem.
 * I have a admin accaunt to my web site . i enter to admin page and then i writed:
   [https://ufez.uz](https://ufez.uz) and my web page gives me
 * “There has been a critical error on this website.
 * [Learn more about troubleshooting WordPress.”](https://wordpress.org/documentation/article/faq-troubleshooting/)
   message and i can’t see my home page and i can’t edit my homepage so i can’t 
   edit homepage. when i loge ooute my admin accaunt then i can see my homepage 
   why who can help me ? please?

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Can’t access wp-admin.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 4 participants
 * Last reply from: [obidjon1122](https://wordpress.org/support/users/obidjon1122/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/cant-access-wp-admin-php-2/#post-18428320)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
