Home › Forum › Problemi Vari con WP › Aggiornamento 3.0.1 errore pannello admin
-
AutorePost
-
-
2 Agosto 2010 alle 16:21 #14640BrindianoPartecipante
Ho appena installato la nuova versione 3.0.1 passando dalla 2.9.
Ho seguito tutte le solite indicazioni: salvataggio file, salvataggio database dall’ftp.
Ho caricato i nuovi file e aggiornato il database.
Il blog funziona normalmente, mentre il pannello admin mi da questo errore:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home/mhd-01/www.brindiano.it/htdocs/wp-admin/menu.php on line 75
Qualcuno sa cosa devo fare?
Grazie!
-
2 Agosto 2010 alle 16:50 #75772BluXisPartecipante
Devi aumentare la memoria nel file php.ini della tua installazione di Php.
In pratica non hai abbastanza memoria allocata.
-
2 Agosto 2010 alle 19:30 #75781BrindianoPartecipante
dove trovo il file php.ini? Avevo già fatto questa procedura in passato, ora però non ritrovo più il file :-s
-
3 Agosto 2010 alle 8:43 #75797BluXisPartecipante
Lo trovi nella cartella dove è installato PHP sul tuo server.
All’interno del file cerca la riga:
memory_limit = 8MB ; Maximum amount of memory a script may consume (8MB)
e sostituiscila con
memory_limit = 64M ; Maximum amount of memory a script may consume (64M)
Un metodo alternativo è impostarlo tramite il file .htaccess con il comando:
php_value memory_limit 64M;
Ovviamente il tutto dipende da che tipo di hosting e che permessi hai lato server.
-
3 Agosto 2010 alle 10:54 #75799zhenyaPartecipante
La memoria, che è il problema della tua installazione, fai prima ad aumentarla scrivendo la regola nel file wp-config.php di WordPress. Cerca qui nel forum, ne abbiamo parlato milioni di volte. Ovviamente tutto dipende dal tuo host, se limitano quel valore (come ad esempio negli hosting gratuiti o a 5 euro l’anno, non ci sono hacks che risolvono il problema; neppure intervenendo nel file .ini che ovviamente non sarà neanche gestibile. In quel caso l’unica è passare ad un piano superiore, valutando se conviene, o se meglio migrare il sito altrove.
Con WordPress evitiamo di dare consigli “baggianate”.
Metter mano al file php.ini non è alla portata di tutti. E poi perché suggerire la soluzione più complessa quando, comunque, anche modificando quel file si dovrà metter mano al wp-config?
-
3 Agosto 2010 alle 11:43 #75800BluXisPartecipante
Perdonami ma quale sarebbe la baggianata come dici tu?
Secondo me è meglio far capire alle persone da cosa è causato il problema piuttosto che dargli il semplice consiglio di modificare un file di WordPress (uno che non ne sa nulla può pensare che dipenda da WordPress e non da un setup del PHP).
Credo sia più importante imparare a capire le problematiche piuttosto che applicare delle soluzioni come dei robot senza cervello.
Se l’hosting non ti concede memoria o hai un dedicato o un virtuale e non sai come aumentarla, nel file wp-config puoi scriverci quello che vuoi, ma non servirà a nulla.
Prima di accusare qualcuno di scrivere “baggianate” la prossima volta rifletti e soprattutto prima di accusare un altro utente magari chiedi perchè viene dato un consiglio. Non ti sembra più corretto?
-
3 Agosto 2010 alle 11:57 #75801zhenyaPartecipante
La baggianata è quella di metter mano al php.ini. Giacché sicuramente i più non sanno neanche come si fa a scrivere regole in quel file.
E poi, anche mettendo mano al file php.ini e aver portato la memoria a 40 mega, dovremo comunque intervenire sul wp-config.php di WordPress, altrimenti questo continuerà a lavorare con il limite impostato di default. Poi molti share hosting neanche danno possibilità di “vedere” nella root il php.ini; fguriamoci quelli gratuiti. Immagino che la maggior parte degli utenti WordPress, di noi, utilizza server condivisi e non vps o dedicato.
Al file php.ini, sempre che sia accessibile, bisogna arrivarci come secondo passo, o ulteriore tentativo; quando la modifica al wp-config.php non da i risultati sperati.
-
3 Agosto 2010 alle 12:24 #75804BluXisPartecipante
Nell’ultima versione di WordPress (quella che usa Brindiano) se non sbaglio la configurazione della memoria è in wp-settings e non nel file wp-config.
Considerando che lui ha la 3.0.1 credo che sia quello il file che deve modificare.
-
3 Agosto 2010 alle 12:34 #75805zhenyaPartecipante
Ti sbagli.
E lo avrò ripetuto già 1000 volte che ci son tanti sapientini che dicono di far la modifica al wp-settings.php.
I “sapientini” però vanno per copia incolla delle amenità lette in giro in Rete riguardo WordPress.
Per prima cosa mai modificare file del core e poi, scrivendo la regola nel wp-settings.php questa sarà persa al prossimo aggiornamento giacché quel file verrà sovrascritto; ma, ancor peggio, quell’aggiornamento, proprio perché sovrascrive tra l’altro anche il file wp-settings, ripetera il messaggio “Fatal error: Allowed memory size of..”
E il povero malaugurato utente di WordPress sarà da capo al problema.
-
3 Agosto 2010 alle 12:57 #75806BluXisPartecipante
Scusa a che riga del file config.php della versione di WP 3 è la modifica che dici?
Sto testando in questi giorni WP 3 e nel file config.php c’e’ un
require_once(ABSPATH . ‘wp-settings.php’);
In wp-settings.php c’e’ alla riga 12 nell’installazione di default
if ( !defined(‘WP_MEMORY_LIMIT’) )
define(‘WP_MEMORY_LIMIT’, ’32M’);
C’è qualcosa che mi sfugge? Parlo dell’installazione di base con Twenty ten aprendo semplicemente i files di default.
-
3 Agosto 2010 alle 13:22 #75808SteveAglAmministratore del forum
Si ti sfugge che c’è un if… quindi se è deinita la costante in wp-config non viene impostata in wp-settings quindi impostandola in wp-conifig se ne fa l’override e NON vi è necessità di modificarla in un file di core…
-
3 Agosto 2010 alle 13:45 #75810BluXisPartecipante
Si siamo d’accordo, ma nella nuova versione di WP non mi sembra che ci sia nell’installazione di base la configurazione della memoria nel wp-config-sample o in quello creato, o mi sbaglio?
Quello che voglio dire è che un utente (che non si fa a mano il wp-config.php) che installa WP non si ritroverà la configurazione della memoria in wp-config. Confermate?
Nel vostro wp-config c’e’? Nel mio no. Chiedo guardando i file, cercando di capire. Grazie.
-
3 Agosto 2010 alle 13:51 #75811zhenyaPartecipante
Quel define non è nel wp-config-sample.php, file di base su cui si va a creare il wp-config.php; quindi è ovvio che va aggiunta a manina. Ma se avessi letto il link della bibbia che ti ha segnalato SteveAgl lo avresti visto.
E poi non solo il define della memoria non è di default nel config, ma molti altri.. tanto per fare un esempio; anche il define per far funzionare il plugin di cache NON lo trovi di default nel config-sample.
-
3 Agosto 2010 alle 16:03 #75815BluXisPartecipante
Certo che la bibbia potrebbero anche scriverla un po’ meglio come impaginazione.
Adesso vi faccio ridere, ho guardato il link del buon Steve e ho pensato: ma cosa mi ha linkato?
Dopo il commento di Zhenya sono andato a rivedere e mi sono accorto che dopo lo spazio bianco sotto il paragrafo “Configure Database Settings” la pagina continuava….andiamo bene…
Sarà il caldo o le ferie che si avvicinano?!?
-
3 Agosto 2010 alle 16:16 #75816SteveAglAmministratore del forum
La content table sulla DX no eh?
-
6 Agosto 2010 alle 15:36 #75918BrindianoPartecipante
Dunque, a quanto ho capito il php.ini non è da me raggiungibile…sono su Tophost e dubito che in base a quello che mi avete scritto io possa avvicinarmici.
Ho trovato la parte del wp-config dove mi chiede della memoria:
define(‘WP_MEMORY_LIMIT’, ‘512M’);
questo è quello che ho modificato…prima era a 256M
Il pannello admin ancora non va…cosa devo fare?
Cmq per precisare, non sono un esperto, ma neanche un principiante, quindi qualcosa ci capisco…ad ogni modo, le cose ancora non vanno
Grazie a tutti!
-
10 Agosto 2010 alle 19:58 #76089BrindianoPartecipante
Nessuno che sa darmi una mano?
-
10 Agosto 2010 alle 23:00 #76110zhenyaPartecipante
Ho trovato la parte del wp-config dove mi chiede della memoria:
Come hai trovato lo sai solo te giacché il define non è già scritto nel wp-config.php
define(‘WP_MEMORY_LIMIT’, ‘512M’);
questo è quello che ho modificato…prima era a 256M
Come poteva essere a 256? Pazzesco, potevi mettere G per giga
Cavoli ma cercando o rileggendoti questo 3ad, non vedi che si parla sempre di 32, 42, 48, 64 Mega? Prova con 42 o 48; non sapendo come sia il tuo host, se il valore lo metti troppo alto alla fine è come se non lo hai messo.
-
24 Agosto 2010 alle 7:59 #76491BrindianoPartecipante
32, 42, 48, 64…li ho provati tutti ma il risultato non cambia…il pannello admin continua a non andare
-
11 Gennaio 2011 alle 17:57 #80242WebbistoPartecipante
siete troppo i migliori E quante ne sapete …
-
11 Gennaio 2011 alle 18:06 #80243WebbistoPartecipante
ma scusate una cosa, nella versione di wp 3.4
questa voce non c’è
define(‘WP_MEMORY_LIMIT’, ‘128M’);
scusate l’ignoranza ma se la metto cosଠva bene?
/** Nome host MySQL */
define(‘DB_HOST’, ‘localhost’);
/** Charset del database da utilizzare nella creazione delle tabelle. */
define(‘DB_CHARSET’, ‘utf8’);
/** Il tipo di Collazione de Database. Da non modificare se si hanno dei dubbi. */
define(‘DB_COLLATE’, ”);
define(‘WP_MEMORY_LIMIT’, ‘128M’);
abbiate pazienza
-
11 Gennaio 2011 alle 19:30 #80244SteveAglAmministratore del forum
si va bene anche verso la fine del file config… ad esempio dopo la dichiarazione della lingua
-
12 Gennaio 2011 alle 14:23 #80253WebbistoPartecipante
si va bene anche verso la fine del file config… ad esempio dopo la dichiarazione della lingua
grazie! Senti posso lasciare a 128 o mi conviene portarlo a 64?
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.