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

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

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

    24th January, 2017 at 5:22pm
  • 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();
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases