XFileSharing Pro - [SOLVED]Can't locate XFileConfig.pm in @INC

Message
Author
Nick
Posts: 35
Joined: Aug 07, 2008 9:03 am

[SOLVED]Can't locate XFileConfig.pm in @INC

#1 Postby Nick » Aug 07, 2008 9:53 am

Hello,

As the title says, when I'm trying to execute install.cgi I get the 500 error, internal server error.

The Apache error log says:

Code: Select all

Can't locate XFileConfig.pm in @INC
How do I add XFileConfig.pm to INC or how do I specify in the code where to look for it?

I've searched the forum for a similar issue but I couldn't find any therefore I've decided to post my problem here.

Thank you,

Nick

***Later edit***

I've solved the issue by adding the path to the directory containing the XFileConfig.pm file to the "use lib" but now I have a different error:

Code: Select all

[Thu Aug 07 13:21:00 2008] [error] [Thu Aug  7 13:21:00 2008] -e: Can't call method "f" on an undefined value at /***/***/******/****/cgi-bin/install.cgi line 25.\n
Any help would be appreciated.

Thank you!
Last edited by Nick on Aug 10, 2008 8:23 pm, edited 1 time in total.

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

#2 Postby PilgrimX182 » Aug 07, 2008 11:36 am

That's strange, in install.cgi try to add

Code: Select all

require Session;
above

Code: Select all

my $ses = Session->new;

Nick
Posts: 35
Joined: Aug 07, 2008 9:03 am

#3 Postby Nick » Aug 07, 2008 11:45 am

I get the same error now on line 26 (same line considering I've added the extra line 'require Session;'.

Code: Select all


Can't call method "f" on an undefined value at /***/***/******/****/cgi-bin/install.cgi line 26.

The line with the error is:

Code: Select all


my $f = $ses->f;


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

#4 Postby PilgrimX182 » Aug 07, 2008 12:26 pm

Hmm..never faced this problem with our install.cgi, can you PM me FTP or SSH access to investigate the problem.

Nick
Posts: 35
Joined: Aug 07, 2008 9:03 am

#5 Postby Nick » Aug 07, 2008 1:01 pm

Details sent via private message.

Thank you,

Nick

Nick
Posts: 35
Joined: Aug 07, 2008 9:03 am

#6 Postby Nick » Aug 07, 2008 2:21 pm

As many have said before me ... if you're planning to buy this software and still have doubts .. don't!

The most important thing about a program or script is the possibility to actually use it on your platform and this usually comes with after sales support!

These guys from XFileSharing are great at that. Finally a good platform with an excellent after sales support at such a LOW cost (only 120$).

This is great!

Keep it up XFileSharing!

A satisfied (so far :)) customer,


Nick

Nick
Posts: 35
Joined: Aug 07, 2008 9:03 am

#7 Postby Nick » Aug 07, 2008 4:22 pm

Coming back with a new error that I didn't previously notice:

upon entering the database credentials and trying to save them I get this error:

Code: Select all


HTML::Template->new() : Cannot open included file Templates/message.html : file not found. at /***/***/******/****/cgi-bin/Modules/HTML/Template.pm line 329
	HTML::Template::_init_template('HTML::Template=HASH(0x8711060)') called at /***/***/******/****/cgi-bin/Modules/HTML/Template.pm line 123
	HTML::Template::_init('HTML::Template=HASH(0x8711060)') called at /***/***/******/****/cgi-bin/Modules/HTML/Template.pm line 79
	HTML::Template::new('HTML::Template', 'filename', 'Templates/message.html', 'die_on_bad_params', 0, 'global_vars', 1, 'loop_context_vars', 1, ...) called at /***/***/******/****/cgi-bin/Modules/Session.pm line 118
	Session::CreateTemplate('Session=HASH(0x8302354)', 'message.html') called at /***/***/******/****/cgi-bin/Modules/Session.pm line 154
	Session::PrintTemplate('Session=HASH(0x8302354)', 'message.html', 'err', 'Can\'t read XFileConfig') called at /***/***/******/****/cgi-bin/Modules/Session.pm line 190
	Session::message('Session=HASH(0x8302354)', 'Can\'t read XFileConfig') called at /***/***/******/****/cgi-bin/install.cgi line 53
	ModPerl::****::ModPerl::PerlRun::***_***_******_****_cgi_2dbin_install_2ecgi::handler('Apache2::RequestRec=SCALAR(0x8859fb8)') called at /usr/lib/perl5/vendor_perl/5.8.8/i486-linux/ModPerl/RegistryCooker.pm line 204
	eval {...} called at /usr/lib/perl5/vendor_perl/5.8.8/i486-linux/ModPerl/RegistryCooker.pm line 204
	ModPerl::RegistryCooker::run('ModPerl::PerlRun=HASH(0x82a703c)') called at /usr/lib/perl5/vendor_perl/5.8.8/i486-linux/ModPerl/RegistryCooker.pm line 170
	ModPerl::RegistryCooker::default_handler('ModPerl::PerlRun=HASH(0x82a703c)') called at /usr/lib/perl5/vendor_perl/5.8.8/i486-linux/ModPerl/PerlRun.pm line 31
	ModPerl::PerlRun::handler('ModPerl::PerlRun', 'Apache2::RequestRec=SCALAR(0x8859fb8)') called at -e line 0
	eval {...} called at -e line 0

The Apache error log looks like this:

Code: Select all


[Thu Aug 07 18:23:25 2008] [error] [Thu Aug  7 18:23:25 2008] -e: HTML::Template->new() : Cannot open included file Templates/message.html : file not found. at /***/***/******/****/cgi-bin/Modules/HTML/Template.pm line 329\n[Thu Aug  7 18:23:25 2008] -e: \tHTML::Template::_init_template('HTML::Template=HASH(0x8720d50)') called at /***/***/******/****/cgi-bin/Modules/HTML/Template.pm line 123\n[Thu Aug  7 18:23:25 2008] -e: \tHTML::Template::_init('HTML::Template=HASH(0x8720d50)') called at /***/***/******/****/cgi-bin/Modules/HTML/Template.pm line 79\n[Thu Aug  7 18:23:25 2008] -e: \tHTML::Template::new('HTML::Template', 'filename', 'Templates/message.html', 'die_on_bad_params', 0, 'global_vars', 1, 'loop_context_vars', 1, ...) called at /***/***/******/****/cgi-bin/Modules/Session.pm line 118\n[Thu Aug  7 18:23:25 2008] -e: \tSession::CreateTemplate('Session=HASH(0x83029c0)', 'message.html') called at /***/***/******/****/cgi-bin/Modules/Session.pm line 154\n[Thu Aug  7 18:23:25 2008] -e: \tSession::PrintTemplate('Session=HASH(0x83029c0)', 'message.html', 'err', 'Can\\'t read XFileConfig') called at /***/***/******/****/cgi-bin/Modules/Session.pm line 190\n[Thu Aug  7 18:23:25 2008] -e: \tSession::message('Session=HASH(0x83029c0)', 'Can\\'t read XFileConfig') called at /***/***/******/****/cgi-bin/install.cgi line 53\n[Thu Aug  7 18:23:25 2008] -e: \tModPerl::****::ModPerl::PerlRun::***_***_******_****_cgi_2dbin_install_2ecgi::handler('Apache2::RequestRec=SCALAR(0x82b6a94)') called at /usr/lib/perl5/vendor_perl/5.8.8/i486-linux/ModPerl/RegistryCooker.pm line 204\n[Thu Aug  7 18:23:25 2008] -e: \teval {...} called at /usr/lib/perl5/vendor_perl/5.8.8/i486-linux/ModPerl/RegistryCooker.pm line 204\n[Thu Aug  7 18:23:25 2008] -e: \tModPerl::RegistryCooker::run('ModPerl::PerlRun=HASH(0x830248c)') called at /usr/lib/perl5/vendor_perl/5.8.8/i486-linux/ModPerl/RegistryCooker.pm line 170\n[Thu Aug  7 18:23:25 2008] -e: \tModPerl::RegistryCooker::default_handler('ModPerl::PerlRun=HASH(0x830248c)') called at /usr/lib/perl5/vendor_perl/5.8.8/i486-linux/ModPerl/PerlRun.pm line 31\n[Thu Aug  7 18:23:25 2008] -e: \tModPerl::PerlRun::handler('ModPerl::PerlRun', 'Apache2::RequestRec=SCALAR(0x82b6a94)') called at -e line 0\n[Thu Aug  7 18:23:25 2008] -e: \teval {...} called at -e line 0\n\t(in cleanup) Can't locate object method "UnInitDB" via package "Session" at /***/***/******/****/cgi-bin/Modules/Session.pm line 26.\n

I believe I've got serious path issues with the latest customizations made ...


Nick

Nick
Posts: 35
Joined: Aug 07, 2008 9:03 am

#8 Postby Nick » Aug 10, 2008 6:24 pm

All issues solved and now the script is working like a charm ;)

Thanks a lot for all your help and patience during the last 5 days!

Regards,

Nick

virus9112002
Posts: 10
Joined: Jun 14, 2009 4:57 am

Re:

#9 Postby virus9112002 » Aug 20, 2017 9:59 am

Nick wrote:I get the same error now on line 26 (same line considering I've added the extra line 'require Session;'.

Code: Select all


Can't call method "f" on an undefined value at /***/***/******/****/cgi-bin/install.cgi line 26.

The line with the error is:

Code: Select all


my $f = $ses->f;

How ?

admin
Site Admin
Posts: 1839
Joined: Mar 22, 2006 12:32 pm

Re: [SOLVED]Can't locate XFileConfig.pm in @INC

#10 Postby admin » Aug 20, 2017 4:38 pm

Seems that error comes not from install script of XFilesharing Pro. Looks like it's from XFilesharing Free. This script have separate forum section.
But if you really see this error in XFilesharing Pro - please create support ticket at https://support.sibsoft.net

Thanks

virus9112002
Posts: 10
Joined: Jun 14, 2009 4:57 am

Re: [SOLVED]Can't locate XFileConfig.pm in @INC

#11 Postby virus9112002 » Aug 20, 2017 9:43 pm

I create ticket at https://support.sibsoft.net