Home › Forum › Plugin e temi di WP › errore validazione meta name="framework" content="Alkivia Framework 0.8"
-
AutorePost
-
-
4 Marzo 2012 alle 15:20 #20948sitixaziendePartecipante
Ciao a tutti, è da un po che cerco in rete ma non riesco a trovare nulla a riguardo.
In pratica non riesco a superare il W3C a causa di questo “meta name”.
Nessuno sa aiutarmi?
Validation Output: 1 Error
Line 18, Column 57: Bad value framework for attribute name on element meta: Keyword framework is not registered.
<meta name="framework" content="Alkivia Framework 0.8" />
Syntax of metadata name:
Di alkivia ho installato solamente il plugin che gestisce i permessi degli utenti.
Ringrazio anticipatamente -
4 Marzo 2012 alle 16:37 #94095San PietroburgoPartecipante
Un link alla home del sito col problema, ed un link alla pagina da dove è stato prelevato quel plugin, aiuterebbero chi vorrebbe aiutarti.
-
4 Marzo 2012 alle 19:52 #94100sitixaziendePartecipante
scusatemi ^^ http://www.pianoaccordatore.it è la home del sito, con il template base di wordpress. Il plugin è Capability Manager (capsman) http://alkivia.org/wordpress/capsman
-
4 Marzo 2012 alle 20:31 #94102San PietroburgoPartecipante
E’ un plugin anzianotto ed immagino ci siano alternative. Se sai come mettere mano ai file del core di un plugin (utilizzando la connessione FTP o dalla dashboard di WordPress), procedi cosà¬:::
innanzi tutto un backup della directory del plugin in locale. Poi copi altrove il file theme.php che dovrebbe essere in questo percorso /framework/classes/abstract/theme.php
Lo sto guardando da qui e non so esattamente la riga.. Lo apri col notepad (o con un programma apposito per file di questo tipo) e, semmai aiutandoti con il cerca (crtl+F), vai al punto ove è scritto:::
// Set metatags
add_action(‘wp_head’, array($this, ‘metaTags’) );
// Set the theme favicon
Davanti a quel pezzo di codice add_action( metti due segni // e salvi. Lo riposizioni nel server e, incroci le dita sperando risolva. Se non va lo prelevi dal backup e lo sovrascrivi.
-
4 Marzo 2012 alle 21:14 #94107sitixaziendePartecipante
Si si son in grado di fare modifiche al codice, il punto è che non riuscivo proprio a trovare dove. Vado a reperire il file e commento subito il tutto. Non conosco moltissimo WP, prima usavo joomla e devo ancora imparare la struttura sia di WP che dei plugin vari.
Grazie mille per l’interessamento e la celerità .
______________________________________________
edit: niente non risolve il problema. Ho provato anche a commentare sotto questo pezzo di codice, ma non cambia nulla :
/** final function metaTags()
{
echo ‘<meta name=”theme” content=”‘
. $this->getModData(‘Name’) . ‘ ‘ . $this->getModData(‘Version’) . ‘” />’ . PHP_EOL;
if ( $this->isChildTheme() ) {
echo ‘<meta name=”child_theme” content=”‘
. $this->getChildData(‘Name’) . ‘ ‘ . $this->getChildData(‘Version’) . ‘” />’ . PHP_EOL;
}
}
*/
-
4 Marzo 2012 alle 21:42 #94108sitixaziendePartecipante
ecco risolto il problema era in un altro file che si trova in capsman/framework/init.php
bisogna commentare questo pezzo
/**
* Adds meta name for Alkivia Framework to head.
*
* @hook action ‘wp_head’
* @access private
* @return void
function _ak_framework_meta_tags() {
echo ‘<meta name=”framework” content=”Alkivia Framework ‘ . get_option(‘ak_framework_version’) . ‘” />’ . PHP_EOL;
}
add_action(‘wp_head’, ‘_ak_framework_meta_tags’); */
ecco fatto, con un po di aiuto finalmente son riuscito a validare il codice. Spero che questo possa esser d’aiuto ad altri, visto che quel plugin è semplice e funzionale, sostituirlo mi sarebbe proprio dispiaciuto.
Grazie ancora a chi mi ha aiutato
-
4 Marzo 2012 alle 22:31 #94109San PietroburgoPartecipante
Quello mi era sfuggito poiché i file li guardavo online nel svn. Ad avere il plugin in locale sarebbe stato più semplice.. Con un cerca nella cartella dei file del plugin per scovare quali avessero la chiamata a wp_head, e ragionandoci su per quale commentare. Comunque ci sei arrivato da te. Bene.
-
5 Marzo 2012 alle 12:47 #94124TittiModeratore
Hai un altro errore, proprio dove hai messo il link alla “validazione”. Fai prima a toglierlo quel link, anche perché non esiste una reale validazione HTML 5, dato che il validatore è ancora sperimentale, e le specifiche HTML 5 sono ancora in attesa di approvazione (idem CSS 3.0), e poi quel link porta ad una pagina 404.
-
5 Marzo 2012 alle 16:34 #94140sitixaziendePartecipante
si me ne son accorto alla fine è il colmo che il link fornito dalla validazione non superi il test.
-
5 Marzo 2012 alle 17:04 #94141TittiModeratore
Mostrare il link o il logo di validazione è un’arma a doppio taglio, perché ad ogni piccola modifica, inserimento di plugin, ecc… la validazione potrebbe saltare. Quindi o ci si sta dietro con accanimento affinché si possa sempre mostrare con orgoglio la conquistata validazione (ne vale la pena?), oppure non si mettono, per evitare “figuracce” perlopiù involontarie. Tipo adesso hai anche il logo del CSS, ma se ci clicchi mostra 5 errori. Lo scopo di ottenere la validazione è un altro, non tanto quella di poterla mostrare, se non si è sempre sicuri che rimanga… e in un sito di tipo dinamico e in continua “evoluzione” può essere anche difficile, e per HTML 5 soprattutto almeno per un altro paio d’anni.
-
5 Marzo 2012 alle 18:19 #94151TittiModeratore
Dimenticavo:
è il colmo che il link fornito dalla validazione non superi il test
L’errore è tuo non loro. Io vedo che hai scritto cosà¬: a… href=”<………”> invece di a… href=<“………”>
-
7 Marzo 2012 alle 0:46 #94196sitixaziendePartecipante
Cmq i tag li tengo la per adesso, mi servono a me per controllare il tutto sino a che il blog non è completamente a posto. Una volta messo a puntino, li tolgo. Tanto a quanto ho capito, validarlo CSS2 e mantenerlo è una sgroppata inutile.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.