您的位置:首页 > 移动开发 > Objective-C

Call to member function of non-object: setDebug()

2012-06-02 19:47 381 查看
On line 543 of /libraries/joomla/installer/adapters/template.php there is a call
to the $lang object, but that object doesn't exist. Within the
discover_install() function, there is no call to $lang =
JFactory::getLanguage(). This causes the template install via Discover to fail.
The template partially intalls, but no Style is created, so you can't actually
use the template.

To fix it, just add $lang = JFactory::getLanguage(); to the discover_install()
function on line 503.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  function object
相关文章推荐