• Resolved Phil Johnston

    (@johnstonphilip)


    Hey there,

    On some pages (because of other plugins) this error is being triggered:

    Undefined index: HTTP_USER_AGENT in …wp-content/plugins/disqus-conditional-load/public/dcl-functions.php on line <b>237

    Perhaps a conditional check could be used here to make sure HTTP_USER_AGENT is actually set – as it isn’t always – and to make this plugin more compatible with other plugins and situations.

    Something like this:

    if( isset( $_SERVER['HTTP_USER_AGENT'] ) && strpos($_SERVER['HTTP_USER_AGENT'],$bot)!==false)

    https://www.ads-software.com/plugins/disqus-conditional-load/

Viewing 1 replies (of 1 total)
  • Plugin Author Joel James

    (@joelcj91)

    Hey Johnston,

    Thank you so much for the heads up! I have added checking like you suggested. Sorry for missing that before ??

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index: HTTP_USER_AGENT’ is closed to new replies.