RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
"Can't locate" error
Goto page 1, 2  Next
 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload
View previous topic :: View next topic  
Author Message
madgerald



Joined: 28 May 2006
Posts: 1

PostPosted: May 28, 2006 7:10 am    Post subject: "Can't locate" error Reply with quote

whenever I try and run the script I get this returned:
Code:
Can't locate XUploadConfig.pm in @INC (@INC contains: C:/perl/lib .) at C:\  (*edited out for security*)  .com\wwwroot\cgi-bin\mixup\upload.cgi line 8.
BEGIN failed--compilation aborted at C:\ (*edited out for security*) .com\wwwroot\cgi-bin\mixup\upload.cgi line 8.


I am hoping it is something simple, but its got me stuck.... Shocked
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: May 29, 2006 5:20 am    Post subject: Reply with quote

Hmm..not enough details but I'll try to help.
1) Make sure you have XUpload.pm in th same folder upload.cgi is.
2) Try to add " use lib 'C:\ (*edited out for security*) .com\wwwroot\cgi-bin\mixup\'; " in the top of upload.cgi

If this won't help, specify your details: are you using PRO or Free version? What OS do you use? What perl version installed? Apache or IIS?
Back to top
View user's profile Send private message Visit poster's website
Anonymous
Guest





PostPosted: Jun 26, 2006 11:13 pm    Post subject: Reply with quote

i have the same error:
Software error:

Can't locate XUploadConfig.pm in @INC (@INC contains: /etc/perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.8 /usr/lib64/perl5/vendor_perl/5.8.7 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.8 /usr/lib64/perl5/site_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/5.8.8 /usr/local/lib/site_perl .) at /var/www/localhost/cgi-bin/xupload/upload_status.cgi line 6.
BEGIN failed--compilation aborted at /var/www/localhost/cgi-bin/xupload/upload_status.cgi line 6.

1) XUploadConfig.pm is in the same folder as upload.cgi
2) I tried lib /var/www/localhost/cgi-bin/xupload

I'm using the Free version, 2.5, perl 5.8.8 installed as is already apparent, apache 2.2
Back to top
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Jul 04, 2006 6:26 am    Post subject: Reply with quote

pacman99,
Make sure upload_status.cgi is in the same folder upload.cgi & XUploadConfig.pm are.
Also check XUploadConfig.pm chmod, should be 644.
Back to top
View user's profile Send private message Visit poster's website
Butch



Joined: 14 Sep 2006
Posts: 29
Location: USA

PostPosted: Sep 14, 2006 1:50 am    Post subject: Reply with quote

I have almost the same problem: XUpload v2.5
upload.cgi, upload_status.cgi, XUploadConfig.pm, Templates all in the same folder.

Error Message: "Software error:

[Wed Sep 13 18:36:23 2006] XUploadConfig.pm: Can't modify subroutine entry in scalar assignment at XUploadConfig.pm line 53, near "};" BEGIN failed--compilation aborted at upload_status.cgi line 6."
Back to top
View user's profile Send private message Visit poster's website
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Sep 14, 2006 6:23 am    Post subject: Reply with quote

This problem happens when your Perl version is 5.0.5 or older.
Edit XUploadConfig.pm like this:
Code:
package XUploadConfig;
use strict;
use Exporter ();
our @ISA    = qw(Exporter);
our @EXPORT = qw($c);

our $c=
{
 # Directory for temporary using files
 temp_dir        => '/home/.../cgi-bin/UPLOAD2/temp',
 ..................


also remove these lines from upload.cgi:
Code:
$SIG{HUP} = 'IGNORE';
local $SIG{__DIE__} = 'CleanUp';
Back to top
View user's profile Send private message Visit poster's website
Butch



Joined: 14 Sep 2006
Posts: 29
Location: USA

PostPosted: Sep 14, 2006 5:50 pm    Post subject: Reply with quote

I Tried making the above changes then received the following error:

"Software error:

[Thu Sep 14 10:47:43 2006] XUploadConfig.pm: syntax error at XUploadConfig.pm line 6, near "our @ISA " BEGIN failed--compilation aborted at upload_status.cgi line 6."

Also, if I get this version to working and purchase the pro version will I make the same changes. I really want the Pro version, just making sure things will work before purchase.
Back to top
View user's profile Send private message Visit poster's website
Butch



Joined: 14 Sep 2006
Posts: 29
Location: USA

PostPosted: Sep 14, 2006 8:13 pm    Post subject: Reply with quote

Should have included this in the above. Running PCRE Library Version 6.06 dated Feb., 2006, is this causing the problem
Back to top
View user's profile Send private message Visit poster's website
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Sep 15, 2006 5:13 am    Post subject: Reply with quote

Quote:
Running PCRE Library Version 6.06 dated Feb., 2006, is this causing the problem

Don't even know what PCRE lib is. So I guess it won't affect.

Quote:
Also, if I get this version to working and purchase the pro version will I make the same changes. I really want the Pro version, just making sure things will work before purchase.

Actually we've released new PRO2.2 version yesterday, it should have perl5.0.5 compatibility. Also we provide free installation so it 100% will work for you.
Back to top
View user's profile Send private message Visit poster's website
linssen



Joined: 29 Nov 2006
Posts: 3

PostPosted: Nov 29, 2006 1:57 pm    Post subject: Similar problem Reply with quote

I'm getting a similar problem.

Details:

Server: windows IIS 6.0
Script: version Pro 2.3 02-Nov-2006


upload and temp dirs have internet user for modify and write.

Code:
Software error:

Can't locate XUploadConfig.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at C:\Inetpub\cgi-bin\xupload\upload_status.cgi line 6.
BEGIN failed--compilation aborted at C:\Inetpub\cgi-bin\xupload\upload_status.cgi line 6.


Was getting nothing until I made the changes outlined here

Quote:
2) Try to add " use lib 'C:\ (*edited out for security*) .com\wwwroot\cgi-bin\mixup\'; " in the top of upload.cgi


Little help please?
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Nov 29, 2006 2:11 pm    Post subject: Reply with quote

Use this in upload_status.cgi:

Code:

use lib 'C:\Inetpub\cgi-bin\xupload\';
Back to top
View user's profile Send private message Visit poster's website
linssen



Joined: 29 Nov 2006
Posts: 3

PostPosted: Nov 29, 2006 2:16 pm    Post subject: Reply with quote

I've done that, sorry that was what I mean by

Quote:
Was getting nothing until I made the changes outlined here

2) Try to add " use lib 'C:\ (*edited out for security*) .com\wwwroot\cgi-bin\mixup\'; " in the top of upload.cgi


The form tells me the max files etc, so something must be going right?

---

Sorry, after reading again properly I realised you put upload_status.cgi. I've added that line to no avail.
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Nov 29, 2006 2:22 pm    Post subject: Reply with quote

Quote:
The form tells me the max files etc, so something must be going right?


This means that upload.cgi works fine.
But did you add that code to upload_status.cgi too?
Back to top
View user's profile Send private message Visit poster's website
linssen



Joined: 29 Nov 2006
Posts: 3

PostPosted: Nov 29, 2006 2:29 pm    Post subject: Reply with quote

Yes, here's the beginning of upload_status.cgi:

Code:
#!C:\Perl\bin\perl.exe
### XUpload PRO2.3
### SibSoft.net (1 Nov 2006)
use lib 'C:\Inetpub\cgi-bin\xupload';
use strict;
use CGI::Carp qw(fatalsToBrowser);
use XUploadConfig;
use HTML::Template;
use CGI qw/:standard/;


And of upload.cgi:

Code:
#!C:\Perl\bin\perl.exe
### XUpload PRO2.3
### SibSoft.net (1 Nov 2006)
use strict;
use lib 'C:\Inetpub\cgi-bin\xupload';
use CGI::Carp qw(fatalsToBrowser);
use CGI qw/:standard/;
use File::Copy;
use XUploadConfig;
use HTML::Template;
use Digest::Perl::MD5 qw(md5_base64);


---------------

After adding a \ to the end of the code you gave it now gives a new error:

Code:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
Back to top
View user's profile Send private message
gabeanderson



Joined: 20 Mar 2007
Posts: 3

PostPosted: Mar 20, 2007 5:12 pm    Post subject: Reply with quote

I just installed the free version to test it out on my server (Windows 2003 / IIS 6). If it works as expected, I hope to purchase the pro version.

I was initially getting the same error as outlined in this thread. Then I added the suggested code to upload.cgi and upload_status.cgi:

Code:
use lib 'D:\inetpub\WEBSITES\WWW_2007\support\upload2\';


...but now I'm getting a different error from upload_status.cgi when testing:

Quote:
Software error:

Bad name after upload_id' at D:\inetpub\WEBSITES\WWW_2007\support\upload2\upload_status.cgi line 13.


Any suggestions?

Thanks,
Gabe
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group