Posts: 17
Threads: 8
Joined: Sep 2010
Reputation:
0
For some reason, I am getting an Internal Server Error after a form submission is made. The submission IS received, saved in the database and related email messages do go out to the recipients (site owner and form user). What fails is that the redirection to a "thank you" page is not happening. The browser just returns the Internal Server Error screen.
I have updated my install of Form Tools to version 2.2.1 and also updated all modules to their most recent versions as well.
My form is external. I have three forms in my Form Tools admin, each of these forms is hosted on their own server/domain. Two of the three are working fine with redirection and all. Just this one is failing.
Any ideas where I should look for the problem/solution?
Thank you,
Gary
Posts: 143
Threads: 19
Joined: Dec 2010
Reputation:
5
Are you using the API (PHP)? If so, can you post your PHP code? Make sure you use the PHP brackets.
If two of three are working correctly, I would look for a misspelling or missing character in the PHP. Are you certain the thank you page you are trying to redirect to is published? Can you get to it in your browser by typing it in manually?[/php]
Not a FT employee, just a FT user lending a hand. If I've been helpful, please rate.
Posts: 17
Threads: 8
Joined: Sep 2010
Reputation:
0
My form is pointed to the process.php script on my server.
Setup is... Form located at myclientwebsite.com/form.html, submissions are sent to myownwebsite.com/formtools/process.php, redirect page is at myclientwebsite.com/thank-you.html
I have double checked that the thank-you.html page is published and I have triple-checked that it is correctly configured in Form Tools. Using the "Verify URL" button in the main form editing screen confirms this as well.
I think my next step is going to have to be removing the form from Form Tools and adding it once again.
It is just weird that the other forms are working nicely and this one fails to redirect.
Posts: 17
Threads: 8
Joined: Sep 2010
Reputation:
0
This is the same setup as one of the other two forms. My other two forms (which both work fine) are configured as follows:
Functional form #1 - form on web1.com, submissions directed to web2.com, redirect to web1.com/thankyou.html
Functional form #2 - form on web2.com, submissions directed to web2.com, redirect to web2.com/thankyou.html
So... now back to the form where my redirection is failing.
I disabled my form in Form Tools and then added a new form (the same form I had disabled). Just so I could get the form setup again without harassing my client with test submissions, I did not configure any email notifications immediately. I tested the form and it worked fine, submission was made, recorded in database and redirection worked fine. Yay!
However... when I configured an email notification AND enabled it, the redirection again fails... :-(
If I disable the email notification, the submission and redirection again work as expected.
Still testing all of this to try and run down the source of the problem. Very odd since one of my other forms (Functional form #1) has this very configuration and works fine.
Posts: 17
Threads: 8
Joined: Sep 2010
Reputation:
0
Problem solved. michatmaster7 you were right thinking it could be just one single character causing the trouble. However I would not have guessed where that one character might be until spending way too much time on sleuthing and troubleshooting.
Noting that things seemed to work fine when the email notifications were disabled and that email notifications are working smoothly on other forms in the system, I focused on those email notifications. That is where it seems the trouble was coming from.
In one of the email configurations I found that I had defined the "Name" for a custom recipient as "Company Name, Inc.". I believe it is the comma in that name which was causing this trouble. After trying a number of other things that didn't help at all I finally tried removing the comma in that name making it "Company Name Inc.". From that point on everything has worked perfectly.
I believe using a comma in the Name field when defining a custom recipient causes some sort of problem. Like the system sees it as a separator between multiple entries or something. I don't understand it except to say that once that comma was removed everything started moving smoothly. I hope this might help others.