[英]Fatal error: Class 'JApplicationHelper' not found in C:\xampp\htdocs\libraries\cms\application\cms.php on line 633
I have gotten the following error when I have tried editing my joomla
page. 尝试编辑joomla
页面时,出现以下错误。 I am still in development mode and have not uploaded it to my site yet. 我仍处于开发模式,尚未将其上传到我的网站。 The error is as follows: 错误如下:
Fatal error: Class 'JApplicationHelper' not found in C:\\xampp\\htdocs\\libraries\\cms\\application\\cms.php on line 633 致命错误:在第633行的C:\\ xampp \\ htdocs \\ libraries \\ cms \\ application \\ cms.php中找不到类'JApplicationHelper'
However, when I go to that line in my code the only code around it is as follows: 但是,当我在代码中转到该行时,周围的唯一代码如下:
/**
* Is admin interface?
*
* @return boolean True if this application is administrator.
*
* @since 3.2
*/
public function isAdmin()
{
return ($this->getClientId() === 1);
}
All of the references in the PHP code to 'JApplicationHelper' are on lines 679-690 and are as follows: PHP代码中对“ JApplicationHelper”的所有引用都在第679-690行中,如下所示:
// Generate a session name.
$name = JApplicationHelper::getHash($this->get('session_name', get_class($this)));
// Calculate the session lifetime.
$lifetime = (($this->get('lifetime')) ? $this->get('lifetime') * 60 : 900);
// Initialize the options for JSession.
$options = array(
'name' => $name,
'expire' => $lifetime
);
Any thoughts? 有什么想法吗?
在类声明之前,请导入JApplicationHelper文件:
jimport('joomla.application.helper');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.