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

  • 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