PHP error loading SIPStation page (FreePBX on Debian)


I have been deploying FreePBX via ansible on Debian, using Asterisk 14 from source. In general all is working well, but when I downloaded the SIPStation module, inputted my SIPStation account key, and came back to the SIPStation page I consistently get an error page:

  1. Whoops\Exception\ErrorException
  2. Whoops\Run handleError
  3. implode
  4. sipstation get_or_create_trunks
  5. include_once
  6. ajax_get
  7. include
    Whoops \ Exception \ ErrorException (E_WARNING)
    implode(): Invalid arguments passed
    if (isset($tlist[“SIP/$channelid”])) {
    $globalvar = $tlist[“SIP/$channelid”][‘globalvar’];
    $trunknum = ltrim($globalvar,‘OUT_’);
    // Now get some trunk status info
    $trunk_status = $this->get_peer_status($channelid);
    if ($trunk_status[‘sipstation_status’] == ‘ok’) {
    $json_array[‘trunk_qualify’][$gidx] = $trunk_status[‘Status’];
    $json_array[‘trunk_codecs’][$gidx] = implode(’ | ',$this->get_configured_codecs($channelid,$trunk_status));
    $trunk_details = core_trunks_getDetails($trunknum);

I would love to get SIPStation working on these deployments and would appreciate any helpful tips in troubleshooting this. I have updated all my FreePBX modules using “fwconsole ma updateall”

Asterisk 14.3.0
freepbx-13.0-latest.tgz (download 2 days ago)

What version of PHP Developer you using. As FreePBX 13 only supports PHP 5.3

Hi Tony,

Im not sure what PHP Developer even is, the debian (jessie) php packages I have are listed here: (5.6.30 )

ii libapache2-mod-php5 5.6.30+dfsg-0+deb8u1 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii php-pear 5.6.30+dfsg-0+deb8u1 all PEAR - PHP Extension and Application Repository
ii php5 5.6.30+dfsg-0+deb8u1 all server-side, HTML-embedded scripting language (metapackage)
ii php5-cli 5.6.30+dfsg-0+deb8u1 amd64 command-line interpreter for the php5 scripting language
ii php5-common 5.6.30+dfsg-0+deb8u1 amd64 Common files for packages built from the php5 source
ii php5-curl 5.6.30+dfsg-0+deb8u1 amd64 CURL module for php5
ii php5-fpm 5.6.30+dfsg-0+deb8u1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php5-gd 5.6.30+dfsg-0+deb8u1 amd64 GD module for php5
ii php5-json 1.3.6-1 amd64 JSON module for php5
ii php5-mysql 5.6.30+dfsg-0+deb8u1 amd64 MySQL module for php5
ii php5-readline 5.6.30+dfsg-0+deb8u1 amd64 Readline module for php5

You need to roll back php or use FreePBX 14 (beta) for php 5.6 compatibility.