Local Site crashed! Help, pls

downloaded current site from backup; click admin button get this:-

Fatal error: Uncaught Error: [] operator not supported for strings in /app/public/wp-content/plugins/revslider/includes/framework/base-admin.class.php:71 Stack trace: #0 /app/public/wp-content/plugins/revslider/admin/revslider-admin.class.php(572): RevSliderBaseAdmin::addMetaBox(‘Revolution Slid…’, ‘’, Array, NULL) #1 /app/public/wp-content/plugins/revslider/admin/revslider-admin.class.php(73): RevSliderAdmin->addSliderMetaBox() #2 /app/public/wp-content/plugins/revslider/admin/revslider-admin.class.php(44): RevSliderAdmin->init() #3 /app/public/wp-content/plugins/revslider/revslider.php(162): RevSliderAdmin->__construct(’/app/public/wp-…’) #4 /app/public/wp-settings.php(303): include_once(’/app/public/wp-…’) #5 /app/public/wp-config.php(81): require_once(’/app/public/wp-…’) #6 /app/public/wp-load.php(37): require_once(’/app/public/wp-…’) #7 /app/public/wp-admin/admin.php(31): require_once(’/app/public/wp-…’) #8 /app/public/wp-admin/index.php(10): require_once(’/app/public/wp-…’) #9 {main} thrown in /app/public/wp-content/plugins/revslider/includes/framework/base-admin.class.php on line 71


this has happened 2days running on 2 different backups.

Regards,

Gareth

Hi Gareth,

Make sure you have the latest version of Rev Slider. PHP 7.1 officially removed support for the [] operator on strings.

If you already have it or don’t want to renew Rev Slider, you can switch to the Custom environment by doing the following:

  1. Right-click on the site in Local’s sidebar
  2. Click “Export”
  3. Re-import the site by dragging and dropping the exported zip onto Local’s Dock icon or main window
  4. Select “Custom” with PHP 7.0.3 when importing