Home › Forum › Problemi Vari con WP › Css e immagini scomparse
-
AutorePost
-
-
6 Settembre 2017 alle 15:54 #31545Chicca94Partecipante
Ciao a tutti,
Ho pubblicato il mio sito ma solo ora ho notato che se lo apro da un pc diverso dal mio il CSS del sito e alcune immagini sono “rotte”. Secondo voi il problema a cosa è legato? Un errore nel caricamento delle tabelle?
Lascio il link del sito e premetto che utilizzo il plugin Multiple Themes che mi permette di utilizzare un tema diverso per le pagine.
Grazie a tutti! http://www.gastesrl.com
-
7 Settembre 2017 alle 5:26 #121835SteveAglAmministratore del forum
Veramente non solo le immagini ma intere agine es la home, se guardi con gli inspector del browser noterai che molti file danno 404 quindi o sono mancanti o non leggibili… nons o come tu abbia caricato il sito ma manca molta roba
-
7 Settembre 2017 alle 5:45 #121836Chicca94Partecipante
L’ho caricato trasferendo tutte le tabelle presenti nel mio database e seguendo alla lettera le istruzioni per caricare un sito da locale a remoto
-
7 Settembre 2017 alle 8:04 #121837TittiModeratore
A parte che potevi dirlo subito che hai fatto un trasferimento da locale a remoto per via del fatto che in apertura bisogna fornire tutte le informazioni utili, non si sa quali istruzioni tu abbia seguito perché non le citi, ma di sicuro non le hai seguite correttamente o sono incomplete perché hai URL che ancora si riferiscono al sito in locale, e che sicuramente non possono funzionare in remoto.
-
7 Settembre 2017 alle 9:06 #121842Chicca94Partecipante
Perdonami se ho omesso questo dettaglio. Allora provo a caricare di nuovo tutto? Per essere certa di seguire un link corretto, ne hai uno sicuro al 100%. Internet ne è comunque pieno e non lo metto in dubbio ma devo aver sicuramente sbagliato da qualche parte
-
7 Settembre 2017 alle 15:02 #121843
-
7 Settembre 2017 alle 15:04 #121844
-
7 Settembre 2017 alle 15:15 #121845TittiModeratore
Non hai capito, non è un problema di trasferimento (o forse anche, ma questo non lo possiamo vedere noi), come detto ciò che si vede è un problema di URL errati, non modificati nel loro percorso da locale a remoto. La guida che citi, naturalmente, spiega la procedura per cambiare URL nel database.
-
7 Settembre 2017 alle 15:19 #121846Chicca94Partecipante
Okay quindi il problema e’ delle foto che ovviamente hanno ancora il link in remoto. Devo modificare il loro URL affinché risulti su remoto e in questo modo dovrebbe funzionare. Non mi spiego ancora perché anche il tema della pagina non risulti nella pagina
-
7 Settembre 2017 alle 15:35 #121847TittiModeratore
Quando si aggiorna, si fanno trasferimenti o altre operazioni di questo tipo, la “base di arrivo” (cioè in questo caso il tuo WP live) deve essere in situazione di default, vale a dire senza plugin o con plugin tutti disattivati, e con il tema di default. Solo quando il sito in questa situazione base funziona come dovrebbe, si installano o si attivano via via plugin o temi, UNO alla volta. Quindi disattiva tutto ciò che non c’entra con l’installazione base di WP.
Per quanto riguarda gli URL, ponendo il caso che hai fatto tutto il resto giusto, prima di fare eventualmente danni con modifiche manuali, usa questa query SQL nel database (naturalmente hai già fatto tutti i backup del caso, vero?), per vedere se risolto il problema degli URL ci sono eventualmente altri problemi:
UPDATE wp_posts SET post_content = REPLACE(post_content, 'localhost:8888/gastesrl/', 'www.gastesrl.com/');
-
7 Settembre 2017 alle 15:38 #121848Chicca94Partecipante
Certamente. Ho fatto tutti i backup completi dell’intero sito. Okay. Proverò le tecniche che mi hai consigliato in più disattivo i plugin e inserisco la stinga della pagina del database. Una volta che “vedo” le foto, riattivo il plugin e provo a inserire manualmente tutto. Grazie dell’aiuto!
-
7 Settembre 2017 alle 15:51 #121849TittiModeratore
Veramente gli URL delle foto sono gli unici giusti (immagino siano quelle immagini che hai caricato tu direttamente da WP), sono sbagliati gli indirizzi del tema, dei plugin, e quindi dei file (e dei fogli stile):
view-source:http://www.gastesrl.com/
-
7 Settembre 2017 alle 15:53 #121850Chicca94Partecipante
Gli URL delle foto “rotte” sono errati, mi pare di aver capito. Studierò meglio il tema e di conseguenza tutti gli URL legati alla pagina che anche tu hai citato. Spero di trovare il bug in fretta
-
7 Settembre 2017 alle 15:54 #121851TittiModeratore
? quale bug?
Devi fare la query SQL che ti ho dato!
E il link che ti ho dato, non l’hai aperto?
-
7 Settembre 2017 alle 15:56 #121852Chicca94Partecipante
UPDATE wp_posts SET post_content = REPLACE(post_content, ‘localhost:8888/gastesrl/’, ‘www.gastesrl.com/’);
Questa query, inserita nella pagina del database, sostituirà tutto ciò che contiene localhost:8888 con http://www.gaste
àˆ corretta la spiegazione che ho dato?
-
7 Settembre 2017 alle 16:01 #121853TittiModeratore
“Pagina del database” non so cosa sia. Devi aprire il tuo database con PHPmyAdmin, o dal pannello di controllo del tuo host se preferisci, e una volta aperto il tab SQL inserisci ed esegui quella query cosଠcome te l’ho data. Sostituirà tutti i localhost:8888/gastesrl/ di quella tabella con http://www.gastesrl.com/.
PS: se non basta lo faremo anche su altre tabelle
-
7 Settembre 2017 alle 16:02 #121854Chicca94Partecipante
Perdonami, la colpa è solo mia che non utilizzo i termini corretti e quindi fatico a farmi comprendere. Grazie per la comprensione e per non aver perso la pazienza
-
8 Settembre 2017 alle 15:57 #121859Chicca94Partecipante
Ciao,
Allora… Sono andata nel mio PHP, nella sezione SQL e ho agito quindi sul database legato al sito.
Ho inserito la query consigliata di sopra e ho ricevuto il messaggio:
0 righe modificate. (La query ha impiegato 0.0149 secondi.)
Da un lato mi sembra strano fondamentalmente perché vedo quell’immagine con localhost ma il database non la trova. Significa che non l’ha memorizzata al suo interno?
-
8 Settembre 2017 alle 17:32 #121861TittiModeratore
UPDATE wp_options SET option_value = replace(option_value, ‘localhost:8888/gastesrl/’, ‘www.gastesrl.com/’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;
UPDATE wp_posts SET guid = replace(guid, ‘localhost:8888/gastesrl/’,’www.gastesrl.com/’);
UPDATE wp_postmeta SET meta_value = replace(meta_value,’localhost:8888/gastesrl/’,’www.gastesrl.com/’);
—
Ho dato per scontato che il prefisso delle tue tabelle sia wp_, se non è cosà¬, cambia con quello giusto.
-
8 Settembre 2017 alle 17:43 #121862Chicca94Partecipante
Le metto direttamente dentro tutte e tre o è meglio fare un’istruzione per volta?
-
8 Settembre 2017 alle 17:45 #121863TittiModeratore
Tutte e tre insieme
-
8 Settembre 2017 alle 17:48 #121864Chicca94Partecipante
E anche qui siamo a:
0 righe modificate. (La query ha impiegato 0.0026 secondi.)
0 righe modificate. (La query ha impiegato 0.0047 secondi.)
0 righe modificate. (La query ha impiegato 0.0004 secondi.)
Sono allibita. Sto perfettamente capendo il tuo ragionamento ma questa cosa non ha senso.
Comunque se ci sono problemi per l’intasamento di un post e c’è un modo per essere contattata privatamente va benissimo anche questo approccio. Non voglio creare problemi al forum
-
11 Settembre 2017 alle 9:56 #121870TittiModeratore
A questo punto, posto che rimane comunque principalmente un problema di URL dell’installazione locale (copia e incolla nel tuo browser l’indirizzo che già ti avevo dato – view-source:http://www.gastesrl.com/ – e lo vedi da te), è inutile continuare a cercare di rappezzare un trasferimento non portato a buon fine.
Cancella tutto e rifai tutto da capo su un’installazione pulita, assicurandoti di avere gli opportuni backup e seguendo la semplice guida che ti ho dato, un’altra affidabile o la stessa che avevi seguito, stavolta però facendo tutti i passi e non fermandoti a metà come hai fatto prima.
Non c’è nessun problema di intasamento, questo è il tuo topic e può proseguire fin quando vorrai. Non facciamo assistenza privata.
-
11 Settembre 2017 alle 10:03 #121871Chicca94Partecipante
Assolutamente. Non intendevo richiedere assistenza privata. Era una cosa di convenienza del forum. Comunque non mi sono mai fermata a metà nei trasferimenti ma certamente riproverò a farla perché ovviamente c’è un problema che abbiamo tentato di risolvere ma niente. Grazie mille per l’aiuto!
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.