3

通过在 joomla 2.5.4 中发现"Fatal error: Call to a member function setDebug() on a non-object in Z:\home\xxx\www\libraries\joomla\installer\adapters\template.php on line 543"通过安装新模板找到。

请帮忙!

4

4 回答 4

5

显然,这是已知的错误。

来源: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id= 28345

http://forum.joomla.org/viewtopic.php?f=619&t=708286#p2784057

于 2012-04-11T21:12:03.733 回答
2

出现此问题的原因是discover_install()library\joomla\installer\adapters\template.php 中的函数中缺少函数调用: $lang = JFactory::getLanguage();

将此行添加到此文件中,东西将正常工作;)

干杯/Dzenan

于 2012-04-12T17:13:29.967 回答
1

我正在使用 Joomla 2.5.4,并根据我添加的 Stu 提到的错误跟踪器。

$lang = JFactory::getLanguage();

但我将它添加到从文件第 503 行开始的函数中

库\joomla\安装程序\适配器\template.php

public function discover_install()
    {
        // Templates are one of the easiest
        // If its not in the extensions table we just add it
        $lang = JFactory::getLanguage();
        $client = JApplicationHelper::getClientInfo($this->parent->extension->client_id);

这就像一个魅力。谢谢 Stu & Dzenan

错误跟踪链接 http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=28345

于 2012-06-16T09:33:38.660 回答
1

Dzenan 的解决方案对我有用。我加了...

$lang = JFactory::getLanguage();

...到 library\joomla\installer\adapters\template.php 中的第 480 行以及在发现/安装过程中安装的模板。

于 2012-04-24T13:37:34.763 回答