通过在 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"
通过安装新模板找到。
请帮忙!
显然,这是已知的错误。
来源: 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
出现此问题的原因是discover_install()
library\joomla\installer\adapters\template.php 中的函数中缺少函数调用:
$lang = JFactory::getLanguage();
将此行添加到此文件中,东西将正常工作;)
干杯/Dzenan
我正在使用 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
Dzenan 的解决方案对我有用。我加了...
$lang = JFactory::getLanguage();
...到 library\joomla\installer\adapters\template.php 中的第 480 行以及在发现/安装过程中安装的模板。