Internal Server Error.. Plz Help Me..

LayPyae

New Member
Messages
3
Reaction score
0
Points
0
Message Like That....



Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@laypyae.x10hosting.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.
Apache/1.3.39 Server at laypyae.x10hosting.com Port 80
 

lionheart8

New Member
Messages
177
Reaction score
0
Points
0
No idea what may be up there, or what u have in your public_html ...
Had u uploaded files of a complete site there & it still shows u that or where starting from scratch?
In the latter case try to delete all files in public_html and replace them with a simple html file u call index.html & see if u can view it.
If u can, then the deleted files where faulty.
If u have previously functioning site files there, download a back-up first b4 doing what I suggest above to establish if the fault was coming from something faulty in your uploaded files ...
 
Last edited:

welchybo

New Member
Messages
4
Reaction score
0
Points
0
Internal error while submitting php form

Does anyone know why i am getting an internal error while submitting a feedback php form. The error is
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@wpcconsulting.pcriot.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.
Apache/1.3.39 Server at wpcconsulting.pcriot.com Port 80

Please help...It is probably a simple error i am just very new at php and actually i didnt create this i used a php form generator. Thanks
 

supajason

Member
Messages
288
Reaction score
2
Points
18
Please upload the source code so i can have a look and what you are trying to do?

jason
 

welchybo

New Member
Messages
4
Reaction score
0
Points
0
Thanks for your fast reply. The page the error keeps referring too is processor.php the source code of that is
<?php

$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

mail("jesse@wpcconsulting.pcriot.com","phpFormGenerator - Form submission","Form data:

Name: " . $_POST['field_1'] . "
E-Mail: " . $_POST['field_2'] . "
Date: " . $_POST['field_3'] . "
Website: " . $_POST['field_4'] . "
State: " . $_POST['field_5'] . "
Feedback/Comments: " . $_POST['field_6'] . "


powered by phpFormGenerator.
");

include("confirm.html");

?>






HOWEVER this is another thing that came along with that file. It is the install.php



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Feedback - created by phpFormGenerator</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="style.css" rel="stylesheet" type="text/css">
<!-- calendar stuff -->
<link rel="stylesheet" type="text/css" href="calendar/calendar-blue2.css" />
<script type="text/javascript" src="calendar/calendar.js"></script>
<script type="text/javascript" src="calendar/calendar-en.js"></script>
<script type="text/javascript" src="calendar/calendar-setup.js"></script>
<!-- END calendar stuff -->

<!-- expand/collapse function -->
<SCRIPT type=text/javascript>
<!--
function collapseElem(obj)
{
var el = document.getElementById(obj);
el.style.display = 'none';
}


function expandElem(obj)
{
var el = document.getElementById(obj);
el.style.display = '';
}


//-->
</SCRIPT>
<!-- expand/collapse function -->


<!-- expand/collapse function -->
<SCRIPT type=text/javascript>
<!--

// collapse all elements, except the first one
function collapseAll()
{
var numFormPages = 1;

for(i=2; i <= numFormPages; i++)
{
currPageId = ('mainForm_' + i);
collapseElem(currPageId);
}
}


//-->
</SCRIPT>
<!-- expand/collapse function -->


<!-- validate -->
<SCRIPT type=text/javascript>
<!--
function validateField(fieldId, fieldBoxId, fieldType, required)
{
fieldBox = document.getElementById(fieldBoxId);
fieldObj = document.getElementById(fieldId);

if(fieldType == 'text' || fieldType == 'textarea' || fieldType == 'password' || fieldType == 'file' || fieldType == 'phone' || fieldType == 'website')
{
if(required == 1 && fieldObj.value == '')
{
fieldObj.setAttribute("class","mainFormError");
fieldObj.setAttribute("className","mainFormError");
fieldObj.focus();
return false;
}

}


else if(fieldType == 'menu' || fieldType == 'country' || fieldType == 'state')
{
if(required == 1 && fieldObj.selectedIndex == 0)
{
fieldObj.setAttribute("class","mainFormError");
fieldObj.setAttribute("className","mainFormError");
fieldObj.focus();
return false;
}

}


else if(fieldType == 'email')
{
if((required == 1 && fieldObj.value=='') || (fieldObj.value!='' && !validate_email(fieldObj.value)))
{
fieldObj.setAttribute("class","mainFormError");
fieldObj.setAttribute("className","mainFormError");
fieldObj.focus();
return false;
}

}



}

function validate_email(emailStr)
{
apos=emailStr.indexOf("@");
dotpos=emailStr.lastIndexOf(".");

if (apos<1||dotpos-apos<2)
{
return false;
}
else
{
return true;
}
}


function validateDate(fieldId, fieldBoxId, fieldType, required, minDateStr, maxDateStr)
{
retValue = true;

fieldBox = document.getElementById(fieldBoxId);
fieldObj = document.getElementById(fieldId);
dateStr = fieldObj.value;


if(required == 0 && dateStr == '')
{
return true;
}


if(dateStr.charAt(2) != '/' || dateStr.charAt(5) != '/' || dateStr.length != 10)
{
retValue = false;
}

else // format's okay; check max, min
{
currDays = parseInt(dateStr.substr(0,2),10) + parseInt(dateStr.substr(3,2),10)*30 + parseInt(dateStr.substr(6,4),10)*365;
//alert(currDays);

if(maxDateStr != '')
{
maxDays = parseInt(maxDateStr.substr(0,2),10) + parseInt(maxDateStr.substr(3,2),10)*30 + parseInt(maxDateStr.substr(6,4),10)*365;
//alert(maxDays);
if(currDays > maxDays)
retValue = false;
}

if(minDateStr != '')
{
minDays = parseInt(minDateStr.substr(0,2),10) + parseInt(minDateStr.substr(3,2),10)*30 + parseInt(minDateStr.substr(6,4),10)*365;
//alert(minDays);
if(currDays < minDays)
retValue = false;
}
}

if(retValue == false)
{
fieldObj.setAttribute("class","mainFormError");
fieldObj.setAttribute("className","mainFormError");
fieldObj.focus();
return false;
}
}
//-->
</SCRIPT>
<!-- end validate -->




</head>

<body onLoad="collapseAll()">

<div id="mainForm">




<div id="formHeader">
<h2 class="formInfo">Feedback</h2>
<p class="formInfo"></p>
</div>


<BR/><div id="footer"><p class="footer"><a class=footer href=http://phpformgen.sourceforge.net>Generated by phpFormGenerator</a></p></div>

</body>
</html>


hopefully this is what you wanted me to upload.





Thanks again
 

Sohail

Active Member
Messages
3,055
Reaction score
0
Points
36
I have been having the same problem lately. I can't install modules in Joomla because an internal server error had occured. I believe it's because PHP safe mode has been enabled on the server. I still don't know how to solve this problem but maybe if you were to PM Corey then he might disable it for you.
 
Top