Asterisk PHP errors

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

 · 1 min read

if you get error “Function get_magic_quotes_gpc() is deprecated” while opening the page in the browser while opening FreePBX ( Asterisk )

     

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');

       }


Comment the above 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');

  //     }



Cloud support

Cloud support team provides hosting related support and technology updates. Cover technology like cloud printing, Cloud PBAX, VoIP, Kubernetes, Ubuntu, Linux etc. Contact us on support@ERPGulf.com

No comments yet

No comments yet. Start a new discussion.

Add Comment