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


 
Page Index Toggle Pages: 1
Topic Tools
 
Bug in 2.5.2 (Read 608 times)
 Jul 15th, 2013 at 3:57pm
There are no actions to perform.  

RonS2 
Full Member
Beta Testers
***
Offline
Posts: 444


YaBB 2.5
Bug in 2.5.2
Quote:
Timestamp: 7/15/2013 11:46:52 AM
Error: ReferenceError: STABLE is not defined
Source File: cgi-bin/yabb2/AdminIndex.pl
Line: 241



Code Select All
  <script language="JavaScript" type="text/javascript">
  <!-- //hide from dinosaurs
	document.write('<table width="100%" cellspacing="1" cellpadding="4">');
	document.write('<tr><td colspan="2" class="titlebg"><b>Version Information</b></td></tr>');
	document.write('<tr><td class="windowbg2">YOUR version:</td><td class="windowbg2"><b>YaBB 2.5.2</b></td></tr>');
	if (!STABLE) {
		document.write('<tr><td colspan="2" class="titlebg">Remote Server not available!</b></td></tr>');
	} else {
		document.write('<tr><td class="windowbg2">Latest RELEASE version:</td><td class="windowbg2"><b>'+STABLE+'</b></td></tr>');
		document.write('<tr><td class="windowbg2">Latest BETA version:</td><td class="windowbg2"><b>'+BETA+'</b></td></tr>');
		document.write('<tr><td class="windowbg2">Latest ALPHA version:</td><td class="windowbg2"><b>'+ALPHA+'</b></td></tr>');
		if (STABLE == "YaBB 2.5.2") {
			document.write('<tr><td colspan="2" valign="middle" class="windowbg2"><br />You are running the latest release version.<br /><br /></td></tr>');
		} else {
			document.write('<tr><td colspan="2" valign="middle" class="windowbg2"><br /><b><font color="red">There is a new release version available!</font></b><br />If you would like to download '+STABLE+', please go to <a href="http://www.yabbforum.com/downloads.php" onclick="target=&#39;_blank&#39;;">http://www.yabbforum.com/downloads.php</a>.<br /><br /></td></tr>');
		}
	} 

 
 
IP Logged  
 Reply #1 - Jul 16th, 2013 at 1:56am
There are no actions to perform.  

xnoddyx 
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline
Posts: 1,552
UK:Scotland/livingston


YaBB 2.5
Re: Bug in 2.5.2
Ron are you still getting this error?
 
YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
WWW xnoddyx xnoddyx1  
IP Logged  
 Reply #2 - Jul 16th, 2013 at 2:04am
There are no actions to perform.  

RonS2 
Full Member
Beta Testers
***
Offline
Posts: 444


YaBB 2.5
Re: Bug in 2.5.2
Yes, on two different computers.

Edited:
And two different operating systems
« Last Edit: Jul 16th, 2013 at 2:20am by RonS2 »  
ScreenHunter_048.jpg (58 KB | 30 )
ScreenHunter_048.jpg
 
IP Logged  
 Reply #3 - Jul 16th, 2013 at 5:58pm
There are no actions to perform.  

xnoddyx 
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline
Posts: 1,552
UK:Scotland/livingston


YaBB 2.5
Re: Bug in 2.5.2
RonS2 wrote on Jul 16th, 2013 at 2:04am:
Yes, on two different computers.

Edited:
And two different operating systems

ok I am passing this onto Dandello just now as I am not getting this error from any of my test 2.5.2 forums but Dandello has also had this prob as well.
 
YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
WWW xnoddyx xnoddyx1  
IP Logged  
 Reply #4 - Jul 16th, 2013 at 11:51pm
There are no actions to perform.  

RonS2 
Full Member
Beta Testers
***
Offline
Posts: 444


YaBB 2.5
Re: Bug in 2.5.2
Not critical but this is the result
 
ScreenHunter_049.jpg (54 KB | 35 )
ScreenHunter_049.jpg
 
IP Logged  
 Reply #5 - Jul 17th, 2013 at 11:52pm
There are no actions to perform.  

xnoddyx 
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline
Posts: 1,552
UK:Scotland/livingston


YaBB 2.5
Re: Bug in 2.5.2
Hi Ron I think I may have found a fix for this
in Admin.pl find
Code Select All
<script type="text/javascript" src="http://yabbforum.com/update/versioncheck.js"></script>
  <script type="text/javascript">
  <!-- //hide from dinosaurs
	document.write('<table width="100%" cellspacing="1" cellpadding="4">');
	document.write('<tr><td colspan="2" class="titlebg"><b>$admintxt{'3'}</b></td></tr>');
	document.write('<tr><td class="windowbg2">$versiontxt{'4'}</td><td class="windowbg2"><b>$YaBBversion</b></td></tr>');
	if (!STABLE) {
		document.write('<tr><td colspan="2" class="titlebg">$rna</b></td></tr>');
	} else {
		document.write('<tr><td class="windowbg2">$versiontxt{'5'}</td><td class="windowbg2"><b>'+STABLE+'</b></td></tr>');
		document.write('<tr><td class="windowbg2">$versiontxt{'7'}</td><td class="windowbg2"><b>'+BETA+'</b></td></tr>');
		document.write('<tr><td class="windowbg2">$versiontxt{'8'}</td><td class="windowbg2"><b>'+ALPHA+'</b></td></tr>');
		if (STABLE == "$YaBBversion") {
			document.write('<tr><td colspan="2" valign="middle" class="windowbg2"><br />$versiontxt{'6'}<br /><br /></td></tr>');
		} else {
			document.write('<tr><td colspan="2" valign="middle" class="windowbg2"><br />$versiontxt{'2'}'+STABLE+'$versiontxt{'3'}<br /><br /></td></tr>');
		}
	}
	document.write('</table>');
  // -->
  </script> 


in here look for
Code Select All
if (!STABLE) { 



and replace it with
Code Select All
if (typeof STABLE == "undefined" || STABLE == null ) { 



what you will end up with
Code Select All
<script type="text/javascript" src="http://yabbforum.com/update/versioncheck.js"></script>
  <script type="text/javascript">
  <!-- //hide from dinosaurs
	document.write('<table width="100%" cellspacing="1" cellpadding="4">');
	document.write('<tr><td colspan="2" class="titlebg"><b>$admintxt{'3'}</b></td></tr>');
	document.write('<tr><td class="windowbg2">$versiontxt{'4'}</td><td class="windowbg2"><b>$YaBBversion</b></td></tr>');
	if (typeof STABLE == "undefined" || STABLE == null ) {
		document.write('<tr><td colspan="2" class="titlebg">$rna</b></td></tr>');
	} else {
		document.write('<tr><td class="windowbg2">$versiontxt{'5'}</td><td class="windowbg2"><b>'+STABLE+'</b></td></tr>');
		document.write('<tr><td class="windowbg2">$versiontxt{'7'}</td><td class="windowbg2"><b>'+BETA+'</b></td></tr>');
		document.write('<tr><td class="windowbg2">$versiontxt{'8'}</td><td class="windowbg2"><b>'+ALPHA+'</b></td></tr>');
		if (STABLE == "$YaBBversion") {
			document.write('<tr><td colspan="2" valign="middle" class="windowbg2"><br />$versiontxt{'6'}<br /><br /></td></tr>');
		} else {
			document.write('<tr><td colspan="2" valign="middle" class="windowbg2"><br />$versiontxt{'2'}'+STABLE+'$versiontxt{'3'}<br /><br /></td></tr>');
		}
	}
	document.write('</table>');
  // -->
  </script> 



let me know how you get on with this  Wink
 
YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
WWW xnoddyx xnoddyx1  
IP Logged  
 Reply #6 - Jul 20th, 2013 at 3:34pm
There are no actions to perform.  

RonS2 
Full Member
Beta Testers
***
Offline
Posts: 444


YaBB 2.5
Re: Bug in 2.5.2
Thanks for the fix xnoddyx
 
 
IP Logged  
Page Index Toggle Pages: 1
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.