Email Form not Working

Hello,
The form located in the example link is not working properly and I’m at a loss as to what the problem is. After it’s filled in and the ‘Send’ button is clicked, the user is brought to a blank page at the following URL: Welcome opccakes.com - Hostmonster.com and not to the ‘Thank You’ page.

This one has me stumped and any help provided in helping me solve this will be greatly appreciated! Thanks!

http://www.opccakes.com/contactus.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

A blank page at that stage means there is a PHP error that is stopping the progress of the script, and your server is (properly) configured to not show errors. You can find out what that error is by opening up the copy of the -go file on your server (use Transmit or another SFTP application for this) and adding two lines of code, directly underneath the opening <?php marker:

ini_set('display_errors', true);
error_reporting(E_ALL);

With those two lines, the entire error will be written out to the screen when you fill out the form. Do that once, copy the error and save it for dissection, then disable those two lines with a leading // comment, so they read like this:

// ini_set('display_errors', true);
// error_reporting(E_ALL);

Save that file again. Don’t leave it with your errors hanging out, that’s like dropping your pants in the middle of the high street. Make sure that nothing personal is showing in the errors, then paste them here (or better, at Gist or Pastie, so we don’t get any issues with the formatter here, and so you can take them down again later (posts here are forever, links within them, not so much).

Tim (who wrote the script) or I will no doubt be able to tell more about what’s going on by looking at those errors.

Walter

On Mar 14, 2013, at 8:35 AM, GregB wrote:

Hello,
The form located in the example link is not working properly and I’m at a loss as to what the problem is. After it’s filled in and the ‘Send’ button is clicked, the user is brought to a blank page at the following URL: Welcome opccakes.com - Hostmonster.com and not to the ‘Thank You’ page.

This one has me stumped and any help provided in helping me solve this will be greatly appreciated! Thanks!

Welcome opccakes.com - Hostmonster.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,
What program can I use to edit the .php file? I tried making the changes using TextWrangler; however, it didn’t seem to work.

P.S. I’m using Google Chrome as my browser (not sure if that matters).

Thanks!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I tried making the changes using TextWrangler; however, it didn’t seem to work.

TextWrangler is fine for this but how are you uploading after you have made the changes as FW will overwrite any changes you have made when you Publish.

Use an FTP app to upload a changed version to replace the one on the server.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Dave,
Still can’t get it to work. Yes, I am downloading and uploading with an FTP app (FileZilla). I put the 1st few lines of the text here: http://pastie.org/private/0b5yijfsaiyp88fqutgyg

Thank you.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Are you sure that PHP is enabled on your hosting account?

Here is something else to try.

Create a plain text file and give it a spurious name gzusiurgdfy.php

Put the following code into it

<?php

phpinfo();

?>

Upload the file and visit the page in your browser ie www.yoursite.com/gzusiurgdfy.php

See what you get

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I get a bunch of tables. Probably best not to post them all here. So, here’s a link:

http://www.opccakes.com/gzusiurgdfy.php


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK - take it down.

It is a security risk providing a link to this so remove the page asap.

Good news is that PHP is certainly enabled OK.

Bad news is that error checking would help and I can’t understand why adding the code to your sendform file doesn’t show the errors.

Time to call your hosting support I guess.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hello Dave and Walter,
Looks like the problem may have been caused by using FileZilla as the ftp program. Here’s an article that discusses it: http://stackoverflow.com/questions/4547516/filezilla-removes-line-breaks-on-php-files.

Once the line breaks were added back into the php file, it was working as expected!

Thanks again for your help!

Greg


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Looks like the problem may have been caused by using FileZilla as the ftp program.

If for some reason you dont want to use FW’s built in FTP then I would recommend Transmit from https://www.panic.com/ - not Free but a 1st Class App you will not regret spending $34 on.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options