Also if you get error “Function get_magic_quotes_gpc() is deprecated” while opening the page in the browser
Comment the following lines.
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');
}