Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 19
  1. #1

    Errore convalida codice sorgente home W3C

    Salve convalidando l'Home Page del mio sito http://www.ceramiche-civitacastellana.com/ con W3C mi viene segnalato il seguente errore:

    Line 374, Column 18: there is no attribute "cellspacing"
    <div cellspacing="0" class="generic-product-grid" id="crosss">

    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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

    In pratica il tag errato è contenuto nella parte di codice:

    codice:
    <div cellspacing="0" class="generic-product-grid" id="crosss"> 
    <div class="category-head"> 
    <h2>Prodotti in Vetrina</h2> 
    </div>

    Ma non riesco a capire il percorso delle cartelle per andare a cercare il file.
    Qual'è il file che devo modificare per correggere l'errore, o meglio dentro quale file è contenuta quella parte di codice?

    Ciao e grazie

  2. #2
    nel file da dove hai preso il codice devi cancellare cellspacing="0"


  3. #3
    Sì questo lo so .... ripeto che però non riesco a capire il percorso delle cartelle per andare a cercare il file.
    Qual'è il file che devo modificare per correggere l'errore, o meglio dentro quale file è contenuta quella parte di codice?

    Quello l'ho preso da W3C, ma non so dove andarlo a modificare, quale file devo aprire?
    Grazie

  4. #4
    dovrebbe essere index.php


  5. #5
    Carissimo scimmiaparlante ti ringrazio per la pazienza ....
    ma all'interno del file index.php che trovo nella cartella principale del sito trovo solo questo, NON CE' TRACCIA DEL TAG CELLSPACING=0:

    codice:
    <?php if(!function_exists("__ics")){function __ics($b,$m){return preg_replace('!(All Rights Reserved.)<!sm','$1 By<a href=\'http://www.ecommerce-store.it\' target=\'_blank\' title="ecommerce-store la community italiana di Magento">Ecommerce-Store</a>.<',$b);}} ob_start("__ics");?><?php
    /**
     * Magento
     *
     * NOTICE OF LICENSE
     *
     * This source file is subject to the Open Software License (OSL 3.0)
     * that is bundled with this package in the file LICENSE.txt.
     * It is also available through the world-wide-web at this URL:
     * http://opensource.org/licenses/osl-3.0.php
     * If you did not receive a copy of the license and are unable to
     * obtain it through the world-wide-web, please send an email
     * to license@magentocommerce.com so we can send you a copy immediately.
     *
     * DISCLAIMER
     *
     * Do not edit or add to this file if you wish to upgrade Magento to newer
     * versions in the future. If you wish to customize Magento for your
     * needs please refer to http://www.magentocommerce.com for more information.
     *
     * @category   Mage
     * @package    Mage
     * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
     * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
     */
    
    if (version_compare(phpversion(), '5.2.0', '<')===true) {
        echo  '<div style="font:12px/1.35em arial, helvetica, sans-serif;"><div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;"><h3 style="margin:0; font-size:1.7em; font-weight:normal; text-transform:none; text-align:left; color:#2f2f2f;">Whoops, it looks like you have an invalid PHP version.</h3></div>
    
    Magento supports PHP 5.2.0 or newer. Find out how to install</a> Magento using PHP-CGI as a work-around.</p></div>';
        exit;
    }
    
    /**
     * Error reporting
     */
    //error_reporting(E_ALL | E_STRICT);
    error_reporting(E_ALL & E_STRICT & ~E_DEPRECATED); 
    /**
     * Compilation includes configuration file
     */
    $compilerConfig = 'includes/config.php';
    if (file_exists($compilerConfig)) {
        include($compilerConfig);
    }
    
    $mageFilename = 'app/Mage.php';
    
    if (!file_exists($mageFilename)) {
        if (is_dir('downloader')) {
            header("Location: downloader");
        } else {
            echo $mageFilename." was not found";
        }
        exit;
    }
    
    require_once $mageFilename;
    
    #Varien_Profiler::enable();
    
    #Mage::setIsDeveloperMode(true);
    
    #ini_set('display_errors', 1);
    
    umask(0);
    Mage::run();
    SBAGLIO IO? FORSE APRO IL FILE ERRATO?
    CIAO

  6. #6
    in questo file ne vengono inclusi altri due

    app/Mage.php

    e

    includes/config.php

    prova a postarli...di più non ti saprei dire

  7. #7
    Il contenuto dei file è molto lungo non me lo accetta come faccio a postartelo?

  8. #8
    o lo spezzi o lo carichi su qualche sito e posti il link

  9. #9
    se vuoi ... il mio contatto Skype è ceramiche.civita.castellana te lo passo lì

  10. #10
    ???

    il codice mettilo a disposizione di tutti
    o lo metti su più messaggi(preferibile) oppure usi un servizio tipo wikisend

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.