Avada fatal error operator not supported for strings revslider

Avada fatal error operator not supported for strings revslider

Fatal error: Uncaught Error: [] operator not supported for strings in /wp-content/plugins/revslider/inc_php/framework/base_admin.class.php:73

with PHP 7 and code using the empty-index array push syntax

Solution:
Add line
$arrMetaBoxes = [];  // creates an array

Line 73
self::$arrMetaBoxes[] = $box;

 

In revslider/includes/framework/base-admin.class.php, I changed the following line

private static $arrMetaBoxes = '';         //option boxes that will be added to post

to:

private static $arrMetaBoxes = array();    //option boxes that will be added to post