XFileSharing Pro - cheking file error

Message
Author
sherayusuf3
Posts: 94
Joined: Jan 18, 2009 4:29 am

cheking file error

#1 Postby sherayusuf3 » Feb 21, 2009 12:15 pm

i got error when try to check file to db, db to file
Starting consistancy check...

Server beta.gilaupload.com (DELL) (ID=2)
++++
Found & fixed bad files1: 0
Reverse test: Error:
Software error:

syntax error at /var/www/cgi-bin/api.cgi line 115, near "Push @nofiles"
Global symbol "@nofiles" requires explicit package name at /var/www/cgi-bin/api.cgi line 117.
syntax error at /var/www/cgi-bin/api.cgi line 118, near "}"
Execution of /var/www/cgi-bin/api.cgi aborted due to compilation errors.

For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error.


Server Download2(xeon) (ID=16)
++++++++



my api.cgi in beta.gilaupload.com

Code: Select all

sub CheckFiles    <-- line 106
{
   my $list = $q->param('list');
   &Send('OK') unless $list;
   my @arr = split(/:/,$list);
   my @nofiles;
   for my $x (@arr)
   {
      my ($file_id,$file_code)=split('-',$x);
      my $dx = sprintf("%05d",$file_id/$c->{files_per_folder});
      Push @nofiles,$file_code unless -f "$c->{upload_dir}/$dx/$file_code";
   }
   &Send("OK:".join ',',@nofiles );     <-- line 118
}

sherayusuf3
Posts: 94
Joined: Jan 18, 2009 4:29 am

Re: cheking file error

#2 Postby sherayusuf3 » Feb 21, 2009 12:28 pm

done.... i reupload api.cgi

abboodeh
Posts: 94
Joined: Jan 23, 2009 6:31 pm

#3 Postby abboodeh » Feb 21, 2009 8:45 pm

Good for you its solved!
What's the use of run db to file, file to db??

User avatar
PilgrimX182
Posts: 2183
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » Feb 24, 2009 10:23 am

Sometimes unpredictable errors happends, so this admin function sync files on server with records in database. So there won't be dead files.


Return to “XFileSharing Pro”