ciao a tutti su alcuni miei siti ho notato che la ram del server tende a riempirsi a dismisura col tempo fino ad arrivare a riempirla tutta nel giro di giorni/settimane a seconda dei server. Quando la ram arriva al Full diventa tutto poco stabile e tende a crashare continuamente fino a quando non riavvio apache.
Spulciando i vari log ho scoperto che apache poco prima di far crashare il server ho un errore nel log di apache di questo tipo:
PHP Fatal error: Unsupported operand types in /var/www/includes/common.inc on line 2946
e alla riga richiesta ho questo:
$elements += array('#title' => NULL, '#description' => NULL);
if (!isset($elements['#children'])) {
$children = element_children($elements);
// Render all the children that use a theme function.
if (isset($elements['#theme']) && empty($elements['#theme_used'])) {
$elements['#theme_used'] = TRUE;
$previous = array();
foreach (array('#value', '#type', '#prefix', '#suffix') as $key) {
$previous[$key] = isset($elements[$key]) ? $elements[$key] : NULL;
}
// If we rendered a single element, then we will skip the renderer.
if (empty($children)) {
$elements['#printed'] = TRUE;
}
else {
$elements['#value'] = '';
}
$elements['#type'] = 'markup';
essendo poco esperto di php, cosa fa questo script? potete darmi una mano a capire se è un bug di drupal o un problema di altro tipo?
buona serata