英文:
After migrate from Live WordPress to Localhost get "not allowed to access page"
问题
我已将WordPress网站迁移到本地测试环境。我按照推荐的步骤执行了此任务。
现在,网站在本地运行时出现以下问题:
-
我只能看到主题的旧样式,即默认页面(我使用的主题叫做"jupiter")。
-
当我尝试打开wp-admin页面时,显示"抱歉,您无权访问此页面"的消息。
我已经尝试了以下几种方法:
-
在wp-user和wp-usermeta表中添加新用户详细信息。
-
停用插件。
-
从根目录删除.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:
-
I only can see the old fashion of the theme, the default page (I use theme called jupiter).
-
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:
-
Add new user details in wp-user and wp-usermeta tables
-
Deactivate plugins
-
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论