Home › Forum › Problemi Vari con WP › wpmu e problema con gestione dei tag
-
AutorePost
-
-
15 Agosto 2010 alle 19:34 #14750wordpress-specPartecipante
Ho un problema con cui mi sto sbattendo da alcuni giorni e non ne vengo a capo, premetto che utilizzo la WPMU v.2.9.2, escludo l’upgrade per adesso almeno fino a quando non avrò una versione dev su cui farlo, ho provato e appena ho visto problemi e rimesso utto come prima perchè ho già un migliaio di blogger attivi e non credo di poter risolvere eventuali malfunzionameni in brevissimo tempo.
vengo al problema dei tag:
In pratica succede che quando riutilizzo un tag già esistente e quindi assegnato a un prcedente post questo viene ricreato da zero, quindi non viene inserito semplicemente una nuova relazione nella tabella relationship terms ma viene ricreato un nuovo tag con lo slug “tag-esistente-X”
quindi avrò due tag “mio tag name” e “mio tag name” con NAME uguale ma con slug differente.
sto cercando di estrapolare nel file taxonomy.php ma niente, ho provato anche a rimpiazzare alcune funzioni con la versione 3.1 ma sempre lo stesso problema
-
15 Agosto 2010 alle 19:37 #76294wordpress-specPartecipante
ad esempio nel file taxonomy.php ho questa parte:
if ( $result = $wpdb->get_var( $wpdb->prepare(“SELECT term_id FROM $wpdb->terms as t WHERE $where”, $where_fields) ) )
che quando viene stampata diventa: SELECT term_id FROM wp_1_terms as t WHERE t.slug = ‘Array’
non capisco perchè prima di questo controllo c’è $where_fields = array($slug); infatti lo slug del term c’è ma sta dentro un array all’indice ‘0’ e quindi la query sarebbe sbagliata
-
16 Agosto 2010 alle 14:02 #76310wordpress-specPartecipante
perseverare e i risultati arrivano!!!
scherzi a parte sono riuscito a venirne a capo, pare che il file db.php della versione mod che utilizzo di wpmu aveva un problema nella funzione “prepare()” di wpdb, adesso funziona
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.