I have a Backdrop install on civihosting.com.  On this site, when I go to update modules or Backdop itself I get an FTP login screen .  On another hosting site this FTP screen does not appear and updates go through quickly and easily.  So... the problem is I cannot login on this FTP screen - yet I can login to civihosting using FileZilla.  Using the same credentials as I use in FileZilla I get the following from Backdrop.  Any advice on what the problem is?

  • Notice: Undefined property: FileTransferFTPExtension::$connection in FileTransferFTPExtension->connect() (line 56 of /home/kewguild/www/my/core/includes/filetransfer/ftp.inc).
  • Failed to connect to the server. The server reports the following message:

    Cannot connect to FTP Server, check settings

Comments

Sometimes the FTP settings can be very tricky - we saw some issues for example with Backup and Migrate, which allows backups on a FTP account. These were produced by someone entering the wrong path (within Backup and Migrate, the path did not refer to the absolute path of the server, but the path from the point of view of the FTP account - the issue there was solved by entering / as the path).

I've never done module updates using ftp. Can you post a photo of the screen you are getting from Backdrop, where you are being asked for the credentials? 

Above is the screen shot of the FTP login.  I contacted the excellent suresupport.com people who support civihosting and this is what they said:

"We changed the permissions of the "files" folder to 775 as listed in the Backdrop documentation, but that did not help.

For some reason, the application connects to the FTP server and immediately disconnects. We could not find any settings in the files of the application that could cause this. To verify that FTP connections can be established via PHP scripts on your account, we created a test script (/home/kewguild/www/my/test.php). You can access it at https://my.kewguild.org.uk/test.php to verify that there are no problems on the server end."

Here's how I got to the FTP login:

 1. Click 'Configuration' then 'System' then 'System Updates'
2. Select 'Filter Permissions' to update the module then 'Download Selected Updates' then 'Continue'
3. You then get the FTP login. Username is 'yyyyyy' password is 'xxxxx'
4. You will then not be able to login...

FYI, for reasons to do with emailing, this system is on PHP 7.4. I tried with 8.1 but got the same result