Home › Forum › Problemi Vari con WP › errore Fatal error dopo ripristino file functions.php
-
AutorePost
-
-
12 Maggio 2015 alle 12:40 #29517veryPartecipante
Salve,
accedendo al sito wordpress ho questo errore:
“Fatal error: Cannot redeclare url_is_accessable_via_ssl() (previously declared in /web/htdocs/www.sito.it/home/wp-includes/functions.php:3013) in /web/htdocs/www.sito.it/home/wp-includes/deprecated.php on line 3493”
non funzionava più il plugin che mi permetteva di vedere i video youtube caricati su un determinato canale.
ho provato a fare l’aggiornamento del plugin ma non ho avuto risposte positive,
cosଠho fatto l’aggiornamento di wordpress e di tutti i plugin aggiornabili.
mi erano sparite quasi tutte le voci del menu principale cosà¬, documentandomi su internet, trovo una riga di codice da inserire nel file functions.php e lo modifico.
dopo svariati errori capisco che devo ripristinare il vecchio functions.php, lo faccio e mi tira fuori questo errore che non mi permette neanche di fare il login.
ho provato anche a copiare e incollare nuovamente nell’ftp il file deprecated.php ma niente..
aiuto!!!
-
12 Maggio 2015 alle 13:04 #117370SteveAglAmministratore del forum
rinomina la cartella plugin in pluing_old elimina o rinomina il tema in uso in maniera da usare un tema base di WP, cancella tutti i file eccetto il contenuto della directory wp-content ed il file wp-config (prima fai una copia di tutto) e reinstalla la versione di wordpress con un pacchetto preso dal repo ufficiale o qua su wpitaly.
NON SI MODIFICANO MAI I FILE DI WP ORIGINALI
-
12 Maggio 2015 alle 13:56 #117375veryPartecipante
ti ringrazio per la risposta,
ma in questo modo perdo tutta la grafica del sito?
secondo te nell’ftp se sostituisco tutti i file presenti nella cartella del sito con un backup precedente posso risolvere?
grazie
-
12 Maggio 2015 alle 14:00 #117376SteveAglAmministratore del forum
Boh prova… e no quando rimetterai il tema tornerai alla grafica ma solo cosଠpartendo d uno status funzionante e poi riattivando il tema e via via i plugin puoi capire se e dove c’è un probblema o un conflitto. Prima di cambiare qualche cosa se imparasete a fare un backup copleto dei dati e dei file sarebbe sempre troppo tardi eh
-
13 Maggio 2015 alle 8:26 #117385veryPartecipante
buongiorno,
ho ripristinato il sito come mi hai detto tu sopra.
il sito è tornato, ma alla situazione dopo l’aggiornamento ovviamente.
quindi nel menù principale del sito vedo solamente due voci e le altre sono sparite.
esiste un modo per recuperarle?
grazie
-
13 Maggio 2015 alle 8:49 #117386SteveAglAmministratore del forum
Posto che non si capisce che cosa tu abbia fatto. Se quando hai avuto problemi il DB è cambiato aggiornamendo manualmente ovvio che non ripristina il db precedente. Prima di aggiornare e anche se non si aggiorna occorre fare backup periodici meglio se automatici SEMPRE sia del DB che dei file. E no essendo le voci di menu (se è un menu WP) nel DB se non ci sono non le recuperi a meno di rpristinare un backup precedente a tutto questo.
-
13 Maggio 2015 alle 9:15 #117387veryPartecipante
va bene ho capito..
ho risolto.
nel pannello di wordpress il menu era presente. si era scombinato l’ordine di visualizzazione tra menu e sottomenu, reimpostando tutto e confermando si è risolto.
grazie lo stesso
ma ti consiglio di essere più cortese con gli utenti e di non fare supposizioni, se non ho detto di non aver fatto backup non vuol dire che non l’abbia fatto.
-
13 Maggio 2015 alle 9:45 #117389wollyAmministratore del forum
Chiudo, che è meglio.
-
13 Maggio 2015 alle 9:49 #117390SteveAglAmministratore del forum
Riapro aggiungo e chiudo.
Ho detto che NON avevi fatto il backup? No ho detto che è opportuno effettuare sempre un backup… se non ti stanno bene le mie risposte non fare domande semplice. Da parte mia eviterò in futuro di rispondere a tuoi quesiti cosଠnon urterò la tua suscettibilità . Altre repliche polemiche invece faranno si che chiuderò o cancellerò tali discussioni polemiche.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.