移动Wordpress后,登录有效,但不再有管理员访问权限 [英] After moving Wordpress, login works, but no admin access anymore

查看:156
本文介绍了移动Wordpress后,登录有效,但不再有管理员访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将wordpress从旧的ISP转移到新的ISP之后,我在管理员访问权限/对仪表板的访问方面遇到了麻烦.

After transferring a wordpress from an old ISP to a new ISP, I have trouble with the admin access / access to the dashboard.

通过将所有文件(包括.htaccess)从旧服务器复制到新服务器,转储旧数据库并将其放在新服务器上并调整wp-config.php中数据库的所有设置来完成传输.

The transfer was done by copying all files (incl. .htaccess) from the old server to the new server, dumping the old DB and putting it on the new server and adjust all settings for DB in wp-config.php.

通过在计算机上设置主机条目,我可以验证一切正常,并且所有内容均出现.

By setting a hosts entry on my machine, I could verify that everything is working fine and all content appears.

这是我的问题.

使用新旧凭据(例如,手动添加的管理员帐户)通过wp-login.php登录后,正在登录,将我重定向到网站,并通过页面顶部的登录栏指出登录成功,但通过声明禁止访问仪表板.

After logging in thru wp-login.php with old and new credentials (manually added admin account for example) the login is happening, redirecting me to the website, stating successful login by the login bar on the top of the page, but access to the dashboard is prohibited by stating.

Sorry, you are not allowed to access this page.

除了进入wordpress.com或注销外,登录栏几乎没有其他选项.

The login bar also has nearly no options except of going to wordpress.com or logout.

这可能只是一件小事,我只需要一个能指引我正确方向的人即可.

This is probably just a small thing and I just need someone that points me into the right direction.

推荐答案

原来,当使用自己的数据库表名称前缀时,这是Wordpress 4.6.1中的一个错误.

Turns out that this is a bug within Wordpress 4.6.1 when using your own prefix for DB table names.

重命名为wp_前缀并更改表名即可.

Rename to wp_ prefix and change the table names and it works.

这篇关于移动Wordpress后,登录有效,但不再有管理员访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆