When you get this error :# JFTP::_passive: Unable to obtain IP and port for data transfer
# JFTP::write: Unable to use passive mode
This mean’s that safe_mode is on in the php.ini file.
You just need to turn off the safe _mode parameter in the php.ini file
ex : safe_mode = Off
That’s all you are done.