Warning! cloner.functions.php | Joomla Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_TopicIcon
Warning! cloner.functions.php
October 26, 2010
3:44 pm
Avatar
webs4travel
New Member
Members
Forum Posts: 2
Member Since:
October 26, 2010
sp_UserOfflineSmall Offline

Hi,

 

I am getting the following warning and am unsure what the problem is. I know my ftp username and password are correct as I've checked I can connect using filezilla.

 

Warning: Invalid argument supplied for foreach() in /home/travelma/public_html/mywebsitename.co.uk/administrator/components/com_xcloner-backupandrestore/cloner.functions.php on line 496

Warning: ftp_connect() has been disabled for security reasons in /home/travelma/public_html/mywebsitename.co.uk/administrator/components/com_xcloner-backupandrestore/cloner.functions.php on line 510

FTP connection has failed!Attempted to connect to http://ftp.mywebsitename.co.uk for user myusername

I have looked at cloner.functions.php - it contains:

496 }
497
498 foreach($files as $file){
499  $source_file[] =
$_CONFIG['clonerPath']."/".$file;
500  $destination_file[] =
$_REQUEST[ftp_dir]."/".$file;
501  }
502
503
504
505 list($fhost, $fport) =
explode(":",$_REQUEST[ftp_server]);
506 if($fport == "")
507  $fport = '21';
508
509 $ftp_timeout = '3600';
510 // set up basic connection
511 if(!$_CONFIG[secure_ftp]){
512 $conn_id = ftp_connect($fhost,
(int)$fport, (int)$ftp_timeout);
513 $connect = "Normal";
514 }

 


October 26, 2010
3:46 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

As the error message indicates "ftp_connect() has been disabled for security reason", the ftp functions are disabled by your hosting provider, so you will need to manually move the restore script and backup archive  to the restore location in order to continue the cloning process

 

Regards, Ovidiu

October 26, 2010
6:01 pm
Avatar
webs4travel
New Member
Members
Forum Posts: 2
Member Since:
October 26, 2010
sp_UserOfflineSmall Offline

Thanks for your prompt response, Ovidiu

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10030
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Omar Vera
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0