Joomla2.5.4 new installation template

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 installing a new template through discovery in joomla 2.5.4.

Please, help!

+3
source share
4 answers

This problem occurs due to the lack of a function call in the function discover_install()in the \ Joomla \ Installer \ adapters \ template.php libraries: $lang = JFactory::getLanguage();

Add this line to this file and everything will work;)

Cheers / Dzenan

+2
source

. ...

$lang = JFactory::getLanguage();

... 480 \joomla\installer\adapters\template.php , /.

+1

Joomla 2.5.4 , Stu I.

$lang = JFactory::getLanguage();

But I added it to the function starting at 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);

It worked like a charm. Thanks Stu and Dzenan

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

+1
source

All Articles