3

Found "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" through the installation of a new template via discovering in joomla 2.5.4.

Please help!

Chuck Norris
  • 15,207
  • 15
  • 92
  • 123
Max Elahov
  • 221
  • 4
  • 9

4 Answers4

2

This problem arises because of missing function call in function discover_install() in libraries\joomla\installer\adapters\template.php: $lang = JFactory::getLanguage();

Add this line to this file and stuff will be working ;)

Cheers /Dzenan

1

Dzenan's solution worked for me. I added...

$lang = JFactory::getLanguage();

...to line 480 in libraries\joomla\installer\adapters\template.php and the template installed during the discover/install process.

Stu Thompson
  • 38,370
  • 19
  • 110
  • 156
erichf
  • 11
  • 1
  • According to here http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=28345 it is line 503. – Anriëtte Myburgh May 09 '12 at 09:36
1

I'm using Joomla 2.5.4 and as per the bug tracker mentioned by Stu I added.

$lang = JFactory::getLanguage();

But I added it to the function starting on line 503 of the file

libraries\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);

This worked like a charm. Thanks Stu & Dzenan

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

CoalaWeb
  • 349
  • 1
  • 5
  • 15