【发布时间】:2014-03-21 20:32:58
【问题描述】:
我在我的 Joomla 网站上安装了票证模块,提交票证时出现以下错误
致命错误:在第 300 行调用 /home/xboxfifa/public_html/HD/components/com_jtaghelpdesk/controller.php 中未定义的方法 JRegistry::getValue()
function mailme($formData){
$version = new JVersion();
$body = "A new inquiry has been recieved: <br /> Name : ". $formData['inqName']. "<br /> Email ID : ". $formData['inqEmail']. "<br/> Message : ".$formData['inqMessage'] ;
$mailer =& JFactory::getMailer();
$config =& JFactory::getConfig();
if($version->RELEASE==3.0)
{
$recipient = array(
$config->get('mailfrom'),
$config->get('fromname'));
}else
{
$recipient = array(
$config->getValue( 'config.mailfrom' ),
$config->getValue( 'config.fromname' ));
}
$mailer->addRecipient($recipient);
$subject=$formData['inqSubject'];
$mailer->setSubject($subject);
$mailer->isHTML(true);
$mailer->Encoding = 'base64';
$mailer->setBody($body);
$send =& $mailer->Send();
if ( $send !==true )
{ $msg = 'Reply not Sent!';
} else
{
$msg = 'Reply Sent Successfully!';
}
}
如果有人可以帮助我,我将不胜感激。
【问题讨论】:
-
你用的是什么版本的 Joonla?