【发布时间】:2012-04-24 05:35:26
【问题描述】:
通过在 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"。
请帮忙!
【问题讨论】:
通过在 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"。
请帮忙!
【问题讨论】:
我正在使用 Joomla 2.5.4,并根据我添加的 Stu 提到的错误跟踪器。
$lang = JFactory::getLanguage();
但我将它添加到从文件第 503 行开始的函数中
库\joomla\installer\adapters\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
【讨论】:
Dzenan 的解决方案对我有用。我加了...
$lang = JFactory::getLanguage();
...到 library\joomla\installer\adapters\template.php 中的第 480 行,以及在发现/安装过程中安装的模板。
【讨论】:
这个问题的出现是因为在函数discover_install()中缺少函数调用
库\joomla\安装程序\适配器\template.php:
$lang = JFactory::getLanguage();
将这一行添加到这个文件中,东西就可以工作了;)
干杯 /泽南
【讨论】: