从Live WordPress迁移到本地主机后出现“不允许访问页面”的问题。

huangapple go评论90阅读模式
英文:

After migrate from Live WordPress to Localhost get "not allowed to access page"

问题

我已将WordPress网站迁移到本地测试环境。我按照推荐的步骤执行了此任务。

现在,网站在本地运行时出现以下问题:

  1. 我只能看到主题的旧样式,即默认页面(我使用的主题叫做"jupiter")。

  2. 当我尝试打开wp-admin页面时,显示"抱歉,您无权访问此页面"的消息。

我已经尝试了以下几种方法:

  1. 在wp-user和wp-usermeta表中添加新用户详细信息。

  2. 停用插件。

  3. 从根目录删除.htaccess文件。

但是所有这些尝试都没有成功。

有关1和2的任何帮助?

英文:

I have migrated live WordPress to Localhost for testing purposes. I follow the recommended steps for this task.

Now the website is running locally with the following issues:

  1. I only can see the old fashion of the theme, the default page (I use theme called jupiter).

  2. When I try to open wp-admin page, it shows me “Sorry, you are not allowed to access this page.” message.

I have done several attempts:

  1. Add new user details in wp-user and wp-usermeta tables

  2. Deactivate plugins

  3. Remove .htaccess file from root doc

But all these attempts did not work for me.

Any help with 1 & 2?

答案1

得分: 0

检查您的PHP版本并将其升级至最低7.0,并更新您的memory_limit、post_max_size和upload_max_size。因为Jupiter主题有一些最低要求需要满足才能正常工作。您可以在Jupiter主题的文档中查看这些要求。

英文:

Check your php version and update it to 7.0 minimum and also update your memory_limit, post_max_size, upload_max_size. Because jupiter theme has some minimum requirements to fulfill and work. You can check this in documentation of jupiter theme.

答案2

得分: 0

对不起,您没有权限访问此页面。 @Hritik Pandey

英文:

I did exactly what you have told me but I got the same message Sorry, you are not allowed to access this page @Hritik Pandey

答案3

得分: 0

我已解决了这个问题。我在wp-config.php中更改了$table_prefix的值为新的前缀。然后在_users和_usermeta表中添加了一个具有管理员权限的新用户。这解决了我的问题。

英文:

I have solved the issue. I change the $table_prefix value in wp-config.php to the new prefix. Then add a new user to _users and _usermeta tables with administrator privilege. This solve my problem.

huangapple
  • 本文由 发表于 2020年1月6日 20:21:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/59612033.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定