WordPress.org

Ready to get started?Download WordPress

Forums

BackWPup Free - WordPress Backup Plugin
[Plugin: BackWPup] ftp_ssl_connect() expects parameter 2 to be long (7 posts)

  1. HoldenRoad
    Member
    Posted 3 years ago #

    I receive the following errors and the zip file does not make it to my off site FTP location. I have tried FTP passive on and off. I have doulble and triple check all off the FTP settings. Any help would be tremendous.

    2010-11-05 07:51.56: Backup Zip file create done!
    2010-11-05 07:51.56: [WARNING] ftp_ssl_connect() expects parameter 2 to be long, string given
    2010-11-05 07:51.56: [WARNING] ftp_connect() expects parameter 2 to be long, string given
    2010-11-05 07:51.56: [ERROR] Can not connect to FTP server: ftp://Myoffsitedomain.com/

  2. Tim Gary
    Member
    Posted 3 years ago #

    Per this post... Try commenting out the ftp_ssl_connect test.
    http://wordpress.org/support/topic/plugin-backwpup-ftp-transfer-issue?replies=22

    In backwpup_dojob.php near line 889:

    private function destination_ftp() {
    
            if (empty($this->job['ftphost']) or empty($this->job['ftpuser']) or empty($this->job['ftppass']))
                return false;
    
            $ftpport=21;
            $ftphost=$this->job['ftphost'];
            if (false !== strpos($this->job['ftphost'],':')) //look for port
                list($ftphost,$ftpport)=explode(':',$this->job['ftphost'],2);
    
            /* if (function_exists('ftp_ssl_connect')) { //make SSL FTP connection
                $ftp_conn_id = ftp_ssl_connect($ftphost,$ftpport,10);
                if ($ftp_conn_id)
                    trigger_error(__('Connected by SSL to FTP server:','backwpup').' '.$this->job['ftphost'],E_USER_NOTICE);
            }  */
    
            if (!$ftp_conn_id) { //make normal FTP conection if SSL not work
  3. HoldenRoad
    Member
    Posted 3 years ago #

    I've made the edit and now the first warning is gone but the second warning and final error are still there. With no transfer occurring. Log is below...
    It looks like the error is indicating that "$ftpport" on Line 884 is not the right length or format??
    I reviewed the post referenced above and I do not see warnings or errors that match mine. Most are able to connect but not transfer. I cannot as yet connect. Any other suggestions would be appreciated.

    2010-11-05 14:34.35: Backup Zip file create done!
     2010-11-05 14:34.35: [WARNING] ftp_connect() expects parameter 2 to be long, string given
     2010-11-05 14:34.35: [ERROR] Can not connect to FTP server: ftp://myoffsitedomain.com/
     2010-11-05 14:34.35: 1 old backup files deleted!!!
  4. Tim Gary
    Member
    Posted 3 years ago #

    On first glance, it looks like you entered your ftp server as ftp://myoffsitedomain.com/ but it needs to just be myoffsitedomain.com

    Still leave the commented-out section commented out.

  5. HoldenRoad
    Member
    Posted 3 years ago #

    Tim, I appreciate your time in helping me get this sorted. Changed FTP server by removing "ftp://" from settings. Now a different warning but the same error:

    2010-11-05 15:59.19: Backup Zip file create done!
     2010-11-05 15:59.19: [WARNING] ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known
     2010-11-05 15:59.19: [ERROR] Can not connect to FTP server: zzzzz.zzzzz.com/
     2010-11-05 15:59.19: 1 old backup files deleted!!!
  6. Tim Gary
    Member
    Posted 3 years ago #

    Hi Holden,

    Trailing slash needs to be removed as well?

  7. HoldenRoad
    Member
    Posted 3 years ago #

    SOLVED!!
    Backup completed normally and the file is perfect. Thanks for all your help Tim.

    Backup Zip file create done!
     2010-11-05 16:23.03: Connected insecure to FTP server: zzzzz.zzzzz.com
     2010-11-05 16:23.03: FTP Client command: USER ZZZZZZ
     2010-11-05 16:23.03: FTP Server reply: User ZZZZZZ logged in.
     2010-11-05 16:23.03: FTP Client command: PASV
     2010-11-05 16:23.03: FTP Server reply: Entering Normal Mode
     2010-11-05 16:23.03: FTP Client command: SYST
     2010-11-05 16:23.03: FTP Server reply: UNIX
     2010-11-05 16:27.06: Backup File transferred to FTP Server: /Shares/Software/WordPressBU/backwpup_0_2010-11-05_16-22-46.zip
     2010-11-05 16:27.06: 1 old backup files deleted!!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags