Bug #22777 Bug Fixed

PHP 7.1 General Settings page throws a ‘Uncaught Error: [] operator not supported for strings’ error.

Version: 3.4.4 Reporter: Robin Sowell

Uncaught Error: [] operator not supported for strings in /system/ee/legacy/core/Config.php:1667

PHP backwards incompatible change

The empty index operator (e.g. $str[] = $x) is not supported for strings anymore, and throws a fatal error instead of silently converting to array

  • Note PHP 7.1 is not the production release yet so not officially supported just yet.

    Robin Sowell
    16th November, 2016 at 11:04am
  • Is there any temporary workaround for this? I had to transfer my server and Forge provisioned one using 7.1. I am no longer able to access my admin/ control panel general settings

    lnorwood
    24th January, 2017 at 5:22pm

You must be signed in to comment on a bug report.

  • In v2, you can hit the same error in system\expressionengine\core\EE_Config.php line 1574.

    The fix is on line 1522, edit it to be:

    $details = array();

ExpressionEngine News

#eecms, #events, #releases