Turning off FreePBX Error Handling

Some people may wish to turn off FreePBX's error logging capability and use the native error handler.You may do this by adding $bootstrap_settings['freepbx_error_handler'] before requiring bootstrap.php in /etc/freepbx.conf. You can see an example below:

 

<?php $amp_conf['AMPDBUSER']  = 'freepbxuser'; $amp_conf['AMPDBPASS']  = 'changeme'; $amp_conf['AMPDBHOST']  = 'localhost'; $amp_conf['AMPDBNAME']  = 'asterisk'; $amp_conf['AMPDBENGINE'] = 'mysql'; $amp_conf['datasource'] = ''; //for sqlite3    //Turn off FreePBX Error Handling $bootstrap_settings['freepbx_error_handler'] = false;    require_once('/var/www/html/admin/bootstrap.php');

Please note that if you have a module that is using bootstrap, you can do this before bootstrapping as show below:

//Turn off FreePBX Error Handling $bootstrap_settings['freepbx_error_handler'] = false;    if (!@include_once(getenv('FREEPBX_CONF') ? getenv('FREEPBX_CONF') : '/etc/freepbx.conf')) {           include_once('/etc/asterisk/freepbx.conf'); }

Return to Documentation Home I Return to Sangoma Support