Title: Error log showing Undefined array key &#8220;HTTP_USER_AGENT&#8221;
Last modified: August 1, 2022

---

# Error log showing Undefined array key “HTTP_USER_AGENT”

 *  Resolved [Jineu](https://wordpress.org/support/users/jineu/)
 * (@jineu)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/error-log-showing-undefined-array-key-http_user_agent/)
 * Recently there has been an increase of these errors in the log files.
 * [Mon Aug 01 10:37:01.375805 2022] [php:warn] [pid 17241] [client 152.32.131.196:
   12882] PHP Warning: Undefined array key “HTTP_USER_AGENT” in site name.com/wp-
   content/plugins/participants-database/participants-database.php on line 2937
 * Any idea of what is causing that?

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

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/error-log-showing-undefined-array-key-http_user_agent/#post-15878683)
 * This is happening because your web server does not include the HTTP_USER_AGENT
   item in the $_SERVER array. It’s a little unusual (which is why I hadn’t anticipated
   this), but not much of an issue and can be safely ignored.
 *  Thread Starter [Jineu](https://wordpress.org/support/users/jineu/)
 * (@jineu)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/error-log-showing-undefined-array-key-http_user_agent/#post-15889816)
 * Thank you for taking time to explain. It’s happening due to some script attacks
   from bad actors/bots. We were having issues with the reCaptha plugin content 
   security headers, and some script monkeys were able to force through registration.
   They are now blocked – but still trying to access the PDB login link.
    -  This reply was modified 3 years, 10 months ago by [Jineu](https://wordpress.org/support/users/jineu/).

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

The topic ‘Error log showing Undefined array key “HTTP_USER_AGENT”’ is closed to
new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jineu](https://wordpress.org/support/users/jineu/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/error-log-showing-undefined-array-key-http_user_agent/#post-15889816)
 * Status: resolved