• Bannato User Attivo

    [W3c] Errori di validazione

    Come risolvo gli errori :

    Error Line 9 column 12: there is no attribute "name".

    <META name="verify-v1" content="EDcGAohwFd+9C95XaDqIu92pdJoZie8AQEi7OsVXE94=" /
    

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.

    Error Line 9 column 32: there is no attribute "content".

    <META name="verify-v1" content="EDcGAohwFd+9C95XaDqIu92pdJoZie8AQEi7OsVXE94=" /
    

    Error Line 9 column 80: element "META" undefined.

    ...+9C95XaDqIu92pdJoZie8AQEi7OsVXE94=" /><meta http-equiv="Content-Type" content

    You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

    * incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
    * by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
    * by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.
    

    Error Line 18 column 13: there is no attribute "scroll".

    <body scroll="yes"><a name="top"></a>

    Error Line 27 column 23: document type does not allow element "td" here.

        <td width="151"><a href="http://www.damianocunego.net/news">CLICCA QUI P
    

    The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

    Error Line 87 column 23: end tag for "br" omitted, but OMITTAG NO was specified.

    <td width="100%">	<br>
    

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

    Info Line 87 column 19: start tag was here.

    <td width="100%">	<br>
    

    Error Line 200 column 19: end tag for "br" omitted, but OMITTAG NO was specified.

    <br class="clear">
    

    Info Line 200 column 1: start tag was here.

    <br class="clear">
    

    Error Line 215 column 9: end tag for "a" omitted, but OMITTAG NO was specified.

     	</div>
    

    Info Line 213 column 4: start tag was here.

    	<a href="http://www.damianocunego.net/components/com_ponygallery/img_picture
    

    Error Line 223 column 64: character data is not allowed here.

    ...lspacing="0" cellpadding="0" width="100%" border="0">Benvenuto Guest.<br />

    You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>) or forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes).

    Error Line 223 column 85: document type does not allow element "br" here; assuming missing "caption" start-tag.

    ...00%" border="0">Benvenuto Guest.<br />

    Error Line 224 column 53: document type does not allow element "form" here; missing one of "object", "applet", "map", "iframe", "ins", "del" start-tag.

    	<form action="index.php" name="login" method="post">
    

    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

    Error Line 236 column 5: end tag for "caption" omitted, but OMITTAG NO was specified.

    </td></tr>
    

    Info Line 223 column 80: start tag was here.

    ...th="100%" border="0">Benvenuto Guest.<br />

    Error Line 236 column 5: "table" not finished but containing element ended.

    </td></tr>
    

    Error Line 236 column 5: end tag for "table" omitted, but OMITTAG NO was specified.

    </td></tr>
    

    Info Line 223 column 1: start tag was here.

    <table cellspacing="0" cellpadding="0" width="100%" border="0">Benvenuto Guest.
    

    Error Line 240 column 16: end tag for "div" omitted, but OMITTAG NO was specified.

    </table>			</td>
    

    Info Line 204 column 96: start tag was here.

    ..."></div><div class="modul_container"><div class="modul_content"> <table cell

    Error Line 240 column 16: end tag for "div" omitted, but OMITTAG NO was specified.

    </table>			</td>
    

    Info Line 204 column 67: start tag was here.

    ...px;"><div class="modul_header"></div><div class="modul_container"><div class=

    Error Line 254 column 50: end tag for element "td" which is not open.

    	</div></div><div class="modul_footer"></div></td>
    

    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

    If this error occured in a script section of your document, you should probably read this FAQ entry.

    Error Line 255 column 5: end tag for element "tr" which is not open.

    </tr>
    

    Error Line 256 column 7: end tag for element "table" which is not open.

    </table>

    Error Line 261 column 158: required attribute "type" not specified.

    ...anocunego.net/stats/php-stats.js.php"></script>

    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

    Error Line 262 column 98: end tag for "img" omitted, but OMITTAG NO was specified.

    ...ats.php" border="0" alt=""></noscript><script language="JavaScript" src="http

    Info Line 262 column 10: start tag was here.

    <noscript><img src="http://www.damianocunego.net/stats/php-stats.php" border="0"

    Warning Line 262 column 194: cannot generate system identifier for general entity "style".

    ...o.net/stats/view_stats.js.php?mode=3&style=15"></script>

    An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

    Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and æ are different characters.

    If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

    Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.

    Error Line 262 column 194: general entity "style" not defined and no default entity.

    ...o.net/stats/view_stats.js.php?mode=3&style=15"></script>

    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.

    Warning Line 262 column 199: reference not terminated by REFC delimiter.

    .../stats/view_stats.js.php?mode=3&style=15"></script>

    If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.

    Warning Line 262 column 199: reference to external entity in attribute value.

    .../stats/view_stats.js.php?mode=3&style=15"></script>

    This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&'.

    Error Line 262 column 199: reference to entity "style" for which no system identifier could be generated.

    .../stats/view_stats.js.php?mode=3&style=15"></script>

    This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.

    Info Line 262 column 193: entity was defined here.

    ...go.net/stats/view_stats.js.php?mode=3&style=15"></script>

    Error Line 262 column 203: required attribute "type" not specified.

    ...ts/view_stats.js.php?mode=3&style=15"></script>

    Error Line 268 column 14: end tag for "center" omitted, but OMITTAG NO was specified.

    </script></div><br class="clear">

    Info Line 261 column 63: start tag was here.

    ...x.it">Galeax</a>; Creazioni web</div><center><script language="javascript" sr

    Error Line 268 column 33: end tag for "br" omitted, but OMITTAG NO was specified.

    </script></div><br class="clear">

    Info Line 268 column 15: start tag was here.

    </script></div><br class="clear">

    Error Line 271 column 5: end tag for element "div" which is not open.

    </div>

    Error Line 272 column 5: end tag for element "div" which is not open.

    </div>


  • Super User

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.damianocunego.net%2F

    Prendiamoli uno alla volta 🙂

    <META name="verify-v1" content="EDcGAohwFd+9C95XaDqIu92pdJoZie8AQEi7OsVXE94=" /

    Questo è per la sitemap di google, però mettilo tutto in minuscolo, stai usando l'xhtml come codifica 🙂

    <body scroll="yes">

    Mi sa che metti solo <body> funziona lo stesso 😛

    ** <td width="151"><a href="http://www.damianocunego.net/news">CLICCA QUI P**

    hai messo il td dentro

    <div id="sitename_container">
    <div id="layer">
    <td width="151"><a href="http://www.damianocunego.net/news">CLICCA QUI PER LEGGERE LE NEWS SU DAMIANO CUNEGO </a></td>
    </div>
    </div>

    e quindi lo segnala errore, non c'è un tr aperto ne tantomeno un table 🙂

    <td width="100%"> <br>****

    Usando xhtml devi chiuedere il br con il tag /, quindi diventa: <br />

    <br class="clear">****

    Stessa cosa di sopra

    Line 215 column 9: end tag for "a" omitted, but OMITTAG NO was specified.
    </div>****

    Questo ho specificato perchè curioso.
    Dice che manca un </a> e in effetti manca alla riga 230

    <div align="center">
         
              <a href="http://www.damianocunego.net/components/com_ponygallery/img_pictures/coppiebartali20063_20060327_5619219.jpg" rel="lightbox">
                   <img src="http://www.damianocunego.net/components/com_ponygallery/img_pictures/coppiebartali20063_20060327_5619219.jpg" border="0" width="100" height="75" alt="coppiebartali20063_20060327_5619219.jpg" /><br />
              </div>
    

    che va messo propio prima della fine del div

    ...lspacing="0" cellpadding="0" width="100%" border="0">Benvenuto Guest.<br />

    Qui l'errore è che non puoi mettere

    <table cellspacing="0" cellpadding="0" width="100%" border="0">Benvenuto Guest.<br />

    del testo senza un tr/th e un td, e tu l'hai messo proprio dopo la tabella 😉

    <form action="index.php" name="login" method="post">****

    è lo stesso errore di prima, non puoi mettere un form dentro una tabella appena dopo il table

    nd tag for "caption" omitted, but OMITTAG NO was specified.
    </td></tr>

    Questo perchè non hai specificato ne un tr ne un td

    Gli altri sono su questo genere.. poi

    ...anocunego.net/stats/php-stats.js.php"></script>

    manca il type (type="text/javascript")

    ...ats.php" border="0" alt=""></noscript>**<script language="JavaScript" src="http **

    manca il / finale dell'immagine
    ...ats.php" border="0" alt="" />

    ...o.net/stats/view_stats.js.php?mode=3&style=15"></script>

    & sostituiscilo con &

    </script></div><br class="clear">

    Alla riga hai 283 hai messo un <center> ma non l'hai chiuso

    </div>**
    **
    Gli ultimi due errori sono dati dal fatto che hai chiuso due div, ma non erano aperti

    :ciauz:


  • Bannato User Attivo

    nn capisco ... il mio templte è :

     <?php
    defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); $iso = split( '=', _ISO ); echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>'; ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
    <?php mosShowHead(); ?>
    <?php
    if ( $my->id ) {
        initEditor();
    }
    $collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
    $user1 = 0;
    $user2 = 0;
    $colspan = 0;
    $right = 0;
    
    if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
        $user1 = 2;
        $user2 = 2;
        $colspan = 3;
    } elseif ( mosCountModules( 'user1' ) == 1 ) {
        $user1 = 1;
        $colspan = 1;
    } elseif ( mosCountModules( 'user2' ) == 1 ) {
        $user2 = 1;
        $colspan = 1;
    }
    
    if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
        $right = 1;
    }
    ?>
    <META name="verify-v1" content="edcgaohwfd+9c95xadqiu92pdjozie8aqei7Osvxe94=" /><meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
    <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $cur_template;?>/css/template_css.css" rel="stylesheet" type="text/css" />
    <link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />
    <link href="css/template_css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<?php echo $mosConfig_live_site; ?>/mambots/content/lightThumb/prototype.js"></script>
    <script type="text/javascript" src="<?php echo $mosConfig_live_site; ?>/mambots/content/lightThumb/scriptaculous.js?load=effects"></script>
    <script type="text/javascript" src="<?php echo $mosConfig_live_site; ?>/mambots/content/lightThumb/lightbox.js"></script>
    <link href="<?php echo $mosConfig_live_site; ?>/mambots/content/lightThumb/lightbox.css" rel="stylesheet" type="text/css"/>
    </head>
    <body scroll="yes"><a name="top"></a>
    <div align="center"><div id="layout_container">
    
    <div id="header_container">
      <div id="topmenu_container"><?php mosLoadModules ( 'user3', -1 ); ?></div>
        <div id="path_container">
            <?php mosPathWay(); ?>
        </div>
        <div id="sitename_container">
          <div id="layer">
            <td width="151"><a href="http://www.damianocunego.net/news">CLICCA QUI PER LEGGERE LE NEWS SU DAMIANO CUNEGO </a></td>
            </div>
        </div>
    </div>
    
    <div id="content_container">
    <table border="0" cellpadding="0" cellspacing="0" width="980">
    <tr valign="top">
    
        <?php if (mosCountModules('left')>0) { ?>
        <td style="padding-left: 10px;"><div class="modul_header"></div><div class="modul_container"><div class="modul_content"><?php mosLoadModules ( 'left' ); ?></div></div><div class="modul_footer"></div></td>
        <?php } ?>
        
        <?php if (( mosCountModules( 'left' )==0) && ( mosCountModules( 'right' )==0)) { ?><td width="100%" style="padding-left: 10px;padding-right: 10px;"><?php } else if ( mosCountModules( 'right' )==0) { ?><td width="100%" style="padding-right: 10px;"><?php } else if ( mosCountModules( 'left' )==0) { ?><td width="100%" style="padding-left: 10px;"><?php } else { ?><td width="100%"><?php } ?>
        <br>
        <div id="main_header">
            <div id="main_header-left"></div>
            <!-- Diese Zeile löschen um den Begrüßungstext zu entfernen --><div id="main_header-welcome"><?php if ( $my->username ) { echo ("<span class='willkommen'>Informazioni, foto, video, curiosità, forum... su Damiano Cunego</span>");} else { ?><span class='willkommen'>Informazioni, foto, video, curiosità, forum... su Damiano Cunego</span><?php } ?></div>
            <div id="main_header-right"></div>
        </div>
        <div id="main_container">
        <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td id="main_left"></td><td>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <?php if ( mosCountModules ('banner')>0) { ?><tr valign="top"><td colspan="<?php echo $colspan; ?>"><div id="modul_banner"><?php mosLoadModules ( 'banner', -1 ); ?></div></td></tr><?php } ?>
        <?php if ($colspan > 0) { ?>
        <tr valign="top">
        <?php if ( $user1 > 0 ) { ?><td width="50%" align="left"><div><?php mosLoadModules ( 'user1', -2 ); ?></div></td>
        <?php }    if ( $colspan == 3) { ?><td><div id="abstand"></div></td>
        <?php } if ( $user2 > 0 ) { ?><td width="50%" align="left"><div><?php mosLoadModules ( 'user2', -2 ); ?></div></td>
        <?php }    ?>
        </tr>
        <?php } ?>
        <tr><td colspan="<?php echo $colspan; ?>" width="100%"><div id="mainbody"><?php mosMainBody(); ?></div></td></tr>
        </table></td><td id="main_right"></td></tr></table>
        </div>
        <br class="clear">
        <div id="main_footer"><div id="main_footer-middle"><div id="main_footer-left"></div><div id="main_footer-right"></div></div></div>
        </td>
        
        <?php if ( mosCountModules ('right')>0) { ?>
        <td style="padding-right: 10px;"><div class="modul_header"></div><div class="modul_container"><div class="modul_content"><?php mosLoadModules ( 'right' ); ?></div></div><div class="modul_footer"></div></td>
        <?php } ?>
    </tr>
    </table>
    <?PHP
    if(file_exists($mosConfig_absolute_path."/components/com_joomlastats/joomlastats.inc.php")) 
    {
        require_once($mosConfig_absolute_path."/components/com_joomlastats/joomlastats.inc.php");
    }
    ?>
    <?php include_once('includes/footer.php'); ?>
    </div><br class="clear">
    <div id="footer_container"></div>
    
    </div>
    </div>
    </body>
    </html>
    

    cs devo farci?


  • Super User

    Devi controllare anche i file che includi (oltre al codice che hai postato). Io non posso fare questo 🙂


  • Bannato User Attivo

    ma nel codice postato cs faccio?


  • Super User

    Ciao Galeax 🙂

    Ti invito ad utilizzare le prossime volte la formattazione avanzata quando inserisci codice molto lungo, con l'apposito tag [code] così come ho modificato io il messaggio. Questo per mantenere ordinati i post, e magari, usa un titolo più descrittivo 😉

    Venendo al tuo problema, come già detto, quella pagina è una pagina dinamica in php, quindi il codice che hai postato è solo una parte di quello che la compone e potrebbero esserci parti di codice da modificare incluse da altri file.

    Il_Rappo ti ha indicato pazientemente e chiaramente cosa correggere. Nel codice postato devi solo trovare le parti relative all'errore e applicare la correzione indicata, dai che è facile 🙂

    Ciao :ciauz: