YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Pages: 1 2 
Topic Tools
 
Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode (Read 2,507 times)
 Mar 24th, 2013 at 4:37pm
There are no actions to perform.  

GT-Eins 
YaBB Newbie
*
Offline
Posts: 34
Garbsen, Hannover, Germany


None
Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
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
 
WWW  
IP Logged  
 Reply #1 - Mar 24th, 2013 at 5:11pm
There are no actions to perform.  

GT-Eins 
YaBB Newbie
*
Offline
Posts: 34
Garbsen, Hannover, Germany


None
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
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?
 
WWW  
IP Logged  
 Reply #2 - Mar 24th, 2013 at 8:51pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,858
Earth


YaBB 2.5
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
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 »  
WWW  
IP Logged  
 Reply #3 - Mar 24th, 2013 at 8:54pm
There are no actions to perform.  

GT-Eins 
YaBB Newbie
*
Offline
Posts: 34
Garbsen, Hannover, Germany


None
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
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";
 
WWW  
IP Logged  
 Reply #4 - Mar 24th, 2013 at 8:59pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,858
Earth


YaBB 2.5
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
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.
 
WWW  
IP Logged  
 Reply #5 - Mar 24th, 2013 at 9:02pm
There are no actions to perform.  

GT-Eins 
YaBB Newbie
*
Offline
Posts: 34
Garbsen, Hannover, Germany


None
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
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;
 
WWW  
IP Logged  
 Reply #6 - Mar 24th, 2013 at 9:06pm
There are no actions to perform.  

GT-Eins 
YaBB Newbie
*
Offline
Posts: 34
Garbsen, Hannover, Germany


None
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
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?
 
WWW  
IP Logged  
 Reply #7 - Mar 24th, 2013 at 9:39pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,858
Earth


YaBB 2.5
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
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 »  
WWW  
IP Logged  
 Reply #8 - Mar 25th, 2013 at 4:01am
There are no actions to perform.  

GT-Eins 
YaBB Newbie
*
Offline
Posts: 34
Garbsen, Hannover, Germany


None
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
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?)

 
WWW  
IP Logged  
 Reply #9 - Mar 25th, 2013 at 5:45am
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,858
Earth


YaBB 2.5
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
Did you run Setup.pl? That's what fills in Paths.pl and creates Settings.pl (as well as some other files)
 
WWW  
IP Logged  
 Reply #10 - Mar 25th, 2013 at 2:33pm
There are no actions to perform.  

GT-Eins 
YaBB Newbie
*
Offline
Posts: 34
Garbsen, Hannover, Germany


None
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
Errr - no
Tongue Roll Eyes
Hmpff - maybe that was it!
I´ll try immediately.
 
WWW  
IP Logged  
 Reply #11 - Mar 25th, 2013 at 2:54pm
There are no actions to perform.  

GT-Eins 
YaBB Newbie
*
Offline
Posts: 34
Garbsen, Hannover, Germany


None
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
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?
 
WWW  
IP Logged  
 Reply #12 - Mar 25th, 2013 at 2:54pm
There are no actions to perform.  

GT-Eins 
YaBB Newbie
*
Offline
Posts: 34
Garbsen, Hannover, Germany


None
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
This is displayed from starting Setup.pl
 
WWW  
IP Logged  
 Reply #13 - Mar 25th, 2013 at 3:04pm
There are no actions to perform.  

GT-Eins 
YaBB Newbie
*
Offline
Posts: 34
Garbsen, Hannover, Germany


None
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
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.
 
WWW  
IP Logged  
 Reply #14 - Mar 25th, 2013 at 3:39pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,858
Earth


YaBB 2.5
Re: Upgrade 2.3.1=>2.5.2 : FixFile.pl stops with errorcode
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.

 
WWW  
IP Logged  
Pages: 1 2 
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.