Home › Forum › Problemi Vari con WP › PROBLEMA GRAVE CON AGGIORNAMENTO WORDPRESS
-
AutorePost
-
-
18 Settembre 2008 alle 20:47 #7936OkamisPartecipante
Ciao a tutti.
Questa sera ho provato ad aggiornare Word Press alla versione 2.6.2, ma una volta sostituiti tutti i file con le relative nuove versioni mi esce il seguente errore quando cerco di entrare nell’amministrazione:
Fatal error: Cannot redeclare get_attached_file() in /users/i/n/f/infinitisentieri/public_html/wp-admin/includes/post.php on line 34
Qualcuno sa di cosa si tratta e come risolverlo? Sono disperato…
Grazie anticipatamente.
-
18 Settembre 2008 alle 20:53 #57909wollyAmministratore del forum
i plugin li hai disattivati? hai messo il tema standard?
-
18 Settembre 2008 alle 21:59 #57912OkamisPartecipante
Scusa, ma come faccio a disattivare i plugin se non posso entrare nell’amministrazione (stesso discorso per il tema standard)? Tra l’altro, non so perché, Vista non mi ha salvato il backup che avevo appena fatto e inserito sul momentaneamene desktop (è sparito da un momento all’altro senza una ragione O_o) e di questo me ne sono accorto solo a danno avvenuto.
Al limite, se scarico WP 2.6.1, recupero le vecchie versioni dei file e le ricarico sul sito dovrebbe funzionare come “backup casereccio”?
-
18 Settembre 2008 alle 22:06 #57914wollyAmministratore del forum
quando hai fatto l’aggiornamento avevi messo il tema standard e avevi disattivato i plugin? la domanda spero sia più chiara.
-
18 Settembre 2008 alle 22:30 #57915OkamisPartecipante
Ehm, no… non sapevo nemmeno che andasse fatto visto che la cosa non era accennata nelle istruzioni. Quindi ora come faccio a risolvere il problema? T_T
-
18 Settembre 2008 alle 22:46 #57916wollyAmministratore del forum
veramente la nostra guida è molto chiara e dice proprio di fare quello se poi usi guide farlocche trovate in giro per la rete è un altro discorso..
Cmq entri nel database DOPO AVERNE FATTO UNA COPIA, selezioni la tabella wp-options e il campo active_plugins e lo svuoti e guarda se riesci ad accedere.
-
19 Settembre 2008 alle 8:16 #57923OkamisPartecipante
Non intendevo la guida, ma la sezione in cui si può scaricare l’aggiornamento. Sulla qualità delle vostre guide non ho nulla da ridire, anzi le ho sempre trovate precisissime
Comunque c’è un problemino… Nel Database non trovo nessun file chiamato wp-options. Ho provato anche a rintracciarlo attraverso la funzione di ricerca sulla copia di backup, ma niente. T_T
-
19 Settembre 2008 alle 8:29 #57924wollyAmministratore del forum
se non sei in grado di agire sul database, cancella accedendo con ftp tutto ciò che è contenuto in /wp-content/plugins facendone ovviamente una copia prima.
-
19 Settembre 2008 alle 8:50 #57927OkamisPartecipante
Fatto, ma non è cambiato nulla… Compare sempre l’errore:
Fatal error: Cannot redeclare get_attached_file() in /users/i/n/f/infinitisentieri/public_html/wp-admin/includes/post.php on line 34
Ho provato a vedere cosa fosse il file “post.php” e dalla riga 34 in poi c’è la seguente dicitura:
function get_attached_file( $attachment_id, $unfiltered = false ) {
$file = get_post_meta( $attachment_id, ‘_wp_attached_file’, true );
if ( $unfiltered )
return $file;
return apply_filters( ‘get_attached_file’, $file, $attachment_id );
}
Non so se può essere d’aiuto a capire la ragione del problema…
-
19 Settembre 2008 alle 9:18 #57928wollyAmministratore del forum
prova a cancellare tutti i files eccetto htaccess, wp-config.php e la directory wp-content, magari cancella anche la dir wp-content/themes dopo averne fatto un backup.
Dopo aver cancellato i files ricarica nuovamente il pacchetto di wordpress e mi raccomando CANCELLA i files NON sovrascrivere.
-
19 Settembre 2008 alle 15:56 #57939OkamisPartecipante
Azz… non sapevo che i file andassero cancellati, invece che sovrascritti. Sta a vedere che è questa la causa di tutti i miei mali… Comunque ancora niente T_T.
Una domanda a questo punto: se recupero la versione 2.6.1, prendo le versioni per cosଠdire originali dei file da aggiornare e li vado a sostituire alle versioni nuove (dopo averle cancellate) c’è la possibilità remota di riuscire a ritornare allo stato originario?
-
19 Settembre 2008 alle 16:01 #57940OkamisPartecipante
Tra l’altro, dove la recupero la vecchia versione? Sto cercando su internet, ma trovo solo la 2.6.2 o i relativi aggiornamenti.
-
19 Settembre 2008 alle 16:08 #57941SteveAglAmministratore del forum
Leggendo bene la pagine di download di worpress su questo sito…basta leggere!
-
19 Settembre 2008 alle 19:00 #57953OkamisPartecipante
Dunque, ho scaricato la 2.6.1, ho selezionato i file mutati nella 2.6.2, e sono andati a sostituirli, sperando cosଠdi poter tornare alla situazione originaria. Purtroppo continua a saltarmi fuori sempre lo stesso identico errore. Tra l’altro, durante tale operazione mi sono accorto che alcuni file (come ad esempio “post.php”) sono presenti in più cartelle. Li ho quindi sostituiti tutti (senza sovrascriverli, ma prima cancellandoli e poi ricaricandoli) con le vecchie versioni della 2.6.1. Sinceramente non so più come andare avanti T_T
A questo punto pensavo ad un trattamento drastico, ovvero ricaricare da zero WordPress. Ma come fare? Suppongo debba cancellare le vecchie cartelle di WP e poi ricaricare i file tramite FTP. I miei dubbi sono questi:
1) Devo cancellare proprio tutto dal database oppure alcuni file non fanno riferimento a WP e quindi vanno lasciati lଠdove sono (mi riferisco ovviamente ai file presenti nella “macrocartella” che contiene tutti i file caricati sul proprio spazio web, e non a quelli nelle sottocartelle).
2) Come faccio a salvare i miei post e i relativi commenti? Devo al limite aprire un blog temporaneo (per esempio tramite blogger), importare il tutto, ricaricare WP sul mio spazio web e poi reimportare un’altra volta?
Comunque se avete idee alternative, sono tutte ben accette Scusate ancora le domande a volte da niubbo (quale sono). Sto cercando d’imparare, ma la mole di nozioni è veramente alta e le incertezze credo siano ammesse…
-
19 Settembre 2008 alle 21:03 #57957degraPartecipante
Hai qualche confusione tra file e database: il database contiene post, commenti e impostazioni di WP, e non è conservato nella cartella del tuo spazio web/ftp, ma vi si accede solo tramite PHPMyAdmin dal pannello di amministrazione del tuo server (tuosito/cpanel per TopHost, per gli altri non so). I file, invece, servono solo a dire a WP cosa fare dei dati che sono nel DB. (si può paragonare alla differenza tra programmi e documenti del PC, per semplificare)
Cosa devi fare? Fare backup di tutto: salvare tutto ciò che c’è nello spazio web via FTP, accedere al databasse da PHPMyAdmin e fare backup anche di quello (da qualche parte nel wiki c’è la guida al backup del database).
Cancelli tutti i file di WP tranne wp-config.php, e carichi i file dello zip che hai scaricato (WP 2.6.2), quindi aggiorni il DB attraverso WP (tuosito/wp-admin/upgrade.php) e accedi.
Se tutto funziona, puoi cominciare a caricare i tuoi temi personalizzati e i plugin, attivandoli uno per uno, provando sempre che tutto funzioni.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.