• Resolved Dsf190

    (@dsf190)


    When I try to login to the admin area on my website at
    http://www.mcrafthost.net/wp-login.php
    It just redirects me back to the login page even though I typed the correct username and password. Why is this happening?

    Sometimes it does work, and when it does it says that I do not have sufficient permission to access the page.

Viewing 15 replies - 16 through 30 (of 31 total)
  • esmi

    (@esmi)

    Then I cannot help you as I do not want the responsibility of fixing your problem and thereby opening your site up for anyone to log into. Sorry.

    Thread Starter Dsf190

    (@dsf190)

    Okay, I changed the password. I thought it might help by allowing you guys to replicate the problem, but obviously not.

    Thread Starter Dsf190

    (@dsf190)

    Anyone else have any suggestions? I just did a search and replace on all my SQL databases and all of them were fine.

    esmi

    (@esmi)

    Try checking your site’s error logs for related error messages. Your host should be able to help you in accessing your site’s error logs.

    Thread Starter Dsf190

    (@dsf190)

    There are no error logs to be found..is there a way to change a user’s permissions through the editing of a php file or MySQL database?

    esmi

    (@esmi)

    Using Phpmyadmin (or another MySQL management tool), first backup your database. Then navigate to your wp_usermeta table and locate the meta_key called “wp_capabilities” for your user_id. Change the meta-value for this record to:

    a:1:{s:13:"administrator";s:1:"1";}

    Thread Starter Dsf190

    (@dsf190)

    That didn’t fix either of the problems. Any other suggestions?

    Thanks for the help, btw 🙂

    esmi

    (@esmi)

    Do you still have access to the old site?

    Thread Starter Dsf190

    (@dsf190)

    I still have access to the databases and the file manager.

    esmi

    (@esmi)

    But you cannot check to see if the old login still works?

    Thread Starter Dsf190

    (@dsf190)

    No because the old web hosting is no longer active, I can only access databases and the file manager. It might be worth mentioning both the servers are on Linux but one was cPanel and I am using a different control panel now.

    Thread Starter Dsf190

    (@dsf190)

    Anyone else have any suggestions?

    wprock

    (@wprock)

    Open the phpmyadmin and go to wp_options table. There have a record for wp_user_roles. Modify the values with this:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    a:5:{s:13:"administrator";a:2:{s:4:"name";s:13:"Administrator";s:12:"capabilities";a:62:{s:13:"switch_themes";b:1;s:11:"edit_themes";b:1;s:16:"activate_plugins";b:1;s:12:"edit_plugins";b:1;s:10:"edit_users";b:1;s:10:"edit_files";b:1;s:14:"manage_options";b:1;s:17:"moderate_comments";b:1;s:17:"manage_categories";b:1;s:12:"manage_links";b:1;s:12:"upload_files";b:1;s:6:"import";b:1;s:15:"unfiltered_html";b:1;s:10:"edit_posts";b:1;s:17:"edit_others_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:10:"edit_pages";b:1;s:4:"read";b:1;s:8:"level_10";b:1;s:7:"level_9";b:1;s:7:"level_8";b:1;s:7:"level_7";b:1;s:7:"level_6";b:1;s:7:"level_5";b:1;s:7:"level_4";b:1;s:7:"level_3";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:17:"edit_others_pages";b:1;s:20:"edit_published_pages";b:1;s:13:"publish_pages";b:1;s:12:"delete_pages";b:1;s:19:"delete_others_pages";b:1;s:22:"delete_published_pages";b:1;s:12:"delete_posts";b:1;s:19:"delete_others_posts";b:1;s:22:"delete_published_posts";b:1;s:20:"delete_private_posts";b:1;s:18:"edit_private_posts";b:1;s:18:"read_private_posts";b:1;s:20:"delete_private_pages";b:1;s:18:"edit_private_pages";b:1;s:18:"read_private_pages";b:1;s:12:"delete_users";b:1;s:12:"create_users";b:1;s:17:"unfiltered_upload";b:1;s:14:"edit_dashboard";b:1;s:14:"update_plugins";b:1;s:14:"delete_plugins";b:1;s:15:"install_plugins";b:1;s:13:"update_themes";b:1;s:14:"install_themes";b:1;s:11:"update_core";b:1;s:10:"list_users";b:1;s:12:"remove_users";b:1;s:9:"add_users";b:1;s:13:"promote_users";b:1;s:18:"edit_theme_options";b:1;s:13:"delete_themes";b:1;s:6:"export";b:1;}}s:6:"editor";a:2:{s:4:"name";s:6:"Editor";s:12:"capabilities";a:34:{s:17:"moderate_comments";b:1;s:17:"manage_categories";b:1;s:12:"manage_links";b:1;s:12:"upload_files";b:1;s:15:"unfiltered_html";b:1;s:10:"edit_posts";b:1;s:17:"edit_others_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:10:"edit_pages";b:1;s:4:"read";b:1;s:7:"level_7";b:1;s:7:"level_6";b:1;s:7:"level_5";b:1;s:7:"level_4";b:1;s:7:"level_3";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:17:"edit_others_pages";b:1;s:20:"edit_published_pages";b:1;s:13:"publish_pages";b:1;s:12:"delete_pages";b:1;s:19:"delete_others_pages";b:1;s:22:"delete_published_pages";b:1;s:12:"delete_posts";b:1;s:19:"delete_others_posts";b:1;s:22:"delete_published_posts";b:1;s:20:"delete_private_posts";b:1;s:18:"edit_private_posts";b:1;s:18:"read_private_posts";b:1;s:20:"delete_private_pages";b:1;s:18:"edit_private_pages";b:1;s:18:"read_private_pages";b:1;}}s:6:"author";a:2:{s:4:"name";s:6:"Author";s:12:"capabilities";a:10:{s:12:"upload_files";b:1;s:10:"edit_posts";b:1;s:20:"edit_published_posts";b:1;s:13:"publish_posts";b:1;s:4:"read";b:1;s:7:"level_2";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:12:"delete_posts";b:1;s:22:"delete_published_posts";b:1;}}s:11:"contributor";a:2:{s:4:"name";s:11:"Contributor";s:12:"capabilities";a:5:{s:10:"edit_posts";b:1;s:4:"read";b:1;s:7:"level_1";b:1;s:7:"level_0";b:1;s:12:"delete_posts";b:1;}}s:10:"subscriber";a:2:{s:4:"name";s:10:"Subscriber";s:12:"capabilities";a:2:{s:4:"read";b:1;s:7:"level_0";b:1;}}}
    Thread Starter Dsf190

    (@dsf190)

    There is no record for wp_user_roles in my wp_options table. Should I create one?

    wprock

    (@wprock)

    No. It is there. option_id should be 99.

Viewing 15 replies - 16 through 30 (of 31 total)

The topic ‘Cannot log into admin area’ is closed to new replies.