Call to undefined function: MDB2_Driver_mysql::getAll()

Hello Folks

I am trying to install FreePBX 2.9.0
on my Debian Server

When I am running install_amp
I am getting error

13:41/0 asterisk /usr/src/freepbx-2.9.0 # ./install_amp
Checking for PEAR MDB2…OK
Checking for PEAR Console::Getopt…OK
Checking user…OK
Checking if Asterisk is running…running with PID: 3077…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…1.8.18.1
Checking for selinux…PHP Notice: Undefined offset: 0 in /usr/src/freepbx-2.9.0/install_amp on line 902
OK
Connecting to database…OK
Checking current version of AMP…PHP Fatal error: Call to undefined function: MDB2_Driver_mysql::getAll() in /usr/src/freepbx-2.9.0/libfreepbx.install.php on line 121. in /usr/local/lib/php/MDB2.php on line 2007

I have installed:

  1. pear install MDB2 (Because FreePBX stopped to work with usual DB)
  2. pear install MDB2_Driver_mysql

Please help

Thanks

To the best of my knowledge FreePBX would need a little bit of modification to use MDB2 instead of Pear DB. So if FreePBX stopped working with Pear DB, your best bet is to provide those logs showing Pear DB not working. This will better assist us in helping you to get FreePBX functional again.