Title: More verbose FTP connection errors (Bug in Duplicator)
Last modified: July 27, 2018

---

# More verbose FTP connection errors (Bug in Duplicator)

 *  Resolved [lucasbustamante](https://wordpress.org/support/users/lucasbustamante/)
 * (@lucasbustamante)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/more-verbose-ftp-connection-errors/)
 * I’m facing issues connecting via FTP, and the connection test just shows a generic
   message:
 * > FTP Test Error
   >  Send FTP file test failed! Be sure the full storage path exists.
   > For additional help see the online FTP troubleshooting steps.
 * It would be nice to have debug logs about the connection attempt, to narrow down
   the issue.
    -  This topic was modified 7 years, 9 months ago by [lucasbustamante](https://wordpress.org/support/users/lucasbustamante/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [lucasbustamante](https://wordpress.org/support/users/lucasbustamante/)
 * (@lucasbustamante)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/more-verbose-ftp-connection-errors/#post-10533966)
 * I found out I could enable tracing and logs at the Settings and see more verbose
   errors from the FTP connections. It seems I came across a bug in the Test FTP
   Connection functionality.
 * The logs lead me to this file:
    **duplicator/classes/net/class.ftp.chunker.php**
 * More precisely the method **upload_chunk()**. The first argument is the absolute
   filepath of the file to be transfered. However, when “Test FTP Connection” triggers
   this method, the first argument is set to FALSE, which leads it to this if/else:
 *     ```
       $local_file_handle = fopen($source_filepath, 'rb');
   
       if ($local_file_handle !== false)
       {
           # Upload code
       }
           else
       {
           $message = sprintf(DUP_PRO_U::__('Error opening %1$ for FTP'), $source_filepath);
           DUP_PRO_LOG::trace($message);
           $ftp_upload_info->error_details = message;
       }
       ```
   
 * Which is exactly what is showing up at my logs. Also, see that the message variable
   called in the last line is missing a dollar sign.
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/more-verbose-ftp-connection-errors/#post-10534531)
 * Thanks for the update [@lucasbustamante](https://wordpress.org/support/users/lucasbustamante/)!
   We’ll have a look at that and get it patched soon. If you need the patch ASAP,
   just submit a support ticket to:
 * [https://snapcreek.com/ticket](https://snapcreek.com/ticket)
 * And we can get you a patch so you don’t have to wait until the next version is
   released.
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘More verbose FTP connection errors (Bug in Duplicator)’ is closed to 
new replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

## Tags

 * [ftp](https://wordpress.org/support/topic-tag/ftp/)

 * 2 replies
 * 2 participants
 * Last reply from: [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/more-verbose-ftp-connection-errors/#post-10534531)
 * Status: resolved