Install of FreePBX Gives DB::Connect Errors

Official Response Below:

I was following the instructions for installing FreePBX from the wiki and was working up until starting asterisk and installing FreePBX the install_amp command checks for the PEAR DB and passes (it’s installed) but then gets several of the following DB::connect() errors from freepbx_db.php

PHP Fatal error: Cannot make static method DB::connect() non static in class freepbx_db in /var/www/htmls/freepbx_DB.php on line 57

here is some snippets from the install output. The user and pass has been set in mysql and is valid. Any help would be appreciated. Thanks!

[[email protected] freepbx]# ./install_amp --username=asteriskuser --password=$ASTERISK_DB_PW
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Using username: asteriskuser
Using password: ******
Checking user…OK
Checking if Asterisk is running…running with PID: 17366…OK

---------------- omitted section ----------------------

OK (227 files copied, 0 skipped)
amportal…no fpbx…freepbx_engine…freepbx_setting…gen_amp_conf.php…done
PHP Fatal error: Cannot make static method DB::connect() non static in class freepbx_db in /var/www/html/admin/libraries/freepbx_DB.ph
mkdir: missing operand
Try `mkdir --help’ for more information.
PHP Fatal error: Cannot make static method DB::connect() non static in class freepbx_db in /var/www/html/admin/libraries/freepbx_DB.ph
PHP Fatal error: Cannot make static method DB::connect() non static in class freepbx_db in /var/www/html/admin/libraries/freepbx_DB.ph
PHP Fatal error: Cannot make static method DB::connect() non static in class freepbx_db in /var/www/html/admin/libraries/freepbx_DB.ph
PHP Fatal error: Cannot make static method DB::connect() non static in class freepbx_db in /var/www/html/admin/libraries/freepbx_DB.ph
PHP Fatal error: Cannot make static method DB::connect() non static in class freepbx_db in /var/www/html/admin/libraries/freepbx_DB.ph
PHP Fatal error: Cannot make static method DB::connect() non static in class freepbx_db in /var/www/html/admin/libraries/freepbx_DB.ph
apply username/password changes to conf files:
running apply_conf.sh from freepbx_settings
PHP Fatal error: Cannot make static method DB::connect() non static in class freepbx_db in /var/www/html/admin/libraries/freepbx_DB.ph
sed: can’t read /manager.conf: No such file or directory
sed: can’t read /manager.conf: No such file or directory

I moved 5 posts to an existing topic: DB::connect() non static in class freepbx_db