"Fatal error: Class 'JMailHelper' not found in (MYSITE)/public/components/com_contact/controller.php on line 118"
This occurs when trying to submit an email contact form on the front end.
Lines 113-123 look like:
Code: Select all
/*
* If there is no valid email address or message body then we throw an
* error and return false.
*/
jimport('joomla.mail.helper');
if (!$email || !$body || (JMailHelper::isEmailAddress($email) == false))
{
$this->setError(JText::_('CONTACT_FORM_NC'));
$this->display();
return false;
}
"Fatal error: Undefined class name 'jmailhelper' (MYSITE)/public/libraries/joomla/database/table/user.php on line 157"
This occurs when trying to modify user settings in the back end. (editor or any other settings)
Line 157-159 looks like:
Code: Select all
if ((trim($this->email) == "") || ! JMailHelper::isEmailAddress($this->email) ) {
$this->setError( JText::_( 'WARNREG_MAIL' ) );
return false;
}
Any ideas?
Just checked my PHP version and I guess the Hosting Co. Changed it to PHP5. I Changed to PHP4 temporarily to see if this resolved the issue and it did not.