Have a flaky computer, so built another one, installed latest FreePBX, and then tried to restore a backup from the working system. I get this error at the end of the restore :
freepbx PHP Fatal error: Cannot use object of type DB_Error as array in /var/www/html/admin/modules/findmefollow/functions.inc.php
The red apply update in upper right gives the same message.
Anybody with ideas on how to get all the settings, message recordings, etc. applied onto the new computer?
OK, so here’s the whole procedure I used:
1: install fresh from DVD, let it update everything from net.
2: sftp copy backup file from online PBX system to /var/spool/asterisk/backup/Default_backup
3: restore from that backup
I get a warning in the middle of the restore:
web root restore not detected, not restoring module table
run “fwconsole moduleadmin upgradeall”
(which doesn’t seem to fix anything)
4; when restore is complete, and I go to the dashboard page, I see:
“critical errors found”
5: when I click on “apply config” I then get this error:
exit: 255
PHP Fatal error: Cannot use object of type DB_Error as array in /var/www/html/admin/modules/findmefollow/functions.inc.php on line 471
Whoops\Exception\ErrorException: Cannot use object of type DB_Error as array in file /var/www/html/admin/modules/findmefollow/functions.inc.php on line 471
Stack trace:
One additional tidbit. This time, immediately after the install from DVD, I did a backup. After the unsuccessful restore with the file from the working PBX, a restore from this backup of fresh system seems to be OK, so I don’t have to go through a DVD install each time.