Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 0.8.12, Access-Control-Allow-Origin, browser, form, header, SAMEORIGIN, X-Frame-Options
- This topic has 2 replies, 3 voices, and was last updated 9 years, 5 months ago by
Hung Tsai.
-
AuthorPosts
-
06/16/2014 at 9:45 pm #294030
Hung
GuestDuring testing, upon filling out a test entry using Form
http://schoolyogainstitute.com/network/alumni-community/alumni-directory/submit/
I get “Please wait, your submission is being processed.” on the page and then a browser pop-up error “Unknown Error has Occurred!”
However, checking in the WP Backend, Connections>Manage, the entry is available to Moderate and my test email received a confirmation (subject only, no text).
I am also using the Tiles Plus template
http://schoolyogainstitute.com/network/alumni-community/alumni-directory/
Please help!?
06/17/2014 at 11:44 am #294052Steven Zahm
Keymaster@ Hung
This seems to be a server config issue. If I’m right, something out of my control and ability to give you a solution. Here’s my what I believe the issue is… a bit technical.
The submission occurs via an AJAX call to your server. This does complete successfully which is why the submission ends up in the moderation queue as it should. The error is occuring when the success message is sent back but the browser will not accept the success message which cause Form to show the unknown error has occurred message.
The reason the browser is rejecting the success message is because the browser request headers do not match. Here’s the request headers the browser sent to the server when submitting an AJAX request:
Host:om.schoolyogainstitute.com Origin:http://schoolyogainstitute.com
Here’s the server response headers:
Access-Control-Allow-Origin: http://schoolyogainstitute.com X-Frame-Options: SAMEORIGIN
My best guess it is because the request is going to and being received from
om.schoolyogainstitute.com
instead ofschoolyogainstitute.com
.I found similar issue with another plugin in the WordPress support forums. The solution to the issue will not work for you because the issue revolved around the request coming from
http
and the response was coming fromhttps
. So their solution was to simply run the entire site inhttps
.The support topic did link to two important links. The first is the doc page for X-Frame-Options. The second was some solutions shared by others in a StackOverflow topic.
So, in short, the solution is to make sure your site/server configuration is correct by fixing the host, I believe.
I was able to test this by going to:
http://om.schoolyogainstitute.com/network/alumni-community/alumni-directory/submit/When I submit an entry, it works as expected.
I hope this points you in the right direction!
06/17/2014 at 4:50 pm #294100Hung Tsai
ParticipantSteve
Thank you so much for the quick response and assistance. Yes, it does all make sense and at least I am able to narrow down the fact that it isn’t because of the Form or Connections WP plug-ins, but rather my server config.
We are working on the sub-domain situation this week (long story short on why it was set up under om.schoolyogainstitute.com) and should resolve the error message issue.
I will keep you posted.
Thank you again!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.