Author |
Message |
janeuk
Regular


Joined: Oct 13, 2007
Posts: 61
|
Posted:
Fri Mar 14, 2008 9:36 am |
|
Hi,
I have spent ages trying to work this out but I don't really understand what I have to do to fix it, documentation I have read doesn't really make much sense to me! I have a few of these parsing errors on the W3C validator related to the same line as shown below. Please can someone help me fix this, because I really don't know how to Thank you for any help! Jane
Line 61, Column > 80: XML Parsing Error: Opening and ending tag mismatch: br line 61 and a.…[/b]td style="background-image:url(themes/Anagram/images/bckgrd.gif); background-…✉
Line 61, Column > 80: XML Parsing Error: Opening and ending tag mismatch: img line 61 and center.
…td style="background-image:url(themes/Anagram/images/bckgrd.gif); background-…
The code as seen in the theme.php is here below..'<td style="background-image:url(themes/Anagram/images/bckgrd.gif); background-color: #330033; border: 2px; border-style: none solid none; border-color: #FFFFFFF; width: 160px">';
blocks('left');
echo '</td>'
.'<td width="100%">';
} |
|
|
|
 |
gotcha
Regular


Joined: Mar 14, 2005
Posts: 91
|
Posted:
Fri Mar 14, 2008 10:02 am |
|
I'm betting that those errors come from one of your blocks.
The br and img tags are singleton tags and need to be escaped.
Example
Code:
<br>
should be
<br />
<img src="...">
should be
<img src="..." />
|
The hard part will be finding out which block is producing the offending tags.
Good luck  |
|
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Fri Mar 14, 2008 10:05 am |
|
It's kind of hard to tell from what you have posted. Do you have a link to the page? |
_________________ Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module |
|
|
 |
janeuk

|
Posted:
Tue Mar 18, 2008 11:11 am |
|
Yes, its Only registered users can see links on this board! Get registered or login!
Thanks  |
|
|
|
 |
Gremmie

|
Posted:
Tue Mar 18, 2008 6:00 pm |
|
Thanks. I ran it through the validator at http://validator.w3.org/ and there are many problems. There are tags with illegal attributes (table background, etc), closing tags missing, etc. It probably would not be that hard to fix those, though. |
|
|
|
 |
janeuk

|
Posted:
Tue Mar 18, 2008 6:50 pm |
|
Any clue how to actually fix it, thats the part I'm stumped on Thanks |
|
|
|
 |
Gremmie

|
Posted:
Tue Mar 18, 2008 7:56 pm |
|
Well, in general, you just have to look at the errors of the validator and then find where in the theme (or elsewhere) those are getting generated at. The errors could also be coming from blocks. Always fix the first few and then revalidate, because many of the errors are just cascading errors that go away when you fix the first few. |
|
|
|
 |
janeuk

|
Posted:
Wed Mar 19, 2008 5:37 am |
|
Ok, thanks Gremmie, yes, some of these errors are not in theme, I think they are to do with the friendfinder I have installed. I'll have another go at it but is there a quick way to search all the files to find the error code, rather than have to open each file individually and then search. I'm using CPanel. Hope that makes sense  |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed Mar 19, 2008 5:42 am |
|
using cpanel to edit files? Uggghh. Yeah, that will take awhile. You may want to FTP your files down locally and then use edit them there using something like TextPad or Notepad++ (cannot remember how many plus signs but do NOT use the standard Windows notepad - it can mess up your files).
Unfortunately, correctly compliance issues in a module is not as easy as "search all the files". That could probably work for code like <br> and <hr>, but image tags, broken table structures, etc, will still require you to either go through the code proactively and correct, or use the method Gremmie is describing.
Believe me, I've done a ton of this work in order to get RavenNuke(tm) where it is today and it takes work. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
|