Title: Login issue
Last modified: May 19, 2019

---

# Login issue

 *  Resolved [sthirunavu](https://wordpress.org/support/users/sthirunavu/)
 * (@sthirunavu)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/login-issu/)
 * Earlier I have an issue of AMP indexing for custom Javascript not allowed. I 
   found that WP performance plugin was causing the issue. Hence I deactivate and
   delete the plugin. Immediately afterward I could not access my admin dashboard.
 * I have followed the steps given in login issues at wordpress.org. Renamed plugin,
   theme, recopied login.php change pwd in myphpadmin user database and everything.
   The same issue is repeating. Error message is Sorry you are not allowed to access
   this page.
 * Kindly help.
 * Regards
    -  This topic was modified 6 years, 12 months ago by [sthirunavu](https://wordpress.org/support/users/sthirunavu/).
      Reason: corrected mispelt word
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Flogin-issu%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [ProjectArmy](https://wordpress.org/support/users/supporthero/)
 * (@supporthero)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/login-issu/#post-11548916)
 * It’s possible your admin user lost capabilities to access stuff. You can try 
   resetting capabilities to see if that helps.
 * **Make sure you download/export database backup before doing anything.**
 * Add this code to your functions.php file in your active theme:
 *     ```
       if ( !function_exists( 'populate_roles' ) ) {
       require_once( ABSPATH . 'wp-admin/includes/schema.php' );
       }
   
       populate_roles();
       ```
   
 * Then load your website in browser to trigger it. Then try to login. Hopefully
   that’ll fix your problem and will allow you to login.
 * After you’re done, you can remove this code from functions.php.
 *  Thread Starter [sthirunavu](https://wordpress.org/support/users/sthirunavu/)
 * (@sthirunavu)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/login-issu/#post-11549329)
 * Thanks for your suggestion. I followed this and find the same result.
 * I have enabled php debugging and the following errors came.
 * 1. Notice: Undefined offset: 0 in /home1/classicy/public_html/wp-content/plugins/
   simple-link-directory/class-qc-free-plugin-upgrade-notice.php on line 175
 * 2. Notice: Undefined index: jetpack in /home1/classicy/public_html/wp-content/
   plugins/jetpack/_inc/lib/admin-pages/class-jetpack-about-page.php on line 97
 * 3. Warning: Invalid argument supplied for foreach() in /home1/classicy/public_html/
   wp-content/plugins/jetpack/_inc/lib/admin-pages/class-jetpack-about-page.php 
   on line 97
 * Sorry, you are not allowed to access this page.
 * Kindly advice
 *  Thread Starter [sthirunavu](https://wordpress.org/support/users/sthirunavu/)
 * (@sthirunavu)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/login-issu/#post-11549344)
 * Thanks for the reply.
    It works. Initially, I forgot to trigger it by loading
   website. Thanks and regards
 *  Thread Starter [sthirunavu](https://wordpress.org/support/users/sthirunavu/)
 * (@sthirunavu)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/login-issu/#post-11549539)
 * But all my posts show 404 error
 *  [ProjectArmy](https://wordpress.org/support/users/supporthero/)
 * (@supporthero)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/login-issu/#post-11551542)
 * Check your htaccess file, make sure you have this there:
 *     ```
       # BEGIN WordPress
   
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
   
       # END WordPress
       ```
   
 * If it’s there but posts still show 404, go to Settings > Permalinks and click
   Save. This will flush and reset permalinks, and usually fixes many 404 issues.
 *  Thread Starter [sthirunavu](https://wordpress.org/support/users/sthirunavu/)
 * (@sthirunavu)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/login-issu/#post-11551934)
 * Nothing found in there.
    I have copied this. I suppose file permissions have 
   changed. I have given 644 like similar files. Now it works. Thank you
 *  [ProjectArmy](https://wordpress.org/support/users/supporthero/)
 * (@supporthero)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/login-issu/#post-11552600)
 * That’s also a possibility. Glad to hear it’s working now.
    -  This reply was modified 6 years, 12 months ago by [ProjectArmy](https://wordpress.org/support/users/supporthero/).
      Reason: Typ

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

The topic ‘Login issue’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [ProjectArmy](https://wordpress.org/support/users/supporthero/)
 * Last activity: [6 years, 12 months ago](https://wordpress.org/support/topic/login-issu/#post-11552600)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
