简体   繁体   English

无法通过 wp-admin 登录访问 WordPress CMS 仪表板

[英]Can't access WordPress CMS dashboard via wp-admin login

i don't know why but I can't access my wordpress dashboard.我不知道为什么,但我无法访问我的 wordpress 仪表板。 I'm using latest version.我正在使用最新版本。

What I've tried so far:到目前为止我已经尝试过:

  1. I've checked permisions in database - everything is ok,我检查了数据库中的权限 - 一切正常,
  2. Prefix in database is ok,数据库中的前缀是可以的,
  3. I've removed wp-admin and wp-includes and I've uploaded new files from latest version and from 4.5.3 - still nothing,我已经删除了 wp-admin 和 wp-includes 并且我已经从最新版本和 4.5.3 上传了新文件 - 仍然没有,
  4. I've renamed plugins folder, themes folder and even all wp-content - still no permission,我已经重命名了 plugins 文件夹,themes 文件夹,甚至所有的 wp-content - 仍然没有权限,
  5. Any user cant access dashboard - not only admin任何用户都无法访问仪表板 - 不仅是管理员

After logging in I'm redirected to home page instead of wp-admin.登录后,我被重定向到主页而不是 wp-admin。 After login the admin bar is visible but without admin options and the link with my page name leads to home page not home page/wp-admin.登录后,管理栏是可见的,但没有管理选项,并且带有我的页面名称的链接指向主页而不是主页/wp-admin。

Any ideas?有任何想法吗?

I just experienced a similar issue last week, but the MD5-hash reset for the user-admin password proved to be the best remediation as advised by the WordPress Codex . 我上周刚刚遇到过类似的问题,但事实证明,如WordPress Codex所建议的那样,重置用户管理员密码的MD5哈希值是最好的补救措施。 If you're uncomfortable with the command-line and unfamiliar with Python, I recommend the following solution via phpMyAdmin: 如果您对命令行不满意并且不熟悉Python,建议您通过phpMyAdmin使用以下解决方案:

  1. Begin by logging into phpMyAdmin and clicking databases . 首先登录phpMyAdmin并单击数据库
  2. A list of databases will appear. 将显示数据库列表。 Click your WordPress database. 单击您的WordPress数据库。
  3. All the tables in your database will appear. 数据库中的所有表都会出现。 If not, click Structure . 如果不是,请单击“ 结构”
  4. Look for wp_users in the Table column. 在“表”列中查找wp_users
  5. Click on the icon for browse . 单击图标进行浏览
  6. Locate your Username under user_login. 在user_login下找到您的用户名。
  7. Click edit (may look like a pencil icon in some versions of phpMyAdmin). 单击编辑 (在某些版本的phpMyAdmin中看起来像铅笔图标)。
  8. Your user_id will be shown, click on Edit. 将显示您的user_id,单击“编辑”。
  9. Next to the user_pass is a long list of numbers and letters. 在user_pass旁边是一长串数字和字母。
  10. Select and delete these and type in your new password. 选择并删除它们,然后输入新密码。
  11. Type in the password you want to use. 输入您要使用的密码。 Just type it in normally, but remember, it is case-sensitive. 只需正常输入即可,但请记住,它区分大小写。
  12. In this example, the new password will be 'rabbitseatcarrots'. 在此示例中,新密码将为“ rabbitseatcarrots”。
  13. Once you have done that, click the dropdown menu indicated, and select MD5 from the menu. 完成此操作后,单击指示的下拉菜单,然后从菜单中选择MD5
  14. Check that your password is actually correct, and that MD5 is in the box. 检查您的密码是否确实正确,以及是否在框中输入了MD5。
  15. Click the 'Go' button to the bottom right. 点击右下角的“开始”按钮。
  16. Test the new password on the login screen. 在登录屏幕上测试新密码。 If it doesn't work, check that you've followed these instructions exactly. 如果它不起作用,请检查您是否完全遵循了这些说明。
  17. You should be able to access the WordPress CMS with the reset credentials for user-admin. 您应该能够使用用户管理员的重置凭据访问WordPress CMS。 Next time try the command-line; 下次尝试命令行; it's not that bad! 没那么糟糕! :D :d

the above answer worked for me I didnot even passed the 6th step.上面的答案对我有用,我什至没有通过第 6 步。 I just modified the user url from localhost/wordpress to localhost/wordpress/wp-admin and I managed to get into the log in page and then the dashboard, I shoul mention I could access the site it self but not the dash board我刚刚将用户 url 从 localhost/wordpress 修改为 localhost/wordpress/wp-admin,我设法进入了登录页面,然后是仪表板,我应该提到我可以自己访问该网站,但不能访问仪表板

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM