Title: Google Problem: Undefined index: HTTP_ACCEPT_LANGUAGE
Last modified: August 22, 2016

---

# Google Problem: Undefined index: HTTP_ACCEPT_LANGUAGE

 *  Resolved [judith](https://wordpress.org/support/users/retrievermedia/)
 * (@retrievermedia)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/google-problemundefined-index-http_accept_language/)
 * 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](https://wordpress.org/support/users/minimus/)
 * (@minimus)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/google-problemundefined-index-http_accept_language/#post-5861850)
 * 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](https://wordpress.org/support/users/retrievermedia/)
 * (@retrievermedia)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/google-problemundefined-index-http_accept_language/#post-5861851)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-ads-manager_73687f.svg)
 * [Simple Ads Manager](https://wordpress.org/plugins/simple-ads-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-ads-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-ads-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-ads-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-ads-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-ads-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [judith](https://wordpress.org/support/users/retrievermedia/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/google-problemundefined-index-http_accept_language/#post-5861851)
 * Status: resolved