2012-04-11 55 views
3

發現"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中發現安裝新模板。joomla2.5.4新模板安裝

請幫忙!

回答

2

這個問題是因爲缺少函數調用的函數discover_install()在 圖書館\的Joomla \安裝\適配器\的template.php: $lang = JFactory::getLanguage();

添加此行到這個文件和東西將工作;)

乾杯 /Dzenan

+0

503線有興趣的人。 – 2012-05-09 09:37:14

1

Dzenan的解決方案爲我工作。我說...

$lang = JFactory::getLanguage(); 

...到第480行圖書館\的Joomla \安裝\適配器\ template.php文件,並在發現/安裝過程中安裝的模板。

+0

根據這裏http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=28345它是行503。 – 2012-05-09 09:36:58

1

我使用Joomla 2.5.4,並根據Stu I提到的錯誤跟蹤器。

$lang = JFactory::getLanguage(); 

但我把它添加到功能出發,對文件

庫\的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); 

這工作就像一個魅力的503線。 感謝斯圖& Dzenan

問題追蹤鏈接 http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=28345