Good afternoon. We are experiencing an error in the apache server. The error/warning is this
———
AH01071: Got error ‘PHP message: PHP Warning: json_encode(): Invalid UTF-8 sequence in argument in /var/www/vhosts/creaciondempresas.es/httpdocs/wp-content/plugins/geodirectory/geodirectory_hooks_actions.php on line 1332\nPHP message: PHP Warning: json_encode(): Invalid UTF-8 sequence in argument in /var/www/vhosts/creaciondempresas.es/httpdocs/wp-content/plugins/geodirectory/geodirectory_hooks_actions.php on line 1332
——–
The same message is repeated several more times and it is reproduce again in each load that have geodirectory elements (widgets)
The 1332 line is this I mark in bold
———————————
/**
* Filters the translated JS strings from function geodir_localize_all_js_msg().
*
* With this filter you can add, remove or change translated JS strings.
* You should add your own translations to this if you are building an addon rather than adding another script block.
*
* @since 1.0.0
*/
$arr_alert_msg = apply_filters(‘geodir_all_js_msg’, $arr_alert_msg);
foreach ($arr_alert_msg as $key => $value) {
if (!is_scalar($value))
continue;
$arr_alert_msg[$key] = html_entity_decode((string)$value, ENT_QUOTES, ‘UTF-8’);
}
$script = “var geodir_all_js_msg = ” . json_encode($arr_alert_msg) . ‘;’;
echo ‘<script>’;
echo $script;
echo ‘</script>’;
}
add_action(‘admin_bar_menu’, ‘geodir_admin_bar_site_menu’, 31);
—————————-
Do you know what can be the problem and how to fix it?
Is it posible that this error/warning get the entire web down?
Thanks in advance