ReCaptcha not displaying on browser - php

I ran into a weird problem today. I was trying to implement the new ReCaptcha v2 into my website and it works fine. I tested it on all computers at home however on only 1 of them it decided not to work. It gave me a:
Failed to load resource: net::ERR_INSECURE_RESPONSE
My site is by default served over HTTPS but I checked and that's not the issue. This because I tried to load the same page without HTTPS but it still gave the same error. The weird thing however is that all the other devices at home I tested it on just worked fine.
So what could be the issue that this one computer isn't working?
If you need specific details about that one computer just ask.

Related

Staging Wordpress shows 404 for WooCommerce Products & Categories

I have a Wordpress site with Woocommerce. For the past years, I have been creating staging environment through Softaculous interface, do the updates in my staging environment and then push them to the live site.
However, recently I came across an issue with WooCommerce products and I can't seem to find a way to fix it. Basically when I add a new product to WooCommerce and try to preview it on the staging site, I get a 404 No Results Found. The product category pages are also not working and some of the pages are redirecting me to the live site.
I have:
tried creating a new staging site in case something went wrong
disabled all plugins except WooCommerce
updating permalinks in case something went wrong
confirmed that the URL
verified that the wp-config is correct for staging environment
confirmed with hosting company that requests are hitting the correct database, though there are no other logs from their end
have purged cloudflare cache and also enabled development mode after just in case
All the above however have not fixed the issue and at this point I am pretty much clueless at what might be the issue. Is there anything else that I should look for or anyone ever encountered this issue?
Edit: I am on the latest versions of WordPress and WooCommerce. All other plugins are up to date as well (though disabled at this point).
Thanks
I managed to find the root culprit which was leading to this behaviour.
The SSL certificate had expired and hence when you try to load the staging site, Cloudflare was redirecting me to the live site.
Once the SSL was renewed, all started working fine as before.

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.

404 For me only

I am trying to install the forums software - Xenforo.
I uploaded every single file. However, it comes back a Cpanel default page (Future home of something quite cool).
And when I want to visit xxx.php page, it comes a 404 error.
I tried to clear the cache and cookies on Microsoft Edge and Chrome. Even a clean Firefox is still not working.
When I contacted Godaddy Support, they said that at their end my site is working. My PC and phone are not working as well even they are in different network provider.
I can just come here for HELP!!!! Thank you.
You should try clearing your cache or using an incognito browser.
There are great people over on the Xenforo Community Forums that can help you out with the installation.
Xenforo Community Forums: https://xenforo.com/community/forums/installation-upgrade-and-import-support.23/

Error 500 Too Many Redirects on Apache Specific to iOS Devices

So this is a weird one. I have a system that functions in 2 parts:
Fill out form. Submit sends an email to the email entered in the form with a link that has a unique string as a _GET parameter
Click link in the email, goes to a page that validates based on the string
When I click on this link from Windows or Android, everything is perfectly fine. If I click it on an iOS device, I get "Error, too many redirects" in both Safari and Chrome. I've cleared cache, rebooted iOS devices (iPad Air 2, iPad Mini, iPhone 6S, iPod Touch), tried hostname and IP access, tried moving directories around, I've stripped literally everything out of the page in question except for the HTML tag, BODY tag, and a simple "Oh, hai" and get the same result. The validation page is in the same folder as the form page. The validation code works on another web server on the same machine (LigHTTPd). All of this tells me that the code is fine.
I spent a good chunk of the day trying to figure this out and everything I've found thus far suggests that it's related to .htaccess. Perfectly understandable. There is no .htaccess file in this directory. There are no rules in the general Apache conf file that pertain specifically to this subdirectory. Another weird thing is that this code was 80% copied from another directory with that site still functioning as expected (i.e. validation link click works fine).
The logs don't indicate anything besides a 500 error.
So to summarize:
Windows: Good
Android: Good
iOS: Fails with error 500, too many redirects on both Chrome and Safari
Affects all iOS devices
Not .htaccess related (Near as I can tell)
Only affects this particular site
Not cache related
Not hostname/IP related
Works fine in another web server
I would love to post the URL but this is for a paying client.
So I'm asking if anyone knows a way I can troubleshoot this.
Server version: Apache/2.4.7 (Ubuntu)

Categories