Title: Undefined index: HTTP_ACCEPT
Last modified: April 29, 2020

---

# Undefined index: HTTP_ACCEPT

 *  [SamTyurenkov](https://wordpress.org/support/users/samtyurenkov/)
 * (@samtyurenkov)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/undefined-index-http_accept/)
 * Hi Bjorn,
 * I’m seeing lots of PHP notice in debug.log with the following content:
    `Undefined
   index: HTTP_ACCEPT in .../wp-content/plugins/webp-express/lib/classes/AlterHtmlHelper.
   php on line 218`
 * Would you please add an isset() check so it doesn’t spam to debug.log.
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [santiagor](https://wordpress.org/support/users/santiagor/)
 * (@santiagor)
 * [6 years ago](https://wordpress.org/support/topic/undefined-index-http_accept/#post-12906896)
 * same issue for me, started today when i update to php 7.3 in one of my sites.
   The other that already had was no making errors, but no it does too. Any comments?
 *  [kondorljano](https://wordpress.org/support/users/kondorljano/)
 * (@kondorljano)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/undefined-index-http_accept/#post-13540932)
 * me to have this error.
 *  Thread Starter [SamTyurenkov](https://wordpress.org/support/users/samtyurenkov/)
 * (@samtyurenkov)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/undefined-index-http_accept/#post-13979194)
 * Up. It still spams into log.
 * `[29-Jan-2021 01:23:04 UTC] PHP Notice: Undefined index: HTTP_ACCEPT in /wp-content/
   plugins/webp-express/lib/classes/AlterHtmlHelper.php on line 218`
 * Please just add this line into the method:
 *     ```
       if (array_key_exists('HTTP_ACCEPT',$_SERVER) == false) {
       			return $returnValueOnFail;
       		}
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Undefined index: HTTP_ACCEPT’ is closed to new replies.

 * ![](https://ps.w.org/webp-express/assets/icon.svg?rev=1918288)
 * [WebP Express](https://wordpress.org/plugins/webp-express/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-express/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-express/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-express/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-express/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-express/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [SamTyurenkov](https://wordpress.org/support/users/samtyurenkov/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/undefined-index-http_accept/#post-13979194)
 * Status: not resolved