Unable to upgrade FreePBX to 2.9.0 on Ubuntu Server 10.10

[email protected]:/usr/src/freepbx-2.9.0# ls
amp_conf asterisk.conf CONTRIB.txt INSTALL LICENSE sqlite.readme UPGRADE
amportal.conf buildtools docs install_amp setup_svn.php start_asterisk upgrades
apply_conf.sh CHANGES FAQ libfreepbx.install.php SQL update_i18n.sh
[email protected]:/usr/src/freepbx-2.9.0# ./start_asterisk start

Asterisk is already running
[email protected]:/usr/src/freepbx-2.9.0# ./install_amp
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking user…OK
Checking if Asterisk is running…running with PID: 1067…OK
Checking for /etc/amportal.conf…OK
Reading /etc/amportal.conf…OK
Checking for /etc/asterisk/asterisk.conf…OK
Reading /etc/asterisk/asterisk.conf…OK
Using asterisk as PBX Engine
Checking for Asterisk version…
Checking for selinux…PHP Notice: Undefined offset: 0 in /usr/src/freepbx-2.9.0/install_amp on line 898
Connecting to database…OK
Checking current version of AMP…2.8.1
Installing new FreePBX files…PHP Fatal error: Call to undefined function dbug_write() in /usr/src/freepbx-2.9.0/amp_ conf/htdocs/admin/libraries/utility.functions.php on line 263


Please advice!

This is my first download of FreePBX, and I got the same issue on Debian Squeeze.

My quick fix was:

In ./amp_conf/htdocs/admin/libraries/utility.functions.php, add the following somewhere near the top

require_once(dirname(FILE) . ‘/bootstrap-utility.functions.php’);

I presume this file should have been “required” by now in the bootstrap process. An expert will no doubt apply the fix in the correct location.


Thank you Ceri. Worked like a charm. I wonder if this should be submitted somewhere.

It looks like this was being resolved at the same time we were both wrestling with the upgrade/install (http://www.freepbx.org/trac/ticket/5160). My Google search quoting the error output found your posting but did not match the ticket details. I stumbled on the ticket just now.

Now I need to start exploring my shiny new PBX … All the best!