@maltonge
Here: http://stackoverflow.com/a/38526396/3043248
a guy says
The easiest (and generally correct) solution is to use an FTP passive mode, instead of an active mode (the default in PHP).
W3tc use active mode see: https://github.com/szepeviktor/w3-total-cache-fixed/blob/b225070f2c68b45411cb8ba69d2c007627909678/CdnEngine_Ftp.php
/**
* PHP5 Constructor
*
* @param array $config
*/
function __construct( $config = array() ) {
$config = array_merge( array(
'host' => '',
'type' => '',
'user' => '',
'pass' => '',
'path' => '',
'pasv' => false,
'domain' => array(),
'docroot' => ''
), $config );
$host_port = explode( ':', $config['host'] );
if ( sizeof( $host_port ) == 2 ) {
$config['host'] = $host_port[0];
$config['port'] = $host_port[1];
}
parent::__construct( $config );
}
Try to change
‘pasv’ => false
With
‘pasv’ => true
-
This reply was modified 5 years, 3 months ago by
nigro.simone.
-
This reply was modified 5 years, 3 months ago by
nigro.simone.
Hey
I searched for the file CdnEngine_Ftp.php in my w3 total cache folder, but could not find it. Please, under which folder can I find the required file to be modified?