Line 298, is in bold red:PHP Warning: ftp_chdir(): Can't change directory to public_html/shop/: No such file or directory in /home1/user/public_html/shop/admin/controller/extension/installer.php on line 298
I have installed OpenCart (2.3) not in root, but in a folder. It's a fresh installation with default theme. FTP settings are OK, because I see the temporary files of extensions in folder system/storage/upload.// Connect to the site via FTP
$connection = ftp_connect($this->config->get('config_ftp_hostname'), $this->config->get('config_ftp_port'));
if ($connection) {
$login = ftp_login($connection, $this->config->get('config_ftp_username'), $this->config->get('config_ftp_password'));
if ($login) {
if ($this->config->get('config_ftp_root')) {
$root = ftp_chdir($connection, $this->config->get('config_ftp_root'));
} else {
$root = ftp_chdir($connection, '/');
}
Any idea how to fix this?
Thanks.