Recaptcha does not work locally - php

There is absolutely no errors in coding, it just does not seem to work locally, but works perfectly online. It is important I get it working locally because of development purposes. Not form submission, but page display.
Any ideas on how I cam make the recaptcha to work locally.
Thanks
Jean

Recaptcha is an online web service, thus it will work only online.
You cannot make it work offline.
Edit:
Your problem seems not to be your internet connection but a PHP error, since your comment talks about a "white page". Please search the web (or stackoverflow) for "php white page" to get debugging instructions.

Are you using XAMPP, if so, I found that if you put your files in htdocs in XAMPP folder the recaptcha works. According to google, their recaptcha will work on localhost. I'm sure there's a lot more logical solution than what I have, but this is what worked for me, hope it helps you too.

Related

Error 409 – Contact Form scripts and styles not loading

I have been pulling my hair out over the last couple days trying to figure this issue out. Feels like i’ve tried everything, so i’m finally resorting to here. All of a sudden, the contact forms on my site just stopped working. The AJAX feature doesn’t work and there’s a red border under all my contact forms, which is the red border for the error message. When I view the console, a number of errors show up, with resources that are failing to load, all of which are scripts and styles that the plugin depend on to actually work.
But the issue is quite strange, because the forms only stop working when I am connected to a particular network. I have two Wi-Fi networks at home and when I connect to one, the forms work perfectly and when I connect to the other, it breaks. It led me to believe that it was a caching issue so I did the following:
Cleared my browser cache
Cleared the WordPress cache
Contacted Hostgator to clear the server cache
Reset both my routers
Even went as far as doing ipconfig /flushdns in command prompt as I saw someone suggest that, because they were having the exact same issue.
None of that worked, and even though I know that the issue isn’t with the theme or conflicting plugins, I still
Deactivated all the plugins besides Contact Form 7 to see if that would fix the issue
Switched from my theme to the default WordPress theme
Reverted to an older version of Contact Form 7 (ver. 5.1.6 as this is the version I have on another site, also hosted on Hostgator, that works perfectly.)
Unfortunately, none of this worked either. I am assuming the problem has to be on either my end or on Hostgator’s end, because I have sent the link to other people who are not on my network, and they don’t have an issue. The forms work as they should. I am really not sure what’s causing this so I am hoping someone would be able to give me some suggestions or support please
Hostgator hasn’t helped me. They checked to see if my IP was blacklisted or something and it wasn’t, and like I said, they cleared the server cache and still nothing. What do I do? After researching the issue on my own, I've realized that this is a problem many people face with Contact Form 7 and Hostgator/Bluehost, but I haven't found a proper solution yet...
UPDATE: Apparently the issue arises because of the word "contact" being in both the URL and the scripts/styles/images? That's the weirdest thing i've ever heard of, but apparently that's the issue? I had a banner image on my site named "contact-bg.jpg" that wouldn't load, got a 409 error for that as well. I changed the name of it to "get-in-touch-bg.jpg" and it loaded just fine. Unfortunately changing the slug from contact-us to get-in-touch didn't work. Is there a way to completely change the name of the contact form 7 plugin, removing the word contact from all the files and still have the plugin work?? See this question: Failed to load resource: the server responded with a status of 409
So, seems like this issue had nothing to do with plugins or the theme or anything. Apparently it had to do with my IP address and my webhost blacklisting my IP for some reason. I had to contact them and have them whitelist it in order for the contact forms to start working properly. This probably wouldn't work for everyone/wouldn't be the case for everyone, but it worked for me.

PHP Form submitting on staging but breaking on live. How to debug?

So I have a very simple form with just 2 fields that submits on the staging site, tested and got my clients to test and everything was fine.
Uploaded exactly the same code to the live site and it works for me but my clients just get the same empty form after submitting instead of the intended thank you message that should be showing in its place...there are no error messages and I can't seem to replicate this anywhere other than on the live site and i don't want to turn debugging mode on there.
I have also checked the host for error logs but unfortunately the host doesn't seem to have this feature.
How do I debug this or any information as to why it wouldn't be working would be super helpful.
I have gotten clients to hard refresh and clear browser cache. They have tried on multiple machines and in different places with the same result.
If you would like to take a look the staging site is here: http://ams.staging.gooi.ltd/
It's the Newsletter Sign Up button in the top left. This has been working for everyone that has tried though....like I said...only seems to not work on the live site for some people.

PHP error after moving Codeigniter to server

For a client of us, we have moved the website to our server. Everything went well with the move except for one page. When you go to this page. I get this error
How can I solve this?
Maybe good to know, so I am not an expert.
Greetz,
Remy

Php reCaptcha not showing on server

I am a new PHP programmer. I am using reCaptcha for my website. It was showing normally earlier but does not show up now. The code is working on my localhost.
I have signed up for reCaptcha, entered my domain name and obtained the generated keys. After that, I downloaded the reccaptchalib.php and deployed it to my server.
Kindly help me as I don't know what to do next.
Thanks in advance!
Are you getting any PHP errors in the logs? Is it possible that you moved the reCaptcha library to a different path or moved the script?
I had a similar problem and it was caused by "cleaning up" and I moved the reCaptcha library into a subfolder.

Facebook Login Not Working on One Site, Exact same code works on my other

My Facebook connect stopped working on TopTopGames.com for some reason. I have no idea why. Try contacting Facebook support and they practically did nothing for me.
Since this issue, i tried to use Facebook code from the documentation on both sites (toptopgames.com, flashgratuit.com): https://developers.facebook.com/docs/guides/web/
Here are the test files:
http://toptopgames.com/test.php
http://flashgratuit.com/test.php
Only changes are the name. I tried playing with the code. Downright copying and paste the developers document ion code. I tried making new API keys. None of it worked for TopTopGames. I copied the script over to other sites and it worked fine.
Just a guess: https://developers.facebook.com/bugs/306864219353317?browse=search_4ef1c2c9d79587d72785127

Categories