GetDotted Domains

Viewing Thread:
"ERROR 500, Problem Running a Script"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Thu 24/05/07 at 18:06
Regular
Posts: 45
Since server upgrade & PHP5 I can't get my Booking/Enquiry form handling script to work & instead of the usual 'Thank you for the enquiry etc' confirmation page, I receive.....

ERROR 500, Problem Running a Script...

A scripting/config error prevents the server from showing this page.

If you are the owner you can find more help at the Freeola Support Centre. or by speaking to a member of our technical support team on: 0871 210 9977

-----

However, I do receive the correctly completed Booking/Enquiry email on testing. I've tried renaming my form with .php5 and the form handling page .php5 but believe I can still keep them as .php ?

I've tried setting permissions to 755 & also tried 644 but no joy.

Part of the script does work ie if you dont supply a tel. no or email address you correctly receive the following....

Not transmitted

Error:
Please supply your Telephone number or Email address!
Click on the BACK button on your browser to return to the form

--

Any ideas as to whats wrong? my form is at http://www.ballifeary.com
Fri 25/05/07 at 12:27
Regular
Posts: 45


Contact Form









 


 







// Apply to other arrays simply by replacing the first argument of the 'foreach()' function with the array name.

foreach($_GET as $a=>$b){$$a=$b;} // $_GET
foreach($_POST as $a=>$b){$$a=$b;} // $_POST
###########################
# Configuration #
#####################################################
$site_name = "Ballifeary.com"; # Put here your Sitename or Company
$site_email = "[email protected]"; # Put here your E-Mail adress
#####################################################


#####################################################
# This below is the Information which will be sent to the customer
#####################################################
if ($Telephone == "" && $email == "")
{
echo "Not transmitted
";
echo "
Error:
Please supply your Telephone number or Email address!
Click on the BACK button on your browser to return to the form";
}
else
{
echo "Enquiry Sent";


#####################################################
# !!!Please do not change anything below this line.
#####################################################
PRINT "";
PRINT "


Thank you for the Enquiry.
You will be contacted by us shortly.

Occasionally problems can arise with email delivery, in particular a delay due to an overload
on the servers caused by a high amount of spam which is beyond our control.

So if you don't receive a reply within 24hrs please contact us on:

Telephone:
+44 (0)1463 792825

Fax:
+44 (0)1463 790402";
PRINT "";


mail("$email", "Thanks from $site_name!","Dear $Gender $Surname\n
Your booking enquiry will be answered within
24hrs. If not, please email $site_email
____________________________________________________________
You Submitted the following information:
Mr/Mrs/Miss: $Gender
First Name: $Forename
Last Name: $Surname
Address:
$Address
Post/Zip Code: $PostCode
Email: $email
Telephone: $Telephone
Facsimile: $Facsimile
Property: $Property
Dates: $FromDay $FromMonth $FromYear To $ToDay $ToMonth $ToYear
Estimated Time of Arrival: $toa
No. of Persons: Adults $Adults Children $Children
Preferred method of Payment: $Payment
Comments:
$Comments
_______________________________________________ _____________","FROM:[email protected]","-f [email protected]");

#######################################################
# This below is the information which will
# be sent to the Administrator
#######################################################
mail("$site_email",
"Booking/Enquiry Form",
"Submitted By: $Forename
____________________________________________________________
Mr/Mrs/Miss: $Gender
First Name: $Forename
Last Name: $Surname
Address:
$Address
Post/Zip Code: $PostCode
Email: $email
Telephone: $Telephone
Facsimile: $Facsimile
Property: $Property
Dates: $FromDay $FromMonth $FromYear To $ToDay $ToMonth $ToYear
Estimated Time of Arrival: $toa
No. of Persons: Adults $Adults Children $Children
Preferred method of Payment: $Payment
Comments:
$Comments
___________________________________________________ _________","FROM:[email protected]","-f [email protected]");
}
?>






Fri 25/05/07 at 11:22
Staff
Posts: 120
The other most likely cause is a .htaccess file, if these are there but are incorrectly setup or have the wrong permissions they can also cause the 500 server error. This can be corrected by either reuploading a correct file or a blank file.
Thu 24/05/07 at 21:35
Staff Moderator
"Aargh! Broken..."
Posts: 1,408
It will more than likely be a permissions problem. If you'd like to post the code in result_form.php5 (if it's not too big!) then perhaps we can work out what is causing this. I just tried the form by filling in the address but not the actual property booking fields and it seemed to work fine.
Thu 24/05/07 at 18:06
Regular
Posts: 45
Since server upgrade & PHP5 I can't get my Booking/Enquiry form handling script to work & instead of the usual 'Thank you for the enquiry etc' confirmation page, I receive.....

ERROR 500, Problem Running a Script...

A scripting/config error prevents the server from showing this page.

If you are the owner you can find more help at the Freeola Support Centre. or by speaking to a member of our technical support team on: 0871 210 9977

-----

However, I do receive the correctly completed Booking/Enquiry email on testing. I've tried renaming my form with .php5 and the form handling page .php5 but believe I can still keep them as .php ?

I've tried setting permissions to 755 & also tried 644 but no joy.

Part of the script does work ie if you dont supply a tel. no or email address you correctly receive the following....

Not transmitted

Error:
Please supply your Telephone number or Email address!
Click on the BACK button on your browser to return to the form

--

Any ideas as to whats wrong? my form is at http://www.ballifeary.com

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Unrivalled services
Freeola has to be one of, if not the best, ISP around as the services they offer seem unrivalled.
Easy and free service!
I think it's fab that you provide an easy-to-follow service, and even better that it's free...!
Cerrie

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.