Then, today, a user reported that they got some kind of error when trying to use the Contact Us form. So tonight I tried it. It is, in fact, now broken.
I can pick any contact and fill out the form to send an email. When Send is clicked a box pops up stating "Please make sure the form is complete and valid."
Following this string into the code I come to this snippet in in /componets/com_contact/contact.html.php (* @version $Id: contact.html.php 4157 2006-07-02 17:58:51Z stingrey $):
Code: Select all
<script language="JavaScript" type="text/javascript">
<!--
function validate(){
if ( ( document.emailForm.text.value == "" ) || ( document.emailForm.email.value.search("@") == -1 ) || ( document.emailForm.email.value.search("[.*]" ) == -1 ) ) {
alert( "<?php echo _CONTACT_FORM_NC; ?>" );
} else if ( ( document.emailForm.email.value.search(";") != -1 ) || ( document.emailForm.email.value.search(",") != -1 ) || ( document.emailForm.email.value.search(" ") != -1 ) ) {
alert( "<?php echo _CONTACT_ONE_EMAIL; ?>" );
} else {
document.emailForm.action = "<?php echo sefRelToAbs("index.php?option=com_contact&Itemid=$Itemid"); ?>"
document.emailForm.submit();
}
}
//-->
</script>
Why is it failing suddenly? How do I track this down?
I thought that maybe I should update the entire site with the Joomla_1.0.10-Stable-Full_Package, overwritting any cruft from the version to version updates over the past couple of years. I don't know how dangerous such a thing would be.
The contacts MUST work for this site. It is a primary means of communication from visitors to the site. All help is appreciated.