- see next message, ignore this patch.

Comments

-otto-’s picture

StatusFileSize
new670 bytes

Problem

Hi there,

I'm trying to use the sandbox module feeds_ftp_fetcher with drupal 7.
I fixed some issues in the sandbox but also ran into a problem with destnation.ftp.inc

I kept getting 'unable to connect'errors and tracked it down to this (line 120):

if (!ftp->__conn && !drupal_ftp_connected($ftp)) {

Proposed solution

Connection is empty so remove the ! before first condition.
Use empty() to check for connection:

if (empty(ftp->__conn) && !drupal_ftp_connected($ftp)) {

Patch

I attached a patch for this minor fix.

ronan’s picture

Status: Active » Fixed

Looks good. Committed to dev.

Thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

smitty’s picture

Version: 7.x-2.2 » 7.x-2.3
Status: Closed (fixed) » Active

Reopening this issue because I am still getting these 'unable to connect' errors although the ftp transfer works well (Version 7.x-2.3):

Example:

05.06.2012 - 10:42 FTP Error: Couldn't connect to server MyFTPServer 
05.06.2012 - 10:42 Default Database backed up successfully to MyDB-2012-06-05T10-42-27 in destination MyFTPServer in 2884.25 ms. 
05.06.2012 - 10:42 Public Files Directory backed up successfully to MyFiles-2012-06-05T10-43-28 in destination MyFTPServer in 495.48 ms. 

The files are saved properly on MyFTPServer.
So I think there must be an additional reason causing this error.

ronan’s picture

Status: Active » Closed (won't fix)

I'm not able to reproduce this, but if your backups are still working, then I'm not sure how much I'd worry about it. Reopen if you have more info.

ronan’s picture

Issue summary: View changes

Removed all text.