Support » Plugin: CDN Sync Tool » Is anyone success use the ftp support of cdn-sync-tool

  • I want use ftp to sync file, but it does not work.

    I’m sure config info is OK, tested with FileZilla.

    Thanks.

    Error log
    ————————
    Syncing [22/23] 2011/02/wordpress-logo-150×52.png
    Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/wwwroot/app/main/wp-content/plugins/cdn-sync-tool/lib/Cdn/Ftp.php on line 39
    fail
    Warning: ftp_alloc() expects parameter 1 to be resource, boolean given in /home/wwwroot/app/main/wp-content/plugins/cdn-sync-tool/lib/Cdn/Ftp.php on line 58
    done
    Syncing [23/23] 2011/02/wordpress-logo-300×51.png
    Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/wwwroot/app/main/wp-content/plugins/cdn-sync-tool/lib/Cdn/Ftp.php on line 39
    fail
    Warning: ftp_alloc() expects parameter 1 to be resource, boolean given in /home/wwwroot/app/main/wp-content/plugins/cdn-sync-tool/lib/Cdn/Ftp.php on line 58
    done

    Warning: ftp_close() expects parameter 1 to be resource, boolean given in /home/wwwroot/app/main/wp-content/plugins/cdn-sync-tool/lib/Cdn/Ftp.php on line 97

    http://wordpress.org/extend/plugins/cdn-sync-tool/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Backie

    (@backie)

    I have.

    The problem is with either your dns on the server or the hostname.

    Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known

    Means it can’t find the address you gave.

    Thanks for your response.

    I can access the address with FileZilla(port mode).

    Is it support port mode?

    Plugin Contributor Backie

    (@backie)

    Port mode?

    The problem is that the server/php can’t find the address, if you’re putting in a hostname then try putting in the IP address. If not then speak to the person in charge of maintaining your server environment.

    It doesn’t matter if you can connect locally, it’s an issue with the server.

    I double check the code of cdn-sync-tool, and I found it use hostname field as address of ftp server.

    And then I got an memory issue. I think it’s an issue of my server.

    ————–
    Syncing [1/1499] wp-content/themes/zbench/pagenavi-css.csshostname:64.251.28.43
    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16 bytes) in /home/wwwroot/app/main/wp-content/plugins/cdn-sync-tool/lib/Cdn/Ftp.php on line 68

    I was getting the same ftp error as you, but fixed it by changing the hostname field like you mentioned above.

    Now, I’m getting the same memory error you are. It seems the author isn’t interested in people actually using the FTP feature since they’re trying to sell their own service.

    Plugin Contributor Backie

    (@backie)

    Hi,
    Well the thing is, the code does work. The problem your facing is a PHP configuration issue, which I can’t solve since I don’t have access to your server. To solve this issue you can do one of a few things, one of which is use our service – since the plugin has been tested and functional including FTP on it. The others are get your shared hoster to up your memory limit or up your memory limit yourself with your not on a shared host.

    Thanks for the reply.

    I guessed it was a memory issue and tried to increase my limit, but wasn’t able to. I don’t understand why 256mb isn’t enough. I am using a shared host, but this is a pretty common setup so I wouldn’t imagine this would be impossible to do. I’m testing this on a new blog with only one post. I doubt there is even 256mb of data on the whole site including the wordpress install.

    I just switched over to W3 Total Cache which has a built in CDN with FTP sync and it seems to be working fine.

    Thanks anyway.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Is anyone success use the ftp support of cdn-sync-tool’ is closed to new replies.