Error : freepbx Array and string offset access syntax with curly braces is deprecated
Solved : This error is because new PHP version doesn’t support curly brackets ( “{}” . So find the goto the line mentioned in the error message, and change curly bracket to square bracket ( {} to [] )
This problem will be solved easily.
This is the file /root/freepbx/amp_conf/htdocs/admin/libraries/Composer/vendor/neitanod/forceutf8/src/ForceUTF8/Encoding.php
and line number 196 and and 239 . change curly brackets.
if(get_magic_quotes_gpc()) {
$nt->add_error('core', 'MQGPC', _("Magic Quotes GPC"), _("You have magic_quotes_gpc enabled in your php.ini, http or .htaccess file which will cause errors in some modules. FreePBX expects this to be off and runs under that assumption"));
} else {
$nt->delete('core', 'MQGPC');
}