Title: https bug and the fix
Last modified: August 20, 2016

---

# https bug and the fix

 *  [ken@kenw.us](https://wordpress.org/support/users/kenkenwus/)
 * (@kenkenwus)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/https-bug-and-the-fix/)
 * Using rsvp 1.6.5 which I think is the latest on IIS on my localhost machine and
   ran into a bug where https was called instead of http which of course failed 
   to work on my local test server. I tracked this bug down to be in the following
   routine:
 *     ```
       function rsvp_getHttpProtocol() {
       //		if(isset($_SERVER['HTTPS'])  && (trim($_SERVER['HTTPS']) != "")) {
       // kew - fix to handle "off" setting that IIS returns on my localhost
       		if(isset($_SERVER['HTTPS'])  && (trim($_SERVER['HTTPS']) != "") && (strtolower(trim($_SERVER['HTTPS'])) != "off")) {
       			return "https";
       		}
       		return "http";
       	}
       ```
   
 * The fix is shown above. This is caused by IIS returning “off” in the SERVER[‘
   HTTPS’] string instead of null.
 * Hope this helps someone.
 * [http://wordpress.org/extend/plugins/rsvp/](http://wordpress.org/extend/plugins/rsvp/)

Viewing 1 replies (of 1 total)

 *  [WyzeWon](https://wordpress.org/support/users/wyzewon/)
 * (@wyzewon)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/https-bug-and-the-fix/#post-3571173)
 * I think this is the fix I’m looking for, however I tried pasting your above code
   directly into the rsvp/wp-rsvp.php, but it didn’t seem to work, I’m a rather 
   new user and don’t have any experience editing .php files so I think I may have
   not done it properly. Can you perhaps give me a bit more of a detailed explanation
   of your resolution?
 * Many thanks, in advance.

Viewing 1 replies (of 1 total)

The topic ‘https bug and the fix’ is closed to new replies.

 * ![](https://ps.w.org/rsvp/assets/icon.svg?rev=3477888)
 * [RSVP and Event Management](https://wordpress.org/plugins/rsvp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rsvp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rsvp/)
 * [Active Topics](https://wordpress.org/support/plugin/rsvp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rsvp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rsvp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WyzeWon](https://wordpress.org/support/users/wyzewon/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/https-bug-and-the-fix/#post-3571173)
 * Status: not resolved