• Resolved judith

    (@retrievermedia)


    Hi there,
    Google, so it seams, has issues with a part of the code in your plug-in. I get the following message on the result page. Please advise.

    Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in …/www/wp-content/plugins/simple-ads-manager/sam.class.php on line 529

    Kind regards, Judith

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author minimus

    (@minimus)

    Change line 529 of sam.class.php file from
    $_SERVER['HTTP_ACCEPT_LANGUAGE'] == '' ||
    to
    (isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) && $_SERVER['HTTP_ACCEPT_LANGUAGE'] == '') ||

    Thread Starter judith

    (@retrievermedia)

    Thanks minimus, for the suggestion. The problem with you fix though: the fix will be overwritten with the next update of the plug-in. In the mean time for my particular situation, i have found another fix. Apparently by disabling the showing of errors in another (my own) plug-in I’ve managed to suppress the warning. I hope Simple Ads Manager fixed the problem in their next update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google Problem: Undefined index: HTTP_ACCEPT_LANGUAGE’ is closed to new replies.