PDA

View Full Version : ! Error on Page (ie only) - KILLING ME


Antivirus
05-01-2007, 07:33 PM
I've managed to get almost all our custom templates to be Valid XHTML 1.0 Transitional when checking them at the W3 Validator (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.eclipserecords.com%2F). The site is www.eclipserecords.com if you would like to see what I am talking about.

Problem is however, despite passing validation, when using Internet Explorer 7 and not logged in to the site, I get the Errors on page alert (see attached, lower left corner). As soon as I log in, there's no more error. Also of note, is that if I am not logged in on the forum main page, there is NO error.

The page error looks like this:

Line: 2
Char: 1
Error: syntax error
Code: 0
Url: http://www.eclipserecords.com


I may be going crazy here, but the code for the headers in my custom pages and in my forum main page are identical... shouldn't they both display the error or not?

I decided to take it 1 step further and use W3 Validator version 8 (beta) (http://validator-test.w3.org/check?uri=http%3A%2F%2Fwww.eclipserecords.com) and the newer version seems to find the error (line 2, char 1) so I know the issue is indeed within the first couple lines of the header template:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="en">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="generator" content="Totally-customized vBulletin 3.6.5 on acid..." />


but it IS the same template being called regardless of whether or not being logged in, I double-checked it viewing source within my browser.

What is going on??? :(

CyberAlien
05-01-2007, 08:52 PM
Reupload this file: http://www.eclipserecords.com/clientscript/vbulletin_md5.js

Antivirus
05-01-2007, 09:14 PM
unfortunately, it didn't make any difference. I cleared my cache, dumped all temp files & cookies, etc... still same issue. Any other ideas?

CyberAlien
05-02-2007, 06:34 AM
You still didn't fix that js file. Click that link, it should load a javascript file, but instead it loads a forum page. Looks like that file isn't uploaded.

Antivirus
05-02-2007, 10:48 AM
I think that's because it's a js file and the server has automatic redirects turned on for all page not found 404. Which is wierd, since my FTP shows it as on the server, in the proper directory. It also shows that the file was replaced yesterday on May 1 with the default version.

Could the problem be because, possibly the path to the default location is FORUM/CLIENTSCRIPT/ and the path to this file (when called from the root directory) is ROOT/FORUM/CLIENTSCRIPT ? In other words, are the pages expecting it to always be one directory below the /FORUM directory and in the case of my custom scripts (which reside within root), it's two directories below? The problem doesn't happen when in my forum directories...

CyberAlien
05-02-2007, 10:54 AM
Then copy that directory to root directory.

Antivirus
05-02-2007, 11:18 AM
That fixed it! Thanks so much, i have been trying to fix that forever. I'm soooo happy. :)