Page Index Toggle Pages: 1
Topic Tools
Normal Topic Bug in 2.5.2 (Read 768 times)
RonS2
Senior Member
Beta Testers
****
Offline



Posts: 519

YaBB 2.5.2
Re: Bug in 2.5.2
Reply #6 - Jul 20th, 2013 at 3:34pm
Post Tools
Thanks for the fix xnoddyx
  
Back to top
 
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,587
Location: UK:Scotland/livingston

None
Re: Bug in 2.5.2
Reply #5 - Jul 17th, 2013 at 11:52pm
Post Tools
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)
Back to top
IP Logged
 
RonS2
Senior Member
Beta Testers
****
Offline



Posts: 519

YaBB 2.5.2
Re: Bug in 2.5.2
Reply #4 - Jul 16th, 2013 at 11:51pm
Post Tools
Not critical but this is the result
  

ScreenHunter_049.jpg ( 54 KB | 31 Downloads )
ScreenHunter_049.jpg
Back to top
 
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,587
Location: UK:Scotland/livingston

None
Re: Bug in 2.5.2
Reply #3 - Jul 16th, 2013 at 5:58pm
Post Tools
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)
Back to top
IP Logged
 
RonS2
Senior Member
Beta Testers
****
Offline



Posts: 519

YaBB 2.5.2
Re: Bug in 2.5.2
Reply #2 - Jul 16th, 2013 at 2:04am
Post Tools
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 | 28 Downloads )
ScreenHunter_048.jpg
Back to top
 
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,587
Location: UK:Scotland/livingston

None
Re: Bug in 2.5.2
Reply #1 - Jul 16th, 2013 at 1:56am
Post Tools
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)
Back to top
IP Logged
 
RonS2
Senior Member
Beta Testers
****
Offline



Posts: 519

YaBB 2.5.2
Bug in 2.5.2
Jul 15th, 2013 at 3:57pm
Post Tools
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>');
		}
	} 

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top