Upgrade to civicrm 5.17.4 fails with PHP 7.1 Uncaught Error: [] operator not supported for strings
Proper define of the array will sort you out, Please check out this Post, this issue is seen with many places after upgrade php.