PDA

View Full Version : Runtime Error


Rose
02-23-2002, 07:46 PM
Hello Everybody! *Dr. Nick wave*


I'm having some runtime errors and I can't manage to fix it. In the admin cp, I get a popup box that says

A Runtime Error has occured
Do you wish to Debug?

Line: 15
Error: Unterminated string constant

Then when you click on either yes/no, it comes up again with the Line: 164 - same error.

We have been adding a lot of hacks and upgrades, so I don't know which file the error is in, nor do I know where to start looking. When I clicked 'yes' to debug, I was taken to what almost looked like the "HEADER" template (or something close to it).

Any ideas? This is kinda important. :)

Thanks!!!


Rose

Admin
02-24-2002, 05:06 AM
*obvious question :)* What's line 15? And 164?

fordinglife
02-24-2002, 06:18 AM
Hey Rose. Thanks for asking for me. :)

Here's Line 15: $redirect=ereg_replace("\\?s=[a-z0-9]{32}","",$redirect);

Line 164: ?>

Admin
02-24-2002, 06:23 AM
I mean the lines of the HTML code. :)

fordinglife
02-24-2002, 06:30 AM
HTML code? Sorry? :)

Do you mean the couple of lines after lines 15 and 164 in the admin/index.php?

Admin
02-24-2002, 06:41 AM
Right click => View source.

fordinglife
02-24-2002, 06:55 AM
Ok, I dunno if this is what you wanted.

Lines 12-16
href="http://www.jelsoft.com/">Jelsoft Enterprises Limited</a></font></p>

<script language="Javascript">
if ('2.2.2' < vb_version) {
document.write("<div align=\"center\" class=\"tblhead\"

Lines 162-166

<p align="center"><font size='1'>?2000,2001 Jelsoft Enterprises Ltd.<br>
<script language="JavaScript">
if ('2.2.2'==vb_version) {
document.write("You are running the latest version of vBulletin (<a
href=\"http://vbulletin.com/forum/showthread.php?postid="+vb_announcementid+"\">"+vb_version+"</a>)");

Exact Line 15

if ('2.2.2' < vb_version) {

Exact Line 164

if ('2.2.2'==vb_version) {

(By the way, the vb version I am running is 2.2.2)

Admin
02-24-2002, 07:02 AM
It's probably a problem with Jelsoft's server, you could't require the javascript file from there and that's why you get an error whenever you try to use the vb_version string.

(BTW do you like the new code/quote boxes? :D)

Rose
02-24-2002, 04:09 PM
Chen - I love the new quote boxes. Very professional like. :D


But, are you saying the error can't be fixed? *lol* Or do we need to go in and edit the html? *doesn't know how the code got changed in the first place*