【问题标题】:I can't access WordPress admin page我无法访问 WordPress 管理页面
【发布时间】:2018-12-30 01:25:44
【问题描述】:

当我尝试进入我的 wordpress 网站的wp-admin 页面时,会出现这些警告:

警告:file_exists():open_basedir 限制生效。文件(../../../wp-includes/autoload.php) 不在允许的路径中:/storage/ 中的 (/opt/awex-pages:/storage/ssd4/476/999476) ssd4/476/999476/public_html/wp-includes/class-wp-customize-editor.php 第 17 行

警告:file_exists():open_basedir 限制生效。文件(../../../../wp-includes/autoload.php)不在允许的路径中:(/opt/awex-pages:/storage/ssd4/476/999476)在/storage/ssd4/476/999476/public_html/wp-includes/class-wp-customize-editor.php 在第 20 行

警告:file_exists():open_basedir 限制生效。文件(../../../wp-includes/autoload.php) 不在允许的路径中:/storage/ 中的 (/opt/awex-pages:/storage/ssd4/476/999476) ssd4/476/999476/public_html/wp-includes/class-wp-customize-editor.php 第 29 行

警告:file_exists():open_basedir 限制生效。文件(../../../../wp-includes/autoload.php)不在允许的路径中:(/opt/awex-pages:/storage/ssd4/476/999476)在/storage/ssd4/476/999476/public_html/wp-includes/class-wp-customize-editor.php 在第 32 行

警告:file_exists():open_basedir 限制生效。文件(../../../wp-load.php) 不在允许的路径内:/storage/ssd4/ 中的 (/opt/awex-pages:/storage/ssd4/476/999476)第 44 行的 476/999476/public_html/wp-includes/class-wp-customize-editor.php

警告:file_exists():open_basedir 限制生效。文件(../../../../wp-load.php) 不在允许的路径中:/storage 中的 (/opt/awex-pages:/storage/ssd4/476/999476) /ssd4/476/999476/public_html/wp-includes/class-wp-customize-editor.php 在第 47 行

警告:fread():第 70 行 /storage/ssd4/476/999476/public_html/wp-includes/class-wp-customize-editor.php 中的长度参数必须大于 0

警告:fread():第 73 行 /storage/ssd4/476/999476/public_html/wp-includes/class-wp-customize-editor.php 中的长度参数必须大于 0

警告:无法修改标头信息 - 标头已由 /storage/ssd4 中的(输出开始于 /storage/ssd4/476/999476/public_html/wp-includes/class-wp-customize-editor.php:17)发送/476/999476/public_html/wp-includes/pluggable.php 在第 1210 行`

如何找回管理页面?

【问题讨论】:

    标签: php wordpress


    【解决方案1】:

    您似乎激活了导致此错误的插件。

    登录您的 CPanel 并导航到 wp-content/plugins

    更改所有插件目录的名称,或者如果您记得上次安装或激活的插件,问题发生后;在这种情况下,请更改该插件目录的名称。

    这将停用插件。现在尝试访问您的wp-admin。如果您可以访问它,请开始更正您更改的插件目录名称。这将允许您查明导致问题的插件。

    【讨论】: