Error en drupal

 

Fatal error: Unsupported operand types in /includes/common.inc on line 1592

 

Para debugear un poco más el error en el common.inc incluimos justo debajo del <?php el siguiente codigo.

 

if (!is_array($options)) {
debug_print_backtrace();
exit();
}

 

En mi caso ahora aparece el siguiente mensaje de error

 

#0 require_once() called at [/var/www/dominio/includes/bootstrap.inc:1202] #1 _drupal_bootstrap(8) called at [/var/www/dominio/includes/bootstrap.inc:1110] #2 drupal_bootstrap(8) called at [/var/www/dominio/index.php:16]

 

 

Solucion:

 

Cambiar en la linea 1500 mas o menos dentro de la funcion l

 

cambiamos

global $language;

// Merge in defaults.
$options += array(
‘attributes’ => array(),
‘html’ => FALSE,
);

 

por

 

global $language;

// Check for invalid options, e.g. null
if (!is_array($options)) $options = array();

// Merge in defaults.
$options += array(
‘attributes’ => array(),
‘html’ => FALSE,
);

 

Ya deberia funcionar.


Mas informacion

Por admin

Deja una respuesta

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock