我正在使用 Joomla 3.0,但由于一个小问题,此时我无法使用组件。
这是错误,我可以通过将 Legacy 添加到类中轻松解决的所有其他错误,就像JView
这样JViewLegacy
但是对于下面的错误,我找不到解决方案:
任何帮助都会很棒!
错误:
Fatal error: Call to a member function getParams() on a non-object in
/var/www/g35003/mywebsite.nl/HTML/administrator/components/
com_taxonomy/taxonomy.php on line 16
代码行 16 被标记。
defined( '_JEXEC' ) or die( 'Restricted access' );
global $mainframe;
$params = $app->getParams(); /** <-- Line 16 */
require_once (JPATH_COMPONENT.DS.'controller.php');
$controller = new TaxonomyController();
$controller->execute(JRequest::getCmd('task'));
$controller->redirect();