Home › Forum › Problemi Vari con WP › Errore autorizzazioni – Non entro più nel back-end del sito
-
AutorePost
-
-
9 Dicembre 2015 alle 8:39 #30391zunflazPartecipante
Buongiorno a tutti,
dopo aver trasmigrato il mio sito da wordpress.com al dominio che ho registrato, ho utilizzato il mio blog per diversi mesi senza aver alcun problema.
Ieri, dopo aver seguito una guida on line che consigliava di nominare i prefissi delle tabelle del sito in maniera diversa dallo standard wp_ ho fatto questa operazione:
Sono andato nell’area riservata Mysql del mio servizio di hosting e ho utilizzato la query RENAME per rinominare tutte le tabelle con prefisso wp_ con il nuovo prefisso che chiamerò (nuovoprefisso_).
A quel punto ho modificato anche il file wp-config.php con il nuovo nome di tabella.
Ebbene quello che è successo è che il sito è fruibile e non ha errori, riesco a vederlo e visualizzarlo correttamente.
Nel backend invece, cioè se inserisco il mio username e la mia password su wp-admin il sistema non mi fa accedere, dandomi questo errore:
– Devi farti autorizzare per accedere a questa pagina.
Non posso far nulla a questo punto… vi chiedo, che cosa devo andare a controllare? Cosa può essere che blocca l’accesso al mio backend?
-
9 Dicembre 2015 alle 10:22 #119377TittiModeratore
Alcuni record della tabella usermeta usano il prefisso nei valori meta_key per i livelli utenti. Anche nella tabella options trovi molti campi che usano il prefisso.
Prima di fare cambiamenti cosଠimportanti bisognerebbe essere più sicuri di ciò che si fa, e seguire la procedura corretta non la prima guida che capita.
Segui questo tutorial per cambiarli manualmente in quelle due tabelle
Oppure prova queste query: (non garantisco)
UPDATE nuovoprefisso_usermeta SET meta_key = REPLACE(meta_key,’vecchio_’,’nuovo_’);
UPDATE nuovoprefisso_options SET option_name = REPLACE(option_name,’vecchio_’,’nuovo_’);
Prima di tutto ciò, devi fare backup di sicurezza del database.
-
9 Dicembre 2015 alle 10:46 #119378zunflazPartecipante
Ciao Titti e grazie per la risposta.
Fai conto che prima di fare queste modifiche avevo fatto il back up del sito. Quindi per quello che riguarda casini particolari posso recuperare.
La guida che hai postato è molto semplice e intuitiva. Non avevo seguito quella in particolare ma una simile e il procedimento che avevo fatto era stato proprio quello, ossia:
– rinominare il file wp-config.php
– rinominare tramite query sql tutti i prefissi delle tabelle wp_
Ho riguardato i passaggi seguendo la tua guida, eppure, nonostante le tabelle siano tutte inizializzate correttamente (ne ho controllata una per una) il back end continua a non funzionare.
Il sito pero’ è online e funziona…
Potrebbe essere un problema di permessi?
In teoria posso creare da DB un utente amministratore nuovo con username e password nuove?
-
9 Dicembre 2015 alle 12:15 #119379TittiModeratore
Siamo al punto di partenza. Ti ho risposto in base al problema che riscontri, e non ti ho fornito quel link affinché tu guardassi come cambiare i prefissi alle tabelle, ma per leggere la parte finale, che si riferisce a quello che ti ho risposto.
Non dicendo tu una parola a proposito di quello (hai preferito ribadire le stesse cose già dette in apertura, che avevo già capito) – io non posso sapere se tu hai fatto anche quelle modifiche di cui sopra, se le hai fatte correttamente, o eventualmente provato quelle query – quindi la mia risposta è la stessa di prima.
-
9 Dicembre 2015 alle 13:09 #119380zunflazPartecipante
No, certo è chiaro.
E’ sempre difficile spiegarsi in un form, a volte si scrive omettendo passaggi.
Sei stato gentilissimo e il tutorial che hai inserito è assolutamente utile, tuttavia è proprio il concetto che non capisco. Cioè, fondamentalmente è solo un problema di back end e dando solo il messaggio – Devi farti autorizzare per accedere a questa pagina non capisco dove si intoppa
-
9 Dicembre 2015 alle 13:33 #119381
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.