Fatal error: Class 'JFactory' not found [closed]

早过忘川 提交于 2019-12-13 23:51:52

问题


I am recently start work in Joomla and I have an error please help me

Fatal error: Class 'JFactory' not found in joomla/helpers/system.php on line 48 the line show in 48 row is

$this->application = JFactory::getApplication();

回答1:


Firstly, ensure you have the latest version of the build you're using. So either 1.5.26, 2.5.8, or 3.0.2

Once done, download a fresh copy of Joomla, extract the "includes" and "libraries" folders, and upload these 2 folder (preferably as zip files) via the FTP and extract them.

As a little side note. If you already have, please don't edit any core Joomla files. This can cause all sorts of problems on the security and functionality side of things.




回答2:


I experienced the same issue and I later discovered that factory.php file was missing from "libraries/joomla" directory. I'm not sure how that happened but I replaced the file from an update zip file and that solved it.



来源:https://stackoverflow.com/questions/13643920/fatal-error-class-jfactory-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!