通过WordPress管理员删除插件


Deleting plugins via WordPress admin

今天我想从WP的管理面板上删除一些垃圾邮件用户,并搜索了他们,但出现了空白屏幕。然后我将define('WP_DEBUG', false)关闭为TRUE。我曾试图删除一些插件和cgot的白色屏幕,所以做了fia FTP,但它们仍然显示在WP插件列表中。基本上我得到了很多白色屏幕,我不知道如何修复它。有什么想法吗?以下是我打开调试时遇到的问题:

严格标准:在第69行/home/mutantsp/public_html/wp-content/plugins/flex-archives-widget.php中重新定义类FlexoArchives的已定义构造函数

不推荐:在第801行的/home/mutantsp/public_html/wp-content/plugins/flex-archives_widget.php中,不推荐通过引用指定new的返回值

注意:未定义的属性:第111行上/home/mutantsp/public_html/wp-content/plugins/flex-archives_widget.php中的FlexoArchives::$OPT_YRCOUNT_STANDALONE

注意:未定义的属性:FlexoArchives::$OPT_YRCOUNT in/home/mutantsp/public_html/wp-content/plugins/flex-archives-widget.php on line 112

注意:未定义的属性:第124行/home/mutantsp/public_html/wp-content/plugins/flex-archives_widget.php中的FlexoArchives:$OPT_YRCOUNT_STANDALONE

注意:register_uninstall_hook调用不正确。在卸载挂钩中只能使用静态类方法或函数。有关详细信息,请参阅WordPress中的调试。(此消息是在版本3.1中添加的。)在第3547 行的/home/mutantsp/public_html/wp-includes/functions.php中

注意:wp_enque_style调用不正确。在wp_enque_Scripts、admin_enque_Scripts或login_enquee_Scripts挂钩之前,不应注册或排队脚本和样式。有关详细信息,请参阅WordPress中的调试。(此消息是在版本3.3中添加的。)在第3547 行的/home/mutantsp/public_html/wp-includes/functions.php中

注意:load_plugin_textdomain是用一个参数调用的,该参数自2.7版本以来一直被弃用,没有其他可用的参数。在第3497 行的/home/mutantsp/public_html/wp-includes/functions.php中

严格标准:APP_User_Profile::get_id()的声明应与第48行/home/mutantsp/public_html/wp-content/themes/classipress/framework/kernel/Page-edit-Profile.php中的APP_Page_Template::get_I($Template)兼容

严格标准:非静态方法APP_Updater::init()不应在第74行的/home/mutantsp/public_html/wp-content/themes/classipress/framework/admin/Updater.php中静态调用

严格标准:cp_CategoryDropdown::start_el()的声明应与第1770行的/home/mutantsp/public_html/wp-content/themes/classipress/included/theme-functions.php中的Walker::start_eel(&$output,$object,$depth=0,$args=Array,$current_object_id=0)兼容

注意:调用has_cap时使用的参数自2.0版本以来一直不推荐使用!不赞成插件和主题使用用户级别。请使用角色和能力。在第3495 行的/home/mutantsp/public_html/wp-includes/functions.php中

严格标准:call_user_func_array()要求参数1是有效的回调,非静态方法APP_Updater::exclude_themes()不应在第213行的/home/mutantsp/public_html/wp-includes/plugin.php中静态调用

严格标准:call_user_func_array()要求参数1是有效的回调,非静态方法APP_Updater::check_updates()不应在第213行的/home/mutantsp/public_html/wp-includes/plugin.php中静态调用跳转到主要内容

严格标准:call_user_func_array()要求参数1是有效的回调,非静态方法APP_Updater::display_warning()不应在第496行的/home/mutantsp/public_html/wp-includes/plugin.php中静态调用

您不需要使用define('WP_DEBUG', false);,它只是用于开发人员的调试目的。

然后我试着删除一些插件,结果出现了白色屏幕,就这么做了通过FTP

因为激活的插件存储在数据库中,当wordpress试图定位该插件并产生错误时您应该通过管理部分删除该插件

这就是你如何在数据库中找到激活的插件

SELECT * FROM `wp_options` WHERE `option_name` like '%active_plugins%'

对于用户,请确保您已取消选中Settings > General Settings 中的"成员资格"选项

还要确保你使用的是最新的WordPress版本。