Page Index Toggle Pages: 1 [2] 
Topic Tools
Hot Topic (More than 10 Replies) Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode (Read 3,386 times)
GT-Eins
YaBB Newcomer
*
Offline



Posts: 34
Location: Garbsen, Hannover, Germany
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
Reply #3 - Mar 24th, 2013 at 8:54pm
Post Tools
Also a 2nd answer from my hoster suspects an error in the code.

The problem  seems to be located in this section. Is there a hint that a wrong path  - as described above - is defined?

Edited:
if    ( -e './Paths.pl' )           { require './Paths.pl'; }
elsif ( -e './Variables/Paths.pl' ) { require './Variables/Paths.pl'; }
else {
    $boardsdir = './Boards';
    $sourcedir = './Sources';
    $memberdir = './Members';
    $vardir    = './Variables';
}

$thisscript = "$ENV{'SCRIPT_NAME'}";
if   ( -e ('YaBB.cgi') ) { $yyext = 'cgi'; }
else                     { $yyext = 'pl'; }
if   ($boardurl) { $set_cgi = "$boardurl/FixFile.$yyext"; }
else             { $set_cgi = "FixFile.$yyext"; }

# Make sure the module path is present
push @INC, './Modules';

require "$sourcedir/Subs.pl";
require "$sourcedir/System.pl";
require "$sourcedir/Load.pl";
require "$sourcedir/DateTime.pl";
require "$admindir/Admin.pl";
  
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,165
Location: Earth

YaBB 2.6.0
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
Reply #2 - Mar 24th, 2013 at 8:51pm
Post Tools
FixFile assumes that the Paths.pl was written correctly and so the path to Sources is correct as: './Sources' because a couple lines beneath the code that tells it to find and read Paths.pl is :
Code
Select All
require "$sourcedir/Subs.pl";
require "$sourcedir/System.pl";
require "$sourcedir/Load.pl";
require "$sourcedir/DateTime.pl";
require "$admindir/Admin.pl";
 



BUT if your URL change didn't make it into Paths.pl, then it's looking in the wrong place for $sourcedir

Also, some server configurations require the server path to your folder rather than the url ('D:/WEBSITES/testbed/cgi-bin/yabb2' or 'vars/www/public_html/cgi-bin/yabb2' or something like that).
« Last Edit: Mar 24th, 2013 at 8:56pm by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
GT-Eins
YaBB Newcomer
*
Offline



Posts: 34
Location: Garbsen, Hannover, Germany
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
Reply #1 - Mar 24th, 2013 at 5:11pm
Post Tools
Hoster-support suspected a wrong path  - as if the script was not performing the definition of the sources-directory correctly

means FixFile.pl would have looked for
.../cgi-bin/yabb2/Subs.pl
instead of
.../cgi-bin/yabb2/Sources/Subs.pl

Any possibility for this?
how to solve this item?
  
Back to top
WWW  
IP Logged
 
GT-Eins
YaBB Newcomer
*
Offline



Posts: 34
Location: Garbsen, Hannover, Germany
Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
Mar 24th, 2013 at 4:37pm
Post Tools
Currently upgrading or Forum from 2.3.1 to 2.5.2.
When starting Point 6 of the Quick Start Guide (Chapter Upgrading Yabb 2) - Open & Run FixFile.pl - it immediately returned with an Error:

Quote:
Software error:

Can't locate /Subs.pl in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . ./Modules) at FixFile.pl line 57.

For help, please send mail to the webmaster (webmaster@gt-eins.at), giving this error message and the time and date of the error.


What may have gone wrong?
  • Subs.pl exists in Sources
  • CHMODS were checked again and seem to be correct
  • as should be the path to pearl - according to my hoster
  • dirctory is now named correct (http://www.*****.***/cgi-bin/yabb2/FixFile.pl (I just renamed it because after upload I had to take a longer break and wanted  to prevent spam-bots to modify it
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Topic Tools
 
  « Board Index ‹ Board  ^Top