EE2 and PHP 7.1 - [] operator not supported for strings in EE_Config.php

October 31, 2017 1:32pm

Subscribe [2]
  • #1 / Oct 31, 2017 1:32pm

    Paradise's avatar


    84 posts

    I made a fresh Debian install and have some problems. If i try to go to a admin configuration page i get:

    Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/something/system/expressionengine/core/EE_Config.php:1574 Stack trace:
    #0 /var/www/something/system/expressionengine/controllers/cp/admin_content.php(4926): EE_Config->prep_view_vars('channel_cfg')
    #1 /var/www/something/system/expressionengine/controllers/cp/admin_content.php(4859): Admin_content->_config_manager('channel_cfg', 'global_channel_...')
    #2 /var/www/something/system/codeigniter/system/core/CodeIgniter.php(329): Admin_content->global_channel_preferences()
    #3 /var/www/something/system/index.php(193): require_once('/var/www/someth...')
    #4 {main} thrown in /var/www/something/system/expressionengine/core/EE_Config.php on line 1574

    ExpressionEngine v2.11.9 PHP v7.1.11

  • #2 / Nov 03, 2017 3:35pm

    Derek Jones's avatar

    Derek Jones

    7375 posts

    ExpressionEngine 2 was retired in April of this year and is no longer supported. New projects should all be built on v3 where this bug was already fixed. If you are supporting an older site, you can either downgrade PHP locally to PHP 7.0.x, or modify system/expressionengine/core/EE_Config.php to address this incompatibility by changing line 1522 from $details = ''; to $details = array();.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases