我有Slider Revolution 5.2.6和WP 4.8。 stacktrace看起来像这样:
致命错误:未捕获错误:C:\ Users \ Roma \ Desktop \ Dropbox \ LOCAL \ upwork \ wp-content \ plugins \ revslider \ includes \ framework \ base-admin.class中的字符串不支持[]运算符。 php:71堆栈跟踪:#0 C:\ Users \ Roma \ Desktop \ Dropbox \ LOCAL \ upwork \ wp-content \ plugins \ revslider \ admin \ revslider-admin.class.php(572):RevSliderBaseAdmin :: addMetaBox(' Revolution Slid ......','',Array,NULL) #1 C:\ Users \ Roma \ Desktop \ Dropbox \ LOCAL \ upwork \ wp-content \ plugins \ revslider \ admin \ revslider-admin.class.php(73):RevSliderAdmin-> addSliderMetaBox()#2 C:\用户\ Roma \ Desktop \ Dropbox \ LOCAL \ upwork \ wp-content \ plugins \ revslider \ admin \ revslider-admin.class.php(44):RevSliderAdmin-> init()#3 C:\ Users \ Roma \ Desktop \ Dropbox \ LOCAL \ upwork \ wp-content \ plugins \ revslider \ revslider.php(168):RevSliderAdmin-> __ construct('C:\ Users \ Roma \ D ...')#4 C:\ Users \ Roma \ Desktop \ Dropbox \ LOCAL \ upwork \ wp-admin \ includes \ plugin.php(1882):include('C:\ Users \ Roma \ D ...')#5 C:\ Users \ Roma \ Desktop \ Dropbox \ LOCAL \ upwork \ wp-admin \ plugins.php(164):plugin_sandbox_scrape('C:\ Users \ Roma \ Desktop \ Dropbox \ LOCAL \ upwork \ wp-content \ plugins \ revslider \ includes \ framework \中的'revslider / revsl第71行的base-admin.class.php
答案 0 :(得分:11)
如果您运行的是PHP 7+,则会发生这种情况。有三种可能的解决方案:
转到 plugins \ revslider \ includes \ framework \ base-admin.class.php ,第21行,然后更改
private static $arrMetaBoxes = '';
至private static $arrMetaBoxes = array();
只需切换回PHP 5.x(我不推荐它,但它可能是最简单的事情)。
希望这有帮助。