Gravity Forms causing 403 error on home page only - php

So I've just moved a Wordpress site to a new hosting provider, and the strangest thing is happening..
I have a contact form (the same contact form) at the bottom of each page on the site, each page loads fine, except for the home page. If I try and load the home page, I get a 403 Permission denied error. If i disabled the plugin, or remove the form from that page, it loads fine.
I suspect it might be a permissions issue but I have no idea where to even start looking. Everything else on the site works fine.
It's Gravity Forms btw.
Also, I know this might not be the right place to ask but I'm at my wits end here trying to work this out.

So after going through some logs etc i discovered it was php mod_security that was triggering on a false positive on an iframe that gravity forms was producing. Still not sure why it was only happening on the home page though.
I contacted the hosting provider and asked them why it was happening and they just advised they'd turn it off. Which they did and it's working fine now. If anyone wants to add anything to this please do.

Check your wordpress options table. Your old site link is still there, as it seems. Replace it with new one.

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.

WordPress URL Keeps Adding unnecessary Parameters

Anytime I open my client's website, the URL keeps on adding an unnecessary parameter
Example:
Website URL => https://example.com/
While loading, the URL will change into this
https://example.com/QKYUZ/YenNS/RQlKZ/QYSQc/SnSfZ/ljLWX/
or when login at the back office...
https://example.com/wp-admin/ => https://example.com/QYSQc/wp-admin/
I'm using WordPress, that happens either on the website or at the back office. Sometimes it will show different errors because of those.
Does anyone know what is happening or how can I fix this?
This is not the normal behaviour of WordPress. My first guess is, you have a plugin that's acting funny. I suggest you do the following;
Make a local copy of your website and set up using a local server and a database.
Once the site is up and running locally, go to plugins and deactivate all plugins. Re-enable them one after the other and you should find the culprit plugin.
This should help you resolve the issue.

WP-login redirecting to the complete wrong area

Hi I've created a dev site for testing my creations before they go live.
I've come to the site and all the images aren't there so I thought that may be a problem with the uploads folder, reuploaded from the live site and they still didn't appear.
Came to log in to wp-login and there was no styling on the login fields. Was strange so I tried to log in and it sent me to dev.mysite.com/dev.mysite.com/wp-login.php
So as you can see it seems to like to send me to a duplicate of the url and I can't for the life of me figure it out.
My wp-config file is as is:
define('WP_HOME','dev.mysite.com');
define('WP_SITEURL','dev.mysite.com');
I've change my actual url for security reasons as I work for a healthcare company. I'm sure you guys can understand. Any Idea why I might be getting redirected?
Also when I type in dev.mysite.com/wp-admin it takes me to the backend of wordpress as I have logged in through the buggy no styled form but then the backend of wordpress has no styling what so ever. See image below:
None Styled Wordpress Backend Image
Really hope someone is able to help as I'm baffled.
Thanks!
WP_HOME and WP_SITEURL should be a full URI, ie. http://dev.mysite.com. Also make sure your htaccess don't contain any wrong path redirects.
Edit: You get un-styled admin because Wordpress has the wrong base URI, so it is searching for stylesheet and scripts in the wrong folders. If you open the developer console you will prolly see a lot of 404 errors (file not found).

Wordpress Site not logging-in

So I'm completely new to working with WordPress and I've had to figure this out by watching YouTube videos and reading articles. I'm not a programmer, all I really understand is HTML & CSS.
So I finished the site on the localhost and I tried to upload it to my hosting service. I created a database and my hosting provider walked me through on creating a subdomain. After that was completed I logged into the admin side of to redirect the URLs. Once I clicked 'save' it logged me out and when I tried to log back in it gave me this error "ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress." However, the cookies are enabled and the site is live in its subdomain. When I go to test.mydomain.com it works, there's a few things broken but it's showing up. For example, when I click a link it takes me to a localhost url but if i click on the link again it takes me back to the test.mydomain.com url. Plus, when i go to the admin site it's still giving me the error. I have no idea how to go about fixing this. I tried to figure it out but I don't really understand since I'm not familiar with WordPress. Please help!

Wordpress Gravity Form Strange error in Multi Page Forms

I went into a strange problem with a Multi Page Gravity form on my wordpress site, this is the link to the form:
http://cc.marknetdev.com/small-business/apply-for-a-loan/apply-now/
The form neither show validation error nor jump to next step once I press submit/next.
I investigated this problem and found that this problem is only occuring on this server, I tried the same installation on a different domain and hosting and it is working there:
http://comcap.taqih.com/small-business/apply-for-a-loan/apply-now/
I tried updating htaccess file, deactivating all the plugins, trying the same thing on new wordpress installation but the problem is occuring again and again on this page:
http://cc.marknetdev.com/small-business/apply-for-a-loan/apply-now/
Can you help me, what is wrong? Is it related to server?
Thanks.
I found out the problem:
"Mod Security on my server was blocking the form submission, since form has lots of input, it was considering it as a spam attack, and was blocking that form submission"
I hope this will be helpful for someone in future.

Categories