Backup error via ftp server

I setup backup using only a Local Storage (local). It runs to completion and I can locate the backup file using bash.

However, when I drag and drop another server to the Storage Servers box and run the backup, I get the following error:

PHP Fatal error: Call to a member function directoryExists() on a non-object in /var/www/html/admin/modules/backup/functions.inc/class.backup.php on line 423
Whoops\Exception\ErrorException: Call to a member function directoryExists() on a non-object in file /var/www/html/admin/modules/backup/functions.inc/class.backup.php on line 423
Stack trace:
1. () /var/www/html/admin/modules/backup/functions.inc/class.backup.php:423

Using bash, I can open the connection to the ftp server, cd into a folder named ‘freepbx’, and put a file.

So the error must be due to my not properly specifying the Path on the FTP Server window. I set it to ‘freepbx’.

I can’t find any reference to the error in the logs in /var/log/asterisk.

And why does the email say all is OK?

May 14, 2016, 9:36 am - data: Initializing Backup 2
May 14, 2016, 9:36 am - Backup Lock acquired!
May 14, 2016, 9:36 am - Running pre-backup hooks...
May 14, 2016, 9:36 am - data: Backup Lock acquired!
May 14, 2016, 9:36 am - data: Running pre-backup hooks...
May 14, 2016, 9:36 am - Adding items...
May 14, 2016, 9:36 am - data: Adding items...
May 14, 2016, 9:37 am - Building manifest...
May 14, 2016, 9:37 am - data: Building manifest...
May 14, 2016, 9:37 am - Creating backup...
May 14, 2016, 9:37 am - data: Creating backup...
May 14, 2016, 9:37 am - Storing backup...
May 14, 2016, 9:37 am - data: Storing backup...
May 14, 2016, 9:37 am - Running post-backup hooks...
May 14, 2016, 9:37 am - data: Running post-backup hooks...
May 14, 2016, 9:37 am - Backup successfully completed!
May 14, 2016, 9:37 am - data: Backup successfully completed!

What have I done incorrectly?

You probably need to specify the full path. That’s how we have it on our server.