SIB-Colombia / rnc_app

National Colection Register
1 stars 3 forks source link

Error en página de inicio RNC #110

Closed AngelaCelis closed 7 years ago

AngelaCelis commented 7 years ago

http://rnc.humboldt.org.co/wp/

crashrncwp

jag2kn commented 7 years ago
Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/wp/wp-includes/kses.php on line 1416
function wp_kses_named_entities($matches) {
    global $allowedentitynames;

    if ( empty($matches[1]) )
        return '';

    $i = $matches[1];
    return ( ! in_array( $i, $allowedentitynames ) ) ? "&$i;" : "&$i;";
}

The problem is the var global $allowedentitynames;, this is not defined

I add in the final of wp-config.php a validation for this:

global $allowedentitynames;
if (is_null($allowedentitynames)) $allowedentitynames = array();