Home › Forum › Problemi Vari con WP › Warning: Cannot modify header information
-
AutorePost
-
-
24 Ottobre 2016 alle 10:47 #31128stefaniawebPartecipante
Ciao a tutti mi trovo alle prese con un problema non indifferente che mi impedisce di accedere al pannello di amministrazione di wordpress sia tramite wp-admin che wp-login.php
Pensavo di cavarmela piuttosto bene come sviluppatore ma non riesco a capire il problema e seguendo le linee errore dichiarate ho praticamente cancellato tutto il file non risolvendo il problema…
Ecco il codice di errore:
Warning: Cannot modify header information – headers already sent by (output started at /home/mhd-01/www.vivosolidale.com/htdocs/wp-config.php:1) in /home/mhd-01/www.vivosolidale.com/htdocs/wp-includes/pluggable.php on line 1174
Grazie a tutti coloro che potranno essere utili
-
24 Ottobre 2016 alle 11:41 #120965
-
24 Ottobre 2016 alle 14:56 #120967stefaniawebPartecipante
Ho gia fatto tutte le prove compresa il debug ma il problema si pone sempre io allego qui il codice se mi permettete di farlo perchè forse il problema non è nel file wp-config.php sarebbe alla linea 1 e mi sembra impossibile
riga1= <?php
mentre nel pluggable.php la riga di errore è la 1174
header(“Location: $location”, true, $status);
di seguito potrei inserire un link per verificare il codice…grazie
-
24 Ottobre 2016 alle 17:04 #120968TittiModeratore
Di nuovo: a parte che il file /wp-includes/pluggable.php come detto è un file del core di WP (=non contiene errori a meno che tu non l’abbia modificato, quindi rimetti l’originale) e come tutti i file del core non va toccato – quel file è la vittima, non la causa.
Il messaggio dice che l’errore è nel wp-config.php e devi partire dalla riga 1, non c’è altro da dire, tocca solo a te.
Non hai letto bene la guida, rileggila e apri il file config con Notepad ++ oppure ripristina un config precedente senza errori prendendolo da un backup.
-
24 Ottobre 2016 alle 17:09 #120969elmaniseroPartecipante
1) Non hai letto il regolamento del forum qui sotto e quindi non hai dato le informazioni che richiediamo tipo cosa è successo prima di questo problema.
Avevo pubblicato il post senza rendermi conto che Titti ti aveva già risposto
Se quanto detto da Titti non risolve il tuo problema, ma dubito fortemente, passiamo a quello che dovresti fare ammesso che tu non abbia una copia di backup recente del database e dello spazio server da ripristinare.
1) fai un backup completo via ftp del tuo spazio server
2) scarica il pacchetto di wordpress della stessa versione che stai usando da qui
2) crea un nuovo file wp-config.php dal file wp-config-sample.php inserendo i dati che hai sul tuo attuale usando un editor di testo
3) via ftp sovrascrivi il file wp-config-php con quello che hai creato e tutti gli altri file e cartelle ad eccezione di wp-content
4) via ftp rinomina la cartella plugins dentro a wp-content in old-plugins
5) cancella tutti i temi che hai dentro la cartella themes ad eccezione di twentysixteen
6) svuota la cache del browser che usi e fai il login al sito
7) se il login riesce rimetti i temi che hai cancellato, prendendoli dal backup che hai fatto, nella loro originaria posizione ed attiva il tema che stavi usando
prova ad uscire e rientrare per vedere se è quello che da dei problemi
9) se non hai problemi rinomina via ftp la cartella old-plugins in plugins e riattivane uno alla volta da bacheca facendo la stessa prova di uscire e rientrare per capire se a procurarti questo problema sia stato un plugin
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.