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,850 times)
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
 
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
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,467
Location: Earth

YaBB 2.6.1
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 #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,467
Location: Earth

YaBB 2.6.1
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
Reply #4 - Mar 24th, 2013 at 8:59pm
Post Tools
Make sure your change in URL made it into Paths.pl. FixFile is looking for all the related path information in that file. Also - did you have 2.5.2 fully installed before trying to run FixFile? If 2.5.2 is not fully installed, Settings.pl will not be written and Paths.pl will be empty.
  

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 #5 - Mar 24th, 2013 at 9:02pm
Post Tools
Sorry Dandello - didn´t see your reply (though reload)

Paths.pl is the original from the download - should I replace that by a Version from the old forum?

currently paths.pl looks like that:
Edited:
# Blank Paths.pl file

1;
  
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 #6 - Mar 24th, 2013 at 9:06pm
Post Tools
Dandello wrote on Mar 24th, 2013 at 8:59pm:
Make sure your change in URL made it into Paths.pl. FixFile is looking for all the related path information in that file. Also - did you have 2.5.2 fully installed before trying to run FixFile? If 2.5.2 is not fully installed, Settings.pl will not be written and Paths.pl will be empty.


Yes fully installed - as least as i´m aware of that.
Did check that today
So I should copy contents of old paths.pl into the new version first?
  
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,467
Location: Earth

YaBB 2.6.1
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
Reply #7 - Mar 24th, 2013 at 9:39pm
Post Tools
To check if it was fully installed log in as admin. If you can do that, then your install is good. And FixFile should work as it opens the various files it needs with exactly the same commands as YaBB.pl.

Assuming the new install is where you're going to run YaBB from, do not over-write the new Paths.pl.
« Last Edit: Mar 24th, 2013 at 9:45pm 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 #8 - Mar 25th, 2013 at 4:01am
Post Tools
Ahh - here we are!
Can´t log in
Yabb opens with error
so not fully installed
(Good hint - thanks!)

So next problem is: what went wrong?
All the files are there where they should belong
(I noticed during upload some varying file-sizes - is that  normal or not?)

  
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,467
Location: Earth

YaBB 2.6.1
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
Reply #9 - Mar 25th, 2013 at 5:45am
Post Tools
Did you run Setup.pl? That's what fills in Paths.pl and creates Settings.pl (as well as some other files)
  

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 #10 - Mar 25th, 2013 at 2:33pm
Post Tools
Errr - no
Tongue Roll Eyes
Hmpff - maybe that was it!
I´ll try immediately.
  
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 #11 - Mar 25th, 2013 at 2:54pm
Post Tools
SH**!
Next errorcode after trying to log in as admin:

Edited:
Fehlerhafte Kodierung der Inhalte
       
       
          Die aufgerufene Seite kann nicht angezeigt werden, da sie eine ungültige oder nicht unterstützte Form der Kompression verwendet.
       

       
        Die aufgerufene Seite kann nicht angezeigt werden, da sie eine ungültige oder nicht unterstützte Form der Kompression verwendet.Bitte kontaktieren Sie die Website-Betreiber, um sie über dieses Problem zu informieren.


Means: Wrong Coding - page can´t be displayed because it uses an invalid or  not supported form of compression.

What is that?
  
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 #12 - Mar 25th, 2013 at 2:54pm
Post Tools
This is displayed from starting Setup.pl
  
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 #13 - Mar 25th, 2013 at 3:04pm
Post Tools
What irritateds me is that all Filesizes on the Server are smaller than on my Laptop
Reason seems to be the transfer in ASCII-Mode which creates smaller files than in Binary-Mode
But *.pl should be transferred in ASCII as the Quick Guide states and I did so.
  
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,467
Location: Earth

YaBB 2.6.1
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
Reply #14 - Mar 25th, 2013 at 3:39pm
Post Tools
If you uploaded from a Windows machine, the file sizes will always be different as Windows calculates file sizes by a different algorithm that *nix -  they natively use different file systems. This has nothing to do with, and no indication of, whether or not the files are corrupted.

If you open the Paths.pl that is on your server what does it say? If it says
Code
Select All
# Blank Paths.pl file

1; 


then Setup was not successfully run.

  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Topic Tools