Title: Notice: Undefined variable: userAgent
Last modified: August 21, 2016

---

# Notice: Undefined variable: userAgent

 *  Resolved [kingchills](https://wordpress.org/support/users/kingchills/)
 * (@kingchills)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/notice-undefined-variable-useragent/)
 * I’m getting the following notice from the __construct function of the HubSpot_BaseClient.
   Looks like $user_agent is coming in as a parameter but is being utilized as $
   userAgent in the code.
 * I’ve updated my local copy but would like to make you aware of the situation.
 * Thanks,
 * Drew.
 * [https://wordpress.org/plugins/gravityforms-hubspot/](https://wordpress.org/plugins/gravityforms-hubspot/)

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

 *  Plugin Author [Chris Lagasse](https://wordpress.org/support/users/soben/)
 * (@soben)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/notice-undefined-variable-useragent/#post-5063471)
 * Hey kingchills,
 * Thanks for the information! I’ll definitely be sure to get this updated. I’ll
   take a look, and get a fix out.
 * Thanks!
    -Chris.
 *  Plugin Author [Chris Lagasse](https://wordpress.org/support/users/soben/)
 * (@soben)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/notice-undefined-variable-useragent/#post-5063591)
 * This fix will be in version 1.1.3, going to have this up in an hour or so.

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

The topic ‘Notice: Undefined variable: userAgent’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gravityforms-hubspot_26e0df.svg)
 * [HubSpot for Gravity Forms](https://wordpress.org/plugins/gravityforms-hubspot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravityforms-hubspot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravityforms-hubspot/)
 * [Active Topics](https://wordpress.org/support/plugin/gravityforms-hubspot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravityforms-hubspot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravityforms-hubspot/reviews/)

## Tags

 * [notice](https://wordpress.org/support/topic-tag/notice/)

 * 2 replies
 * 2 participants
 * Last reply from: [Chris Lagasse](https://wordpress.org/support/users/soben/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/notice-undefined-variable-useragent/#post-5063591)
 * Status: resolved