2016-02-22, 03:32:29
(2016-02-22, 02:35:33)Dannie Wrote: My GetSimple works fine, but now I wanted to add the i18n Gallery plugin, but gets this error from my FTP server:
Copying files to remote side failed.
Virus Detected and Removed: Atomicorp.PHP.fopen.htaccess.2010121601.UNOFFICIAL
gallery.class.php: Operation not permitted
I am using this plugin at another site (at another hosting provider), without any problems.
It's not a virus: the plugin creates a directory i18n_gallery in theĀ data and the backup directories and adds .htaccess files with "Deny from all". As this is not really necessary (as data and backup already have such .htaccess), you can just remove the respective code from function checkPrerequisites in i18n_gallery/gallery.class.php:
Code:
public static function checkPrerequisites() {
$success = true;
$gdir = GSDATAPATH . I18N_GALLERY_DIR;
if (!file_exists($gdir)) {
$success = mkdir(substr($gdir,0,strlen($gdir)-1), 0777) && $success;
}
$gdir = GSBACKUPSPATH . I18N_GALLERY_DIR;
// create directory if necessary
if (!file_exists($gdir)) {
$success = @mkdir(substr($gdir,0,strlen($gdir)-1), 0777) && $success;
}
return $success;
}
Additionally you can also manually create these files.