Title: Stopped working on Localhost
Last modified: July 4, 2017

---

# Stopped working on Localhost

 *  Resolved [nate22](https://wordpress.org/support/users/nate22/)
 * (@nate22)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/)
 * For no apparent reason (nothing has changed), Age Gate just stopped working on
   localhost. After I type in my birthday in XX-XX-XXXX format, it just reloads 
   the page as if nothing happened. There is no message. It just reverts the input
   boxes to MM DD and YYYY.
 * This concerns me because after I got it working locally, I uploaded it to the
   live site. So… why did it stop working and how do I know it’s not just going 
   to stop working on the live site, too?

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/stopped-working-on-localhost/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/stopped-working-on-localhost/page/2/?output_format=md)

 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9287657)
 * Hi,
 * Do you have a caching plugin or similar installed?
 * Thanks
    Phil
 *  Thread Starter [nate22](https://wordpress.org/support/users/nate22/)
 * (@nate22)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9287706)
 * Nothing of the kind. I never use those on local sites. I rarely use them on live
   sites, actually.
 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9287732)
 * Hmmm, that’s an odd one then, not come across it before. Can you (if you’re not
   already) enable debug mode and check there’s no PHP errors – not that there should
   be as it’s developed with that enabled.
 * Can you also check it with the yes/no and drop down options to see if it still
   happens there? And if you can let me know any plugins/themes you’re using I can
   have a look at debugging it.
 * Cheers
    Phil
 *  Thread Starter [nate22](https://wordpress.org/support/users/nate22/)
 * (@nate22)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9287769)
 * In an attempt to maybe fix the problem with my local version of the site, I just
   upgraded to WordPress 8 from version 7.5 but it has not fixed anything.
 * The live version still works and is still running WP 7.5
 * Both local and live sites are running Version 1.3.5 of the Age Gate plugin.
 *  Thread Starter [nate22](https://wordpress.org/support/users/nate22/)
 * (@nate22)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9287785)
 * Debug mode was already set to true:
 * define(‘WP_DEBUG’, true);
 * There are no errors. It just reloads the page as if nothing happened.
 *  Thread Starter [nate22](https://wordpress.org/support/users/nate22/)
 * (@nate22)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9287797)
 * I don’t know what this means:
 * > Can you also check it with the yes/no and drop down options to see if it still
   > happens there?
 * There are no yes/no or dropdown options in the Age Gate settings.
 * I will turn off all my other plugins and see what happens.
 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9287799)
 * OK, it should work on both with no issue – it’s good on my localhost (not helpful,
   I know!) running under a Vagrant VM.
 * Stupid question but cookies aren’t disabled on localhost? Is it happening in 
   all browsers or just a specific one? After you enter the date of birth are you
   able to view the cookie information from something like developer toolbar?
 * Thanks
    Phil
 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9287811)
 * > I don’t know what this means:
   > Can you also check it with the yes/no and drop down options to see if it still
   > happens there?
 * It’s the option call “Validate age using”, gives you a choice of input fields,
   dropdown or a simple Yes/no button option.
 * Thanks
    Phil
 *  Thread Starter [nate22](https://wordpress.org/support/users/nate22/)
 * (@nate22)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9287824)
 * Something odd is when I delete your plugin and then reinstall it, it has all 
   the same settings saved from when I had it installed previously. So, it seems
   like it is not really deleting itself from the database. I don’t have any cache
   plugins to keep those settings and I always do a force-refresh to empty browser
   cache.
 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9287880)
 * It looks like the uninstall function isn’t being called so I’ll have to look 
   into that.
 * Shouldn’t be what’s affecting you though. Have you tried different browsers etc
   as above?
 *  Thread Starter [nate22](https://wordpress.org/support/users/nate22/)
 * (@nate22)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9288030)
 * Hi Phil,
 * I just want to point out that **this WAS working locally last week** or I would
   have never used the plugin for the live site. I tested out 3 or 4 plugins and
   just when I found this one I thought, “this is awesome! This does exactly what
   I wanted!”
 * Here are my results:
 * 1. Yes / No option does not work on local, but they work on live
 * 2. Dropdown option does not work on local, but it works on live
 * 3. Deactivating all my other plugins did not work
 * 4. Browsers:
 *  Chrome browser – doesn’t work on local site, works on live site.
 *  Opera browser – same
 *  Firefox – same
 * 5. BONUS: I installed a new website running WordPress 4.8 running Twenty Seventeen
   theme with no other plugins (just a clean default WP install). It did not work
   in any browser…same as above.
 * 6. BONUS 2: I set up a redirect URL for failed attempts (google.com) and it did
   not redirect, either. Same with all browsers tested above. Firefox and Opera 
   have no extensions on my machine, so it is not an extension interference.
 *  Thread Starter [nate22](https://wordpress.org/support/users/nate22/)
 * (@nate22)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9288414)
 * I also just tried it with a Bitnami installer version of WordPress instead of
   a MAMP version. That doesn’t work on localhost, either
 * No idea what happened.
 * This is some real mysterious stuff here.
 * I’d be tempted to think it was a browser extension except for the fact that Firefox
   has zero add-ons (extensions) activated. Cookies are on the default settings 
   of “recommended” everywhere.
 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9288784)
 * This does seem pretty strange, especially as it’s working on live.
 * Theres a couple of potential causes I think;
 * 1. the post isn’t happening properly – not sure why this would happen
 * or
 * 2. The session isn’t being set, which could be a config issue you can check this
   with the chrome/FF web developer add-on under cookies > view cookie info. You
   should see a PHPSESSID. The extension is available here: [https://chrome.google.com/webstore/detail/web-developer/bfbameneiokkgbdmiekhjnmfkcnldhhm](https://chrome.google.com/webstore/detail/web-developer/bfbameneiokkgbdmiekhjnmfkcnldhhm)
 * Screenshot can be seen here too if you need it [http://imgur.com/a/qoUAC](http://imgur.com/a/qoUAC)
 * I’m going to give it a try on MAMP and see if I can reproduce it. If you want
   you can zip the clean installed version and put it on dropbox or something and
   I’ll see if it works on my local, at least that way we can see if it’s across
   both environments – though it really sounds like a localhost issue as it’s working
   on live. It’d be good to get to the bottom of it though.
 * I’m hoping to release 1.4.0 in the next couple of days that gives the option 
   of a JavaScript version of the age gate for use with cached sites, so that may
   be a viable solution for you to try too. I’ve just got to finish the code and
   test it with a load of different caching options.
 *  Thread Starter [nate22](https://wordpress.org/support/users/nate22/)
 * (@nate22)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9288812)
 * Hey, I installed the web developer extension and it looks like PHPSESSID is set:
 * Name PHPSESSID
    Value 9264445cfe2029e9bd68efee134207a2 Host localhost Path / 
   Expires At end of session Secure No HttpOnly No
 *  Thread Starter [nate22](https://wordpress.org/support/users/nate22/)
 * (@nate22)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/#post-9288821)
 * ^ I deleted the cookie and saw the number go down from 24 to 23 cookies. Then,
   I re-entered my birdthday and viewed cookies again and it went back up to 24 
   cookies. So, it appears to be setting cookies fine.

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/stopped-working-on-localhost/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/stopped-working-on-localhost/page/2/?output_format=md)

The topic ‘Stopped working on Localhost’ is closed to new replies.

 * ![](https://ps.w.org/age-gate/assets/icon-256x256.png?rev=2783003)
 * [Age Gate](https://wordpress.org/plugins/age-gate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/age-gate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/age-gate/)
 * [Active Topics](https://wordpress.org/support/plugin/age-gate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/age-gate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/age-gate/reviews/)

## Tags

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

 * 21 replies
 * 2 participants
 * Last reply from: [nate22](https://wordpress.org/support/users/nate22/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/stopped-working-on-localhost/page/2/#post-9291365)
 * Status: resolved