500 error [BIG PROBLEM!] |
500 error [BIG PROBLEM!] |
Hizxi |
Mar 18 2008, 11:07 AM
Post
#1
|
Group: Members Posts: 4 Joined: 18-March 08 Member No.: 5,228 |
Hello!
You can move this tpoic, if i put it wrong place. Well, i have a gib problem with 500 Internal Server Error. It says this: CODE Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@maplefinland.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Okay, now i'll give my codes on my webisite: First, my HTML Code: CODE <center><form action="event.php"> <b>Hahmosi nimi:</b><br> <INPUT type="text" name="nimi" STYLE="color: #000000; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #D3E8F3;" size="17" maxlength="30"><br><br> <b>Sähköpostiosoitteesi:</b><br> <INPUT type="text" name="email" STYLE="color: #000000; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #D3E8F3;" size="17" maxlength="30"><br><br> <b>Linkki videoosi YouTubessa:</b><br> <INPUT type="text" name="video" STYLE="color: #000000; font-family: Verdana; font-weight: bold; font-size: 12px; background-color: #D3E8F3;" size="17" maxlength="30"><br><br> <input type="submit" value="ROCK ON!"></form></center> Then my "event.php" -Code: CODE <?php $to_addr = "MY E-MAIL"; $subject = "Videokilpailu"; $msg = "Kotisivujen kautta on lähetetty seuraava videokilpailu.\n"; $msg .="\n"; $msg .="Ilmoittajan nimi: " . $_REQUEST["nimi"] ."\n"; $msg .=" e-mail: " . $_REQUEST["email"] . "\n"; $msg .=" YouTube: " . $_REQUEST["video"] . "\n"; $msg .="\n"; $msg .="------------------------------------------------------------------------------\n"; $msg .="Lähettäjän IP-osoite: " . $_SERVER["REMOTE_ADDR"] . "\n"; $msg .="Selain: " . $_SERVER["HTTP_USER_AGENT"] . "\n"; if (mail($to_addr, $subject, $msg)) { header ("Location: viestix.html"); } else { # Tähän ilmoitukset, jossa kerrotaan ettei onnistunut } ?> Hope i get help fast, this is so important. And sorry for those texts in the codes, it's finnish Thank you! |
Brian Chandler |
Mar 18 2008, 01:01 PM
Post
#2
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
QUOTE And sorry for those texts in the codes, it's finnish Why do you apologise? I mean, I can see it's Finnish, actually (except it might just be Estonian), even though I can't understand a word. It makes no difference to the program. Anyway, 500 means that for some reason or other your program (php) did not run, or failed in some way. You have to sort out why not, which involves checking your hosting documentation, testing with a "Hello World" program, and so on, until you find the problem. Nobody can just look at snippets of code and tell you. (Oh, there's plenty of little things that need correction - like the <Form...> doesn't have POST or GET specified...) |
Hizxi |
Mar 19 2008, 06:25 AM
Post
#3
|
Group: Members Posts: 4 Joined: 18-March 08 Member No.: 5,228 |
Okay...
Well, I forgot to tell that I have one php script (same as this) that works. It looks exactly same as this, but it works and this doesn't. But I try to make this work, if I have more questions, I will ask. Thank you. |
Brian Chandler |
Mar 19 2008, 07:23 AM
Post
#4
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
Okay... Well, I forgot to tell that I have one php script (same as this) that works. It looks exactly same as this, but it works and this doesn't. But I try to make this work, if I have more questions, I will ask. Thank you. At one stage, my hosting service (pair.com) had php configured so there was a 500 error if the program could not be found. You might recheck that you have the program name exactly correct (myprog.php vs Myprog.php and similar). HTH |
Hizxi |
Mar 19 2008, 10:45 AM
Post
#5
|
Group: Members Posts: 4 Joined: 18-March 08 Member No.: 5,228 |
Okay... Well, I forgot to tell that I have one php script (same as this) that works. It looks exactly same as this, but it works and this doesn't. But I try to make this work, if I have more questions, I will ask. Thank you. At one stage, my hosting service (pair.com) had php configured so there was a 500 error if the program could not be found. You might recheck that you have the program name exactly correct (myprog.php vs Myprog.php and similar). HTH Well, i have copied the name "event.php". It cannot be wrong. But anyway, I asked my host about this problem. I'm waiting for the answer... |
Hizxi |
Mar 24 2008, 01:03 PM
Post
#6
|
Group: Members Posts: 4 Joined: 18-March 08 Member No.: 5,228 |
Okay, this problem have been repaired. The reason was chmod.
Thank you anyway. |
Lo-Fi Version | Time is now: 18th April 2024 - 11:00 PM |