Posts: 3
Threads: 1
Joined: Mar 2010
Reputation:
0
Hello! I am trying to set up a form that has three pages:
- http://healthyschoolscampaign.org/event/...pply-1.php
- http://healthyschoolscampaign.org/event/...pply-2.php
- http://healthyschoolscampaign.org/event/...pply-3.php
and a thank-you page:
http://healthyschoolscampaign.org/event/...thanks.php
Right now, I am able to add content on all three pages and proceed to the next page. But when I click "submit" at the end of page 3, the page goes blank rather than taking me to a thank you page. (The URL stays the same.) And of course the content is not submitted.
I really appreciate any thoughts on what may be going wrong.
Thanks very much!
Posts: 63
Threads: 9
Joined: Nov 2009
Reputation:
0
Hi,
Can you confirm what you've done with FormTools so far? Just glancing at the first page I thought I saw a reference to a different form processor?
(Mar 22nd, 2010, 2:20 PM)tara Wrote: Hello! I am trying to set up a form that has three pages:
- http://healthyschoolscampaign.org/event/...pply-1.php
- http://healthyschoolscampaign.org/event/...pply-2.php
- http://healthyschoolscampaign.org/event/...pply-3.php
and a thank-you page:
http://healthyschoolscampaign.org/event/...thanks.php
Right now, I am able to add content on all three pages and proceed to the next page. But when I click "submit" at the end of page 3, the page goes blank rather than taking me to a thank you page. (The URL stays the same.) And of course the content is not submitted.
I really appreciate any thoughts on what may be going wrong.
Thanks very much!
Posts: 3
Threads: 1
Joined: Mar 2010
Reputation:
0
Sure...
There are three or four forms on the page, but there is only one using FormTools, specifically the API.
On the top of the page 1, my code reads:
PHP Code: <?php require_once("/home/ZZZZZZ/forms2/global/api/api.php"); $fields = ft_api_init_form_page(1); $params = array( "submit_button" => "Submit", "next_page" => "hs-apply-2.php", "form_data" => $_POST, "file_data" => $_FILES );
And the form post is:
PHP Code: <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
What seems to happen is that I can submit the first three pages, then rather then getting to the thank you page, I get stuck in a blank screen.
The third page code reads:
PHP Code: <?php require_once("/home/ZZZZZZ/forms2/global/api/api.php"); $fields = ft_api_init_form_page(1); $params = array( "submit_button" => "Submit", "next_page" => "thanks.php", "form_data" => $_POST, "no_sessions_url" => "hs-apply-1.php", "finalize" => true, "file_data" => $_FILES ); ft_api_process_form($params); ?>
And the form processor tag reads:
PHP Code: <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
Does this help? Anything else you need?
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hey Tara,
What you posted looks pretty good. Do you have any email templates configured for the form? If so, try disabling them temporarily and re-submit the form.
Secondly, try adding the following line to your /global/config.php file:
PHP Code: $g_default_error_reporting = 2047;
That (sometimes) will display some nice juicy errors for us to mull over.
- Ben
Posts: 3
Threads: 1
Joined: Mar 2010
Reputation:
0
Mar 23rd, 2010, 11:06 AM
(This post was last modified: Mar 23rd, 2010, 12:02 PM by tara.)
Thanks. We don't have any email templates set in the tool. We did add the error reporting you suggested, and got this:
After we submitted our form on this page http://healthyschoolscampaign.org/event/...pply-2.php the following page showed:
PHP Code: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/healthys/public_html/event/cookingupchange/2010/hs-apply-3.php:1) in /home/.../a/forms2/global/api/api.php on line 1555
Warning: Cannot modify header information - headers already sent by (output started at /home/healthys/public_html/event/cookingupchange/2010/hs-apply-3.php:1) in /home/.../a/forms2/global/api/api.php on line 1556
Warning: Cannot modify header information - headers already sent by (output started at /home/healthys/public_html/event/cookingupchange/2010/hs-apply-3.php:1) in /home/.../a/forms2/global/api/api.php on line 1557
Then when submitting http://healthyschoolscampaign.org/event/...pply-3.php we got this error:
PHP Code: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/healthys/public_html/event/cookingupchange/2010/hs-apply-3.php:1) in /home/.../a/forms2/global/api/api.php on line 1555
Warning: Cannot modify header information - headers already sent by (output started at /home/healthys/public_html/event/cookingupchange/2010/hs-apply-3.php:1) in /home/.../a/forms2/global/api/api.php on line 1556
Warning: Cannot modify header information - headers already sent by (output started at /home/healthys/public_html/event/cookingupchange/2010/hs-apply-3.php:1) in /home/.../a/forms2/global/api/api.php on line 1557
Warning: Cannot modify header information - headers already sent by (output started at /home/healthys/public_html/event/cookingupchange/2010/hs-apply-3.php:1) in /home/.../a/forms2/global/api/api.php on line 861
Thanks for your help!
Hi -- another quick update.
The form now seems to be working! We're not exactly sure why, but it seems to be submitting fairly consistently. The only problem we're encountering in completing the submission is an occasional error referencing "class = smarty," though that has been occasional. (Next time it happens, I'll copy the specific language describing the error.)
The more significant problem is that the files submitted through the form are not uploading. When we click "view" in the forms tool and look at the submitted information, the files are listed with the correct file name and appear to be linked to the proper folder. But when we look in the folder, they aren't there.
I appreciate any ideas or suggestions!
Thanks again --
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hey Tara,
Huh...! I hate it when things just start working without knowing why... But I'm glad it's working at least.
btw, I'd suggest removing that $g_default_error_reporting line now.
Regarding the file upload, I MUST write a tutorial for debugging problems with them. Mental note.
First step is to try uploading a file via the Form Tools admin interface. Does that work?
- Ben
Posts: 3
Threads: 1
Joined: Apr 2010
Reputation:
0
(Mar 27th, 2010, 10:57 AM)Ben Wrote: Hey Tara,
Huh...! I hate it when things just start working without knowing why... But I'm glad it's working at least.
btw, I'd suggest removing that $g_default_error_reporting line now.
Regarding the file upload, I MUST write a tutorial for debugging problems with them. Mental note.
First step is to try uploading a file via the Form Tools admin interface. Does that work?
- Ben
Hello Ben,
I have the same problem with getting the upload to work properly.
I am able to upload the file via the Form Tools admin interface.
After I submitted my form, I checked the database and all the fields are filled in correctly except the "file" field. It remains empty even though I've already specified a file when I submit my form.
What should I do?
Thanks in advance,
Renold
Posts: 5
Threads: 1
Joined: Jan 2011
Reputation:
0
I am having the same problem with regards to the blank page after form submission. I DID have an email template set up, but I removed it and still got a blank page after submission. Then I tried inserting that error message debugger thinggy that you mentioned and then when I submitted my form I got this:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/k/r/e/kreativ1/html/1TESTING/great_race_app2.php:6) in /home/content/k/r/e/kreativ1/html/1TESTING/formtools/global/api/api.php on line 1571
Warning: Cannot modify header information - headers already sent by (output started at /home/content/k/r/e/kreativ1/html/1TESTING/great_race_app2.php:6) in /home/content/k/r/e/kreativ1/html/1TESTING/formtools/global/api/api.php on line 1572
Warning: Cannot modify header information - headers already sent by (output started at /home/content/k/r/e/kreativ1/html/1TESTING/great_race_app2.php:6) in /home/content/k/r/e/kreativ1/html/1TESTING/formtools/global/api/api.php on line 1573
Warning: Cannot modify header information - headers already sent by (output started at /home/content/k/r/e/kreativ1/html/1TESTING/great_race_app2.php:6) in /home/content/k/r/e/kreativ1/html/1TESTING/formtools/global/api/api.php on line 865
Any idea what I need to modify?
It DOES seem to be accepting the data and storing it because I can access it via the interface... but I don't get my "thank you" page coming up...
Any help would be GREATLY appreciated as I am working on a huge project right now with a looming deadline. :-0 Help?
Thanks so much!
Posts: 5
Threads: 1
Joined: Jan 2011
Reputation:
0
Oh, and I guess I should mention that I am using the latest and greatest version of Form Tools... I clicked on update and it told me that there were no newer versions available... so I have to assume I am running the latest version. (2.0.4?)
Anyone? I am getting desperate. I spent hours on this last night and I am by no means a "programmer..." (though I am trying to learn what I can in order to make a good impression on my client so they will maybe hire me permanently for the position...)
|