我可以访问网站的公共部分。但仪表板显示为空白。
日志显示指向RevSlider插件的错误:
PHP Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/html/wp-content/plugins/revslider/includes/framework/base-admin.class.php:141
以下是完整跟踪:
#0 /var/www/html/wp-content/plugins/revslider/admin/revslider-admin.class.php(1143): RevSliderBaseAdmin::addMetaBox(\'Revolution Slid...\', \'\', Array, NULL)
#1 /var/www/html/wp-content/plugins/revslider/admin/revslider-admin.class.php(145): RevSliderAdmin->addSliderMetaBox()
#2 /var/www/html/wp-content/plugins/revslider/admin/revslider-admin.class.php(87): RevSliderAdmin->init()
#3 /var/www/html/wp-content/plugins/revslider/revslider.php(327): RevSliderAdmin->__construct(\'/var/www/html/w...\')
#4 /var/www/html/wp-settings.php(304): include_once(\'/var/www/html/w...\')
#5 /var/www/html/wp-config.php(81): require_once(\'/var/www/html/w...\')
#6 /var/www/html/wp-load.php(37): require_once(\'/var/www/html/w...\')
#7 /var/www/html/wp-admin/admin-ajax.php(22): require_once(\'/var/www/html/w...\')
#8 {main}
thrown in /var/www/html/wp-content/plugins/revslider/includes/framework/base-admin.class.php on line 141, referer: https://192.168.16.18/wp-admin/plugins.php
最合适的回答,由SO网友:Chapman Atwell 整理而成
我可以通过热修复服务器上的RevSlider插件来修复错误documented here.
在里面revslider/includes/framework/base-admin.class.php
, 我更改了以下行(我版本的第21条):
private static $arrMetaBoxes = \'\'; //option boxes that will be added to post
收件人:
private static $arrMetaBoxes = array(); //option boxes that will be added to post