• We’re getting lots of notices in our logs.

    PHP Notice: Undefined index: HTTP_ACCEPT in /home/user/public_html/wp-content/plugins/wp-enable-webp/wp-enable-webp.php on line 26

    Line 26 should be changed to this to avoid them:

    if( isset( $_SERVER['HTTP_ACCEPT'] ) && strpos( $_SERVER['HTTP_ACCEPT'], 'image/webp' ) !== false ) {

Viewing 1 replies (of 1 total)
  • Thank you Brian, I have the same issue and fixed it thanks to your solution.

    Hopefully the plugin maintainer will fix this notice.

    Best wishes,
    Guido

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index notice for $_SERVER[‘HTTP_ACCEPT’]’ is closed to new replies.