Skip to Content
It is currently September 18th, 2014, 10:45 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Sintax on line 4
PostPosted: February 19th, 2008, 5:51 pm 
Offline
Senior User
Senior User

Joined: July 31st, 2007, 2:12 pm
Posts: 77
Can onyone tell where the sintax error is on here please?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: February 19th, 2008, 6:03 pm 
Offline
Alumni
Alumni

Joined: October 14th, 2006, 9:38 am
Posts: 5987
Location: Deep in the heart of the PRNJ
I get a web site that comes up and appears to work just fine.

_________________
- Stan Olochwoszcz
A proud licensed SAM user since 2002

Raritan Bay Radio


Top
 Profile  
 
 Post subject:
PostPosted: February 19th, 2008, 6:08 pm 
Offline
Super User
Super User

Joined: June 27th, 2006, 11:27 am
Posts: 790
Same here.


Top
 Profile  
 
 Post subject:
PostPosted: February 19th, 2008, 6:11 pm 
Offline
Senior User
Senior User

Joined: July 31st, 2007, 2:12 pm
Posts: 77
On your left bottom side of the browser you guys dont get a message saying "Done but with errors" ?


Top
 Profile  
 
 Post subject:
PostPosted: February 19th, 2008, 6:45 pm 
Offline
Cygnus X-1
Cygnus X-1

Joined: March 11th, 2003, 1:34 pm
Posts: 9960
Location: Maui, HI
This is what the HTML Tidy tool for Firefox tells me:
Code:
Result: 0 errors / 104 warnings

line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 3 column 1 - Warning: discarding unexpected <html>
line 5 column 1 - Warning: <head> isn't allowed in <body> elements
line 1 column 1 - Info: <body> previously mentioned
line 6 column 1 - Warning: <title> isn't allowed in <body> elements
line 1 column 1 - Info: <body> previously mentioned
line 7 column 1 - Warning: <style> isn't allowed in <body> elements
line 1 column 1 - Info: <body> previously mentioned
line 14 column 95 - Warning: unescaped & or unknown entity "&subscription"
line 29 column 1 - Warning: <meta> isn't allowed in <body> elements
line 1 column 1 - Info: <body> previously mentioned
line 29 column 73 - Warning: </head> isn't allowed in <body> elements
line 1 column 1 - Info: <body> previously mentioned
line 31 column 1 - Warning: discarding unexpected <body>
line 43 column 3 - Warning: discarding unexpected </div>
line 44 column 1 - Warning: discarding unexpected </p>
line 47 column 2 - Warning: discarding unexpected <body>
line 53 column 9 - Warning: <embed> is not approved by W3C
line 53 column 215 - Warning: discarding unexpected </embed>
line 55 column 3 - Warning: <script> isn't allowed in <tr> elements
line 49 column 3 - Info: <tr> previously mentioned
line 63 column 2 - Warning: discarding unexpected <body>
line 77 column 127 - Warning: nested emphasis <b>
line 107 column 124 - Warning: unescaped & or unknown entity "&title"
line 107 column 147 - Warning: unescaped & or unknown entity "&album"
line 111 column 2 - Warning: <td> dropping value "NULL" for repeated attribute "nowrap"
line 136 column 77 - Warning: unescaped & or unknown entity "&title"
line 136 column 88 - Warning: unescaped & or unknown entity "&album"
line 144 column 127 - Warning: unescaped & or unknown entity "&title"
line 144 column 138 - Warning: unescaped & or unknown entity "&album"
line 148 column 132 - Warning: unescaped & or unknown entity "&title"
line 148 column 143 - Warning: unescaped & or unknown entity "&album"
line 152 column 2 - Warning: <td> dropping value "NULL" for repeated attribute "nowrap"
line 179 column 130 - Warning: unescaped & or unknown entity "&title"
line 179 column 140 - Warning: unescaped & or unknown entity "&album"
line 183 column 2 - Warning: <td> dropping value "NULL" for repeated attribute "nowrap"
line 198 column 72 - Warning: unescaped & or unknown entity "&title"
line 198 column 87 - Warning: unescaped & or unknown entity "&album"
line 206 column 122 - Warning: unescaped & or unknown entity "&title"
line 206 column 137 - Warning: unescaped & or unknown entity "&album"
line 210 column 127 - Warning: unescaped & or unknown entity "&title"
line 210 column 142 - Warning: unescaped & or unknown entity "&album"
line 214 column 2 - Warning: <td> dropping value "NULL" for repeated attribute "nowrap"
line 241 column 123 - Warning: unescaped & or unknown entity "&title"
line 241 column 141 - Warning: unescaped & or unknown entity "&album"
line 245 column 2 - Warning: <td> dropping value "NULL" for repeated attribute "nowrap"
line 272 column 132 - Warning: unescaped & or unknown entity "&title"
line 272 column 145 - Warning: unescaped & or unknown entity "&album"
line 276 column 2 - Warning: <td> dropping value "NULL" for repeated attribute "nowrap"
line 295 column 38 - Warning: missing </font> before <table>
line 310 column 1 - Warning: inserting implicit <font>
line 318 column 35 - Warning: missing </font> before <body>
line 319 column 7 - Warning: discarding unexpected <body>
line 321 column 58 - Warning: missing </font> before <body>
line 323 column 1 - Warning: discarding unexpected <body>
line 325 column 58 - Warning: missing </font> before <body>
line 327 column 1 - Warning: discarding unexpected <body>
line 329 column 58 - Warning: missing </font> before <body>
line 331 column 1 - Warning: discarding unexpected <body>
line 333 column 58 - Warning: missing </font> before <body>
line 335 column 1 - Warning: discarding unexpected <body>
line 337 column 58 - Warning: missing </font> before <body>
line 339 column 1 - Warning: discarding unexpected <body>
line 341 column 58 - Warning: missing </font> before <body>
line 343 column 1 - Warning: discarding unexpected <body>
line 345 column 58 - Warning: missing </font> before <body>
line 347 column 1 - Warning: discarding unexpected <body>
line 349 column 58 - Warning: missing </font> before <body>
line 351 column 1 - Warning: discarding unexpected <body>
line 353 column 58 - Warning: missing </font> before <body>
line 355 column 1 - Warning: discarding unexpected <body>
line 369 column 60 - Warning: unescaped & or unknown entity "&item"
line 369 column 71 - Warning: unescaped & or unknown entity "&width"
line 369 column 81 - Warning: unescaped & or unknown entity "&direction"
line 369 column 100 - Warning: unescaped & or unknown entity "&showtop5"
line 369 column 113 - Warning: unescaped & or unknown entity "&background"
line 369 column 130 - Warning: unescaped & or unknown entity "&graph1"
line 369 column 141 - Warning: unescaped & or unknown entity "&graph2"
line 369 column 155 - Warning: unescaped & or unknown entity "&text"
line 373 column 7 - Warning: discarding unexpected </font>
line 375 column 4 - Warning: discarding unexpected </td>
line 33 column 1 - Warning: missing </div>
line 7 column 1 - Warning: <style> inserting "type" attribute
line 14 column 1 - Warning: <script> inserting "type" attribute
line 15 column 1 - Warning: <script> inserting "type" attribute
line 20 column 1 - Warning: <script> inserting "type" attribute
line 35 column 1 - Warning: <table> proprietary attribute "height"
line 48 column 1 - Warning: <table> proprietary attribute "height"
line 95 column 144 - Warning: <img> proprietary attribute "onerror"
line 95 column 144 - Warning: <img> escaping malformed URI reference
line 123 column 69 - Warning: <font> attribute "color" had invalid value "CC9900" and has been replaced
line 136 column 129 - Warning: <img> proprietary attribute "onerror"
line 136 column 129 - Warning: <img> escaping malformed URI reference
line 167 column 144 - Warning: <img> proprietary attribute "onerror"
line 167 column 144 - Warning: <img> escaping malformed URI reference
line 198 column 122 - Warning: <img> proprietary attribute "onerror"
line 198 column 122 - Warning: <img> escaping malformed URI reference
line 229 column 144 - Warning: <img> proprietary attribute "onerror"
line 229 column 144 - Warning: <img> escaping malformed URI reference
line 260 column 144 - Warning: <img> proprietary attribute "onerror"
line 260 column 144 - Warning: <img> escaping malformed URI reference
line 302 column 139 - Warning: <img> proprietary attribute "onerror"
line 302 column 139 - Warning: <img> escaping malformed URI reference
line 369 column 3 - Warning: <script> inserting "type" attribute
line 382 column 7 - Warning: <hr> proprietary attribute "color"
line 403 column 8 - Warning: <script> inserting "type" attribute
line 295 column 38 - Warning: trimming empty <font>
line 318 column 35 - Warning: trimming empty <font>
line 381 column 27 - Warning: trimming empty <font>
line 381 column 24 - Warning: trimming empty <p>
Info: Document content looks like HTML Proprietary


I notice the HTML output has an extraneous opening body on line 1 which can cause havoc.

As well as an error on showbutton.php:
Code:
syntax error
http://donatemeter.com/showbutton.php?i=1043&item=W2DM1&width=170&direction=vertical&showtop5=yes&background=black&graph1=red&graph2=maroon&text=red
Line 3

_________________
- Steve Kunitzer
- SVS (Spacial Volunteer Support) / Forum Administrator

Image
Image


Top
 Profile  
 
 Post subject:
PostPosted: February 19th, 2008, 8:54 pm 
Offline
Senior User
Senior User

Joined: July 31st, 2007, 2:12 pm
Posts: 77
The error was caused by the donation button in the second code box in your post FesterHead. Apparently the donation meter I was using was shutdown so my code was casing errors.
After removal of the code in question the page stopped giving the error.

As to the HTML code warnings, are those coming from my php pages?
How do I fix it?
Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: February 20th, 2008, 1:00 pm 
Offline
Cygnus X-1
Cygnus X-1

Joined: March 11th, 2003, 1:34 pm
Posts: 9960
Location: Maui, HI
Quote:
As to the HTML code warnings, are those coming from my php pages?
How do I fix it?

Yes.
The fix is to make sure the PHP outputs valid HTML.
For example, a view source on playing.php shows the top as:
Code:
<body bgcolor="#000000" text="#99FF00">

<html>

<head>
<title>Archaikus</title>
<style>

Note the misplaced body tag.

A little further down we have:
Code:
<div align="center"></div>
<div align="center">
 
<table width="800" height="131" border="0" cellpadding="0" cellspacing="0">
  <tr>
     
    <td width="100%" height="131" align="center"><p><img src="images/AGR_Banner.gif" width="800" height="87" align="top"></p>
      <p><img src="images/PowerOfGoth_Banner.gif" width="297" height="45"></p></td>
    </tr>
  </table>
<table border=0 cellspacing=5 cellpadding=5>
  </div>
</p>

Which has an empty div, a misplaced terminating /p and a misplaced terminating /div.

Other warning such as line 53 column 9 - Warning: <embed> is not approved by W3C or line 107 column 120 - Warning: unescaped & or unknown entity "&title" should be straight forward; don't use <embed> and escape the & (with &amp;).

Although these are only warnings they can cause unexpected rendering by different browsers depending on how fail-safe they are.

Coding for inter-operable web pages isn't tough to do but often ignored.

_________________
- Steve Kunitzer
- SVS (Spacial Volunteer Support) / Forum Administrator

Image
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group