2017-06-09 22 views
1

所以即時通訊從Windows主機轉移到Unix後登錄有一些問題。wp-admin:對不起,您不能訪問此頁 - WordPress的

當我嘗試登錄到管理面板我看到這一點:

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和錯誤告訴我什麼都沒有。

回答

0

這基本上是權限問題。

你需要做到以下幾點,

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

更改文件權限改正的,644文件和755的文件夾。

+0

這已經完成了,但仍然有一個錯誤。 –

+0

那麼你是否也設置了正確的組權限? –

+0

對於文件夾/文件的用戶? –

0

編輯current_user_can函數是/var/www/html/wp-includes/capabilities.php並添加if(is_admin())返回true;

相關問題