Title: Unreachable Code After Return Statement
Last modified: September 20, 2016

---

# Unreachable Code After Return Statement

 *  [linux4me2](https://wordpress.org/support/users/linux4me2/)
 * (@linux4me2)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/unreachable-code-after-return-statement-2/)
 * The functions on a property detail page that require the user to sign in, like
   Profile, Listings, Searches, and Login no longer work. The only errors I see 
   are in the javascript code served by your CDN at [http://cdn2.diverse-cdn.com/api/combo-js/config=dsidxpress-pro.js/241c9d?ver=2.1.42](http://cdn2.diverse-cdn.com/api/combo-js/config=dsidxpress-pro.js/241c9d?ver=2.1.42).
   There are three “unreachable code after return statement” errors listed in the
   debugger console in Firefox. I’ve confirmed that the issue occurs in Firefox 
   and Chrome. I disabled the caching and login protection plugins, and that made
   no difference. Unfortunately, this is a production site and I don’t have the 
   luxury of disabling all the plugins and trying a different theme to be sure it’s
   not a conflict, but it certainly doesn’t appear to be one.
 * Can anyone confirm that these functions work on their site?

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

 *  [DS_Riley](https://wordpress.org/support/users/ds_riley/)
 * (@ds_riley)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/unreachable-code-after-return-statement-2/#post-8207250)
 * Hey Linux4me2,
 * We have not had any reports of this issue happening on other clients accounts.
   I would recommend opening a ticket up with our support team if you have not done
   so already. We can be reached at: [support@diversesolutions.com](https://wordpress.org/support/topic/unreachable-code-after-return-statement-2/support@diversesolutions.com?output_format=md)
 * Please feel free to reach out to us via the following:
 * Customer Support:
    [Support@DiverseSolutions.com](https://wordpress.org/support/topic/unreachable-code-after-return-statement-2/Support@DiverseSolutions.com?output_format=md)
   p. 877.348.7654 Ext. 3
 * Sincerely,
    Riley
 *  Thread Starter [linux4me2](https://wordpress.org/support/users/linux4me2/)
 * (@linux4me2)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/unreachable-code-after-return-statement-2/#post-8207396)
 * Thanks for the info.
 * I actually emailed support on Monday, but I hadn’t heard anything back as of 
   this morning, so I called your support phone number. The tech was able to register
   using the link on a property detail page on our site. When he logged in via the
   IDX page, it appeared he was able to log in, but the page didn’t show him as 
   logged in, so there may be something going on with the site, but the problem 
   appears to be mostly limited to my machine. He was using Win 7 and verified it
   worked in both Firefox and Chrome. I tried with a box-stock installation of Chrome
   and I couldn’t get it to work with either, but I’m using a Linux box. I’m going
   to try to get a hold of a Windows machine to test here to see if it is OS-related,
   as it doesn’t appear to be browser-related.
 *  Thread Starter [linux4me2](https://wordpress.org/support/users/linux4me2/)
 * (@linux4me2)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/unreachable-code-after-return-statement-2/#post-8207486)
 * I tested with Edge and Firefox on Win 10 on my network, and I was able to register
   and login with both on the property detail page. On the IDX page, I was able 
   to log in, but the page still shows me “Login” instead of “Log Out” after a successful
   login. If I then go to a property detail page, it shows I am logged in. So the
   inability to log in or register appears to be limited to my Linux box, and occurs
   with both an unmodified Chrome install and Firefox running no extra plugins but
   a disabled (on the site) AdBlock Plus. I wasn’t able to log in or register with
   my Linux box on the test site the Diverse Solutions’ tech gave me, either, so
   I don’t think it’s an issue with the site (except for the Login/Log Out part 
   on the IDX page).
 *  [DS_Riley](https://wordpress.org/support/users/ds_riley/)
 * (@ds_riley)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/unreachable-code-after-return-statement-2/#post-8207850)
 * Hey Linux4me2,
 * Are you running any type of caching plugin on your website or hosting side of
   things? Also, please open a ticket with support (if you have not already done
   so) as we troubleshoot this issue. We will not be able to continue troubleshooting
   this issue over the forms.
 * Support email: [support@diversesolutions.com](https://wordpress.org/support/topic/unreachable-code-after-return-statement-2/support@diversesolutions.com?output_format=md)
 * Please feel free to reach out to us via the following:
 * Customer Support:
    [Support@DiverseSolutions.com](https://wordpress.org/support/topic/unreachable-code-after-return-statement-2/Support@DiverseSolutions.com?output_format=md)
   p. 877.348.7654 Ext. 3
 * Sincerely,
    Riley

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

The topic ‘Unreachable Code After Return Statement’ is closed to new replies.

 * ![](https://ps.w.org/dsidxpress/assets/icon-128x128.png?rev=2902025)
 * [Diverse Solutions IDX Real Estate Listings & MLS Search](https://wordpress.org/plugins/dsidxpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dsidxpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dsidxpress/)
 * [Active Topics](https://wordpress.org/support/plugin/dsidxpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dsidxpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dsidxpress/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [DS_Riley](https://wordpress.org/support/users/ds_riley/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/unreachable-code-after-return-statement-2/#post-8207850)
 * Status: not resolved