Title: Undefined property: stdClass::$state_rank
Last modified: August 22, 2016

---

# Undefined property: stdClass::$state_rank

 *  Resolved [iotus1](https://wordpress.org/support/users/iotus1/)
 * (@iotus1)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/undefined-property-stdclassstate_rank/)
 * I have just installed the plugin, hooked up my Sunlight API key, and run a test-
   search using a nevada zip code. The results seem to be showing up fine, however
   they are prefaced by this error when WP_DEBUG is set to true:
 * > Notice: Undefined property: stdClass::$state_rank in /site_root_url/nevada/
   > wp-content/plugins/congresslookup/getData.php on line 52
 * I have switched to default 2015 theme, and then disabled all additional plugins
   one by one until all are off, and still receive the exact same notice. Is this
   anything to worry about?
 * [https://wordpress.org/plugins/congresslookup/](https://wordpress.org/plugins/congresslookup/)

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

 *  Plugin Author [ConstructiveGrowth](https://wordpress.org/support/users/constructivegrowth/)
 * (@constructivegrowth)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/undefined-property-stdclassstate_rank/#post-5802474)
 * I’ll have the coders look into this but as long as the results are showing properly
   there shouldn’t be a problem. I’ll get back to you one way or the other. Thanks
   for letting us know.
 *  Plugin Contributor [Hamza Bahlaouane](https://wordpress.org/support/users/quick2ouch/)
 * (@quick2ouch)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/undefined-property-stdclassstate_rank/#post-5802581)
 * Hi,
 * Thank you for reporting this.
    Open : wp-content/plugins/congresslookup/getData.
   php
 * At line 52, replace
 *     ```
       if($c->state_rank != "")
       ```
   
 * With
 *     ```
       if(isset($c->state_rank) && $c->state_rank != "")
       ```
   
 * This should fix your problem.
 * Regards,
    Hamza

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

The topic ‘Undefined property: stdClass::$state_rank’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/congresslookup_b89295.svg)
 * [CongressLookup](https://wordpress.org/plugins/congresslookup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/congresslookup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/congresslookup/)
 * [Active Topics](https://wordpress.org/support/plugin/congresslookup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/congresslookup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/congresslookup/reviews/)

## Tags

 * [notice](https://wordpress.org/support/topic-tag/notice/)
 * [stdClass](https://wordpress.org/support/topic-tag/stdclass/)
 * [Undefined property](https://wordpress.org/support/topic-tag/undefined-property/)

 * 2 replies
 * 3 participants
 * Last reply from: [Hamza Bahlaouane](https://wordpress.org/support/users/quick2ouch/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/undefined-property-stdclassstate_rank/#post-5802581)
 * Status: resolved