【问题标题】:joomla2.5.4 new template installationjoomla2.5.4新模板安装
【发布时间】: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 joomla-template


    【解决方案1】:

    我正在使用 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

    错误跟踪链接 http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=28345

    【讨论】:

      【解决方案2】:

      Dzenan 的解决方案对我有用。我加了...

      $lang = JFactory::getLanguage();
      

      ...到 library\joomla\installer\adapters\template.php 中的第 480 行,以及在发现/安装过程中安装的模板。

      【讨论】:

      【解决方案3】:

      这个问题的出现是因为在函数discover_install()中缺少函数调用 库\joomla\安装程序\适配器\template.php: $lang = JFactory::getLanguage();

      将这一行添加到这个文件中,东西就可以工作了;)

      干杯 /泽南

      【讨论】:

      • 第 503 行适用于任何感兴趣的人。
      【解决方案4】:
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-08-01
      • 1970-01-01
      • 2015-10-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多