RFc Networking e Informatica
Pubblicata su RFc Networking e Informatica (https://www.rfc.it)

Home > Pagina bianca in Drupal

Pagina bianca in Drupal

Inviato da fabrizio il Lun, 28/05/2018 - 10:42

Al login con utenza che ha permessi di amministrazione mi ritrovo una pagina bianca e, nel file di errori di apache, con una sbrodolata di messagi del tipo:

 [:error] [pid 29401] [client 192.168.1.17:55382] PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /srv/www/htdocs/...
 
PDOStatement->execute(Array)\n#1 /srv/www/htdocs/tk7/includes/database/database.inc(697): DatabaseStatementBase->execute(Array, Array)\n#2 /srv/www/htdocs/tk7/...DatabaseConnection->query('SELECT expire, ...', Array, Array)\n#3 /srv/www/htdocs/tk7/includes/lock.inc(167): db_query('SELECT expire, ...', Array)\n#4 /srv/www/htdocs/tk7/includes/lock.inc(146): lock_may_be_available('schema:runtime:...')\n#5 /srv/www/htdocs/tk7/includes/bootstrap.inc(438): lock_acquire('schema:runtime:...')\n#6 /srv/www/htdocs/tk7/includes/bootstrap.inc(460): DrupalCacheArray->set(Array)\n#7 [internal function]: DrupalCacheArray->__destruct()\n#8 {main}\n  thrown in /srv/www/htdocs/tk7/includes/database/database.inc on line 2227, referer: https://www.xxxit/node [1]

Nel mio caso non è un problema di drupal ma di mysql:

occorre aggiungere

[mysqld]
max_allowed_packet=128M

 nel file  my.cnf

La documentazione di mysql è qui:

https://dev.mysql.com/doc/refman/8.0/en/packet-too-large.html [2]

la dimensione massima non è critica perchè la memoria è allocata al bisogno, non all'avvio di mysql.

Ovviamente riavviare il deamon di mysql.

 

Forums: 
Drupal [3]
Categoria: 
drupal [4]
mysql [5]
Categoria: 
errori [6]
blak page [7]

RFc -Restori Fabrizio Consulenze-  S.da Buffolara, 67 -43126 Parma- Tel. +39 335 240228 Fax +39 0521 940035   P.IVA 01788460341

webmaster: Fabrizio
Note

var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-37939674-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
var _paq = _paq || []; _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function() { var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.rfc.it/piwik/"; _paq.push(["setTrackerUrl", u+"piwik.php"]); _paq.push(["setSiteId", "1"]); var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); })();

URL di origine:https://www.rfc.it/forum/drupal/pagina-bianca-drupal

Links
[1] https://www.xxxit/node [2] https://dev.mysql.com/doc/refman/8.0/en/packet-too-large.html [3] https://www.rfc.it/forums/informatica/drupal [4] https://www.rfc.it/category/categoria/drupal [5] https://www.rfc.it/category/categoria/mysql [6] https://www.rfc.it/category/categoria/errori [7] https://www.rfc.it/category/categoria/blak-page