Warning apache in geodirectory_hooks_actions.php

This topic contains 3 replies, has 3 voices, and was last updated by  Kiran 6 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #411331

    Javier Donoso
    Expired Member
    Post count: 33

    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

    #411350

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Thank you for contacting us about this issue. Please provide some additional details.

    You can use a private reply to share the following with our support team:

    Hosting Provider
    Cpanel URL and Admin credentials
    Wp URL and WP Admin credentials
    FTP host:port and credentials for user with access to the site folder

    #411356

    Javier Donoso
    Expired Member
    Post count: 33

    Uf!! Don´t you have any idea before I give you access data? I would like to know if it is a critical error or something not urgent that we can see later. We are very busy now and if you tell me It doesn´t seem very important I contact you in next days. Is this warning error able to get down a web if gives the server this error in each visit?

    #411390

    Kiran
    Moderator
    Post count: 7069

    Hi Javier,

    Don´t you have any idea before I give you access data?

    This is a site specific error because no customer have reported such problem till date. So we have to look into your site to find exact cause of the problem. Without checking not sure about the reason for the error.

    I would like to know if it is a critical error or something not urgent that we can see later. We are very busy now and if you tell me It doesn´t seem very important I contact you in next days. Is this warning error able to get down a web if gives the server this error in each visit?

    If there are PHP errors/notices/warnings on the site then it should be resolved ASAP otherwise may affect original functionality of the plugin.

    If you provide admin & FTP credentials then we will check it.

    Thanks,
    Kiran

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket