twilio/OpenVBX — Issue #167: Bad Twilio SID -> Fatal PHP Error on settings page 
Author: citizentools
Created: 2011-11-08 23:25:04+00:00
State: open

I had a working Twilio SID and Token in my OpenVBX setup. In an effort to "reset" the connection with Twilio, I modified the SID by appending an "x" at the end, to create a SID that I knew would be bad. I expected some sort of authentication error at Twilio to be reported back to me by the OpenVBX interface.

Instead, I got a Fatal PHP Error when I attempted to go back to the settings page.

OpenVBX • v1.1.1 r62

The workaround is to fix the SID in the mysql database directly.

Here's what I see in the PHP error log.

PHP Fatal error: Uncaught exception 'VBX_IncomingNumberException' with message 'Authenticate' in /home/myaccount/webapps/openvbx_a/OpenVBX/models/vbx_incoming_numbers.php:173
Stack trace:
#0 /home/myaccount/webapps/openvbx_a/OpenVBX/controllers/settings/site.php(160): VBX_Incoming_numbers->get_available_countries()
#1 /home/myaccount/webapps/openvbx_a/OpenVBX/controllers/settings/site.php(64): Site->get_site()
#2 /home/myaccount/webapps/openvbx_a/OpenVBX/controllers/settings/site.php(53): Site->site_handler()
#3 /home/myaccount/webapps/openvbx_a/OpenVBX/controllers/settings/site.php(41): Site->site('', false)
#4 [internal function]: Site->index()
#5 /home/myaccount/webapps/openvbx_a/system/codeigniter/CodeIgniter.php(236): call_user_func_array(Array, Array)
#6 /home/myaccount/webapps/openvbx_a/index.php(158): require_once('/home/myaccount/...')
#7 {main}
thrown in /home/myaccount/webapps/openvbx_a/OpenVBX/models/vbx_incoming_numbers.php on line 173