Title: [Plugin: Simple Google Connect] Odd &#039;state&#039; issue
Last modified: August 20, 2016

---

# [Plugin: Simple Google Connect] Odd 'state' issue

 *  Resolved [kiakanpa](https://wordpress.org/support/users/kiakanpa/)
 * (@kiakanpa)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-simple-google-connect-odd-state-issue/)
 * Interesting issue here:
 * I’m looking in the function sgc_oauth_catcher():
 * in sgc-base.php there is the following check
    `if ( !empty( $_REQUEST['state']))`
 * Now, checking the URL returned by google, there is a state=popup_profile_connect–
   but strangely the $_REQUEST[‘state’] is null.
 * If I replace the final redirect in sgc_oauth_catcher():
 * `wp_redirect(home_url());`
 * Which should obviously never be reached, with:
 * `do_action('sgc_state_popup_profile_connect', $oauth );`
 * which would be called if $_REQUEST[‘state’] wasn’t returning null it works fine.
 * So… any ideas why $_REQUEST[‘state’] is returning null to php when I can clearly
   see it in the url, and why $_REQUEST[‘code’] is returning the correct value (
   which is also visible in the url)?
 * [http://wordpress.org/extend/plugins/simple-google-connect/](http://wordpress.org/extend/plugins/simple-google-connect/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [kiakanpa](https://wordpress.org/support/users/kiakanpa/)
 * (@kiakanpa)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-simple-google-connect-odd-state-issue/#post-3044810)
 * lol – ignore me, it was an issue with the redirect being included in the variable.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Simple Google Connect] Odd 'state' issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-google-connect_f6d9d5.svg)
 * [Simple Google Connect](https://wordpress.org/plugins/simple-google-connect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-google-connect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-google-connect/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-google-connect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-google-connect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-google-connect/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [kiakanpa](https://wordpress.org/support/users/kiakanpa/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-simple-google-connect-odd-state-issue/#post-3044810)
 * Status: resolved