【问题标题】:You do not have sufficient permissions to access this page. Wordpress您没有足够的权限访问此页面。 WordPress
【发布时间】:2016-06-05 02:16:36
【问题描述】:

我直接在 Live 服务器中安装了 Wordpress。我可以在wordpress中登录。但是当我尝试在已安装插件中的“设置”上单击它时,它正在重定向到错误页面,显示“您没有足够的权限访问此页面”。

我阅读了有关此问题的更多文章。都说,检查数据库名称,wp_capabilities。我检查过。对我来说也很好。

请帮我解决我的问题。

谢谢!

【问题讨论】:

    标签: php wordpress file-permissions


    【解决方案1】:

    检查以下解决方案:-

    在您的数据库中,

    wp_capabilities should be a:1:{s:13:"administrator";s:1:"1";}
    
    wp_user_level should be 10
    

    如果不工作,请检查,

    // ** MySQL settings ** //
    define('DB_NAME', 'madeupname');     // The name of the database
    define('DB_USER', 'madeupuser');     // Your MySQL username
    define('DB_PASSWORD', 'madeuppw'); // ...and password
    define('DB_HOST', 'mysql.yoursite.com');     // ...and the server MySQL is running on
    // Change the prefix if you want to have multiple blogs in a single database.
    $table_prefix  = 'wp_';   // example: 'wp_' or 'b2' or 'mylogin_'
    

    也检查这个link

    希望对你有帮助:)

    【讨论】:

    • 感谢拉维。但我已经检查了上述所有配置。这对我来说是完美的。即使我也面临同样的问题。
    • 你检查过链接吗?链接有很多有用的建议。
    • 是的,我做了 force-upgrade.php 并检查了 wp_config,wp_user 对我没有任何作用。
    猜你喜欢
    • 2015-07-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-21
    • 2015-10-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多