Title: Undefined Index HTTP_USER_AGENT
Last modified: August 21, 2016

---

# Undefined Index HTTP_USER_AGENT

 *  [thatstevensguy](https://wordpress.org/support/users/thatstevensguy/)
 * (@thatstevensguy)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/undefined-index-http_user_agent/)
 * Just letting you know that with WP_DEBUG enabled I get a random error logged 
   on post pages. Placing an @ in front of $_SERVER did the trick for now.
 *     ```
       [21-Oct-2013 05:15:59 UTC] PHP Notice:  Undefined index: HTTP_USER_AGENT in /home/~/public_html/wp-content/plugins/crayon-syntax-highlighter/util/crayon_util.class.php on line 338
       [21-Oct-2013 05:15:59 UTC] PHP Notice:  Undefined index: HTTP_USER_AGENT in /home/~/public_html/wp-content/plugins/crayon-syntax-highlighter/util/crayon_util.class.php on line 765
       ```
   
 * [http://wordpress.org/plugins/crayon-syntax-highlighter/](http://wordpress.org/plugins/crayon-syntax-highlighter/)

The topic ‘Undefined Index HTTP_USER_AGENT’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/crayon-syntax-highlighter_b0c4c0.
   svg)
 * [Crayon Syntax Highlighter](https://wordpress.org/plugins/crayon-syntax-highlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/crayon-syntax-highlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/crayon-syntax-highlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/crayon-syntax-highlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/crayon-syntax-highlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/crayon-syntax-highlighter/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [thatstevensguy](https://wordpress.org/support/users/thatstevensguy/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/undefined-index-http_user_agent/)
 * Status: not resolved