Home › Forum › Problemi Vari con WP › Permalink: strano fenomeno
-
AutorePost
-
-
9 Marzo 2007 alle 19:24 #3369freesurfPartecipante
Ciao tutti..vi scrivo per segnalare uno strano comportamento cha mi sta succedendo da un paio di giorni su un sito realizzato con WP 2.0.9 . Il sito è http://www.vdsvibo.it
Praticamente accedendo al sito tutti i collegamenti mi danno PAGINA NON TROVATA, come se i link puntassero ad un contenuto inesistente.
Ho notato che se accedo al pannello di amministrazione e faccio AGGIORNA STRUTTURA DEI PERMALINK (senza cmq modificare nulla), ritornando in home il sito funziona correttamente!! TUTTAVIA, SE CHIUDO IL BROWSER (sia IE che FF) E ACCEDO NUOVAMENTE AL SITO IL PROBLEMA SI RIPROPONE
Non ho la + pallida idea di cosa possa essere a generare il problema..premetto che il file .htaccess non l’ho modificato)..io suppongo che sia un problema di permalink in quanto il problema si risolve momentaneamente facendo la procedura descritta!!
QUALCUNO DI VOI HA UN SUGGERIMENTO?
Grazie….
-
10 Marzo 2007 alle 12:23 #43839sberzoPartecipante
ciao,
non sono molto esperto, però ho avuto un problema simile al tuo tempo fa, e l’ho risolto scegliendo il template standard per i permalink dal pannello di amministrazione.
ciao
-
10 Marzo 2007 alle 17:02 #43843freesurfPartecipante
ciao sberzo, grazie del consiglio ma i permalink sono una cosa su cui vorrei puntare molto!!
Per cui vorrei cercare di risolverlo il problema…prima di aggirarlo!!
-
10 Marzo 2007 alle 18:27 #43844freesurfPartecipante
Ho risolto (almeno spero)!! Non era problema di permalink ma un conflitto tra 2 plugin che uso!!
-
11 Marzo 2007 alle 15:42 #43851SteveAglAmministratore del forum
ci potresti dire quali, di grazia?
-
12 Marzo 2007 alle 11:59 #43859freesurfPartecipante
ciao Mr….solitamente scrivo le soluzioni hai mie problemi!! Non l’ho fatto in questo caso in quanto pensavo che essendo dovuto ad un conflitto tra plugin (che non necessariamente tutti hanno installato) non interessasse. Cmq…ecco la soluzione
1° plugin –> userextra (che uso in accoppiata con usermeta) con lo scopo di consentire algi utenti di scrivere solo in determinate categorie
2° plugin –> NON SO IL NOME era un plugin che consente di troncare il post settando il numero dei caratteri da visualizzare. NON SO IL NOME in quanto, essendo composto da solo poche righe di codice, le ho implementate in un mio file di funzioni personalizzate…x cui nn so il nome originale del plugin. Cmq riporto il codice di seguito:
function limit_chars($max_char = 200, $more_text = '.....') {
$content = get_the_content($max_char, $more_text);
$content = apply_filters('the_content', $content);
$content = strip_tags(str_replace(']]>', ']]>', $content));
if (strlen($content) > $max_char) {
$output = substr($content, 0, $max_char) . $more_text;
} else {
$output = $content;
}
echo $output;
}
Soluzione –> ho commentato la quartultima riga del file userextra.php
//add_filter('the_posts', array(&$userextra, 'filter_posts'));
add_filter('content_save_pre', array(&$userextra,
'filter_content_save_pre'));
add_action('admin_head', array(&$userextra, 'action_admin_head'));
Ora funziona!!
Scusate ancora per non aver postato prima la soluzione!!
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.