admin管理员组文章数量:1418371
I migrated my WordPress site by uploading the wp-content file from the original site to the new site and dumping the database of the old site onto the new one.
However, this has resulted in me being locked out of the admin area; I can log into the site and view the site, but the admin bar is missing many buttons and going to the /wp-admin page results in this message:
Sorry, you are not allowed to access this page.
I've enabled WP_DEBUG and it's not logging any errors.
I think it has something to do with the table prefix. The old site did not have a table prefix, but the new one does. I just searched through the database dump file before I imported it and did a find & replace of each of the old table names (e.g. replace "wp_usermeta" with "wp_prefix_usermeta").
[EDIT]: It is definitely the prefix causing the issue; when I remove the prefix (from both the database tables and the wp-config) the site works.
I've also set the prefix constant in wp-config to the right prefix.
Are there any other words apart from the wp_tablename which need to have the new prefix added?
I migrated my WordPress site by uploading the wp-content file from the original site to the new site and dumping the database of the old site onto the new one.
However, this has resulted in me being locked out of the admin area; I can log into the site and view the site, but the admin bar is missing many buttons and going to the /wp-admin page results in this message:
Sorry, you are not allowed to access this page.
I've enabled WP_DEBUG and it's not logging any errors.
I think it has something to do with the table prefix. The old site did not have a table prefix, but the new one does. I just searched through the database dump file before I imported it and did a find & replace of each of the old table names (e.g. replace "wp_usermeta" with "wp_prefix_usermeta").
[EDIT]: It is definitely the prefix causing the issue; when I remove the prefix (from both the database tables and the wp-config) the site works.
I've also set the prefix constant in wp-config to the right prefix.
Are there any other words apart from the wp_tablename which need to have the new prefix added?
Share Improve this question edited Jul 29, 2019 at 15:45 M. Salman Khan asked Jul 29, 2019 at 0:56 M. Salman KhanM. Salman Khan 1013 bronze badges1 Answer
Reset to default 0Try to rename the plugins folder to something like plugins-hold
via FTP. Then try to access the admin area again.
本文标签: databaseWordPress site migrationlocked out of admin area
版权声明:本文标题:database - WordPress site migration - locked out of admin area 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745287380a2651580.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论