• Resolved arathra

    (@arathra)


    Running UM alongside Polylang I get this message:

    Notice: Use of undefined constant ICL_LANGUAGE_CODE – assumed ‘ICL_LANGUAGE_CODE’ in /home/xxxxxx/public_html/home/wp-content/plugins/ultimate-member/core/um-rewrite.php on line 54

    Line 54 reads:

    if( function_exists(‘icl_get_current_language’) ){
    $language_code = icl_get_current_language();
    }else if( function_exists(‘icl_object_id’) ){
    $language_code = ICL_LANGUAGE_CODE; //LINE 54
    }

    How can I get rid of this error?

    https://www.ads-software.com/plugins/ultimate-member/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ultimate Member

    (@ultimatemember)

    Hi Arathra,

    Is this error showing only whilst debug mode is on or showing when debug mode is turned off?

    Thanks

    Thread Starter arathra

    (@arathra)

    Taking my cue from another thread on another plugin with a similar error, I changed line 54 to read:

    // $language_code = ICL_LANGUAGE_CODE;
    $language_code = ”;

    It works, but could have repercussions down the line I guess.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    This has been fixed and will be on the next update.

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error Message’ is closed to new replies.