wp-admin:对不起,您不能访问此页面 - Wordpress

问题描述 投票:1回答:2

所以我在从Windows托管转移到Unix后登录时遇到了一些问题。

当我尝试登录管理面板时,我看到:

Sorry, you are not allowed to access this page

我用谷歌,搜索等等。所有写在帖子里的东西都没有,比如禁用插件,更改主题等,我仍然有这个问题。我问托管公司,他们告诉我这个:

The problem is caused by the fact that you created multisite and most likely made confusion in the privileges. You'd better turn to the wordpress programmer

但问题是我没有创建多站点,只安装了语言插件(WPML)。

DEBUG和错误显示我什么都没有。

php wordpress
2个回答
0
投票

这基本上是许可问题。

你需要做以下事情,

find foldername -type d -exec chmod 755 {} \;
find foldername -type f -exec chmod 644 {} \;

将文件权限更改为正确文件,文件为644,文件夹为755。


0
投票

编辑current_user_can函数是/var/www/html/wp-includes/capabilities.php并添加if(is_admin())返回true;

© www.soinside.com 2019 - 2024. All rights reserved.