Joomla 2.5.28。错误500 JHtml ::不支持的行为。文件未找到

时间:2015-03-20 10:55:23

标签: php jquery joomla

我在Joomla 2.5.28网站上使用搜索组件(Offlajn Universal AJAX实时搜索)。搜索单词时,出现错误:

Error 500 JHtml: :behavior not supported. File not found.

这是我从调试中得到的信息。

Call stack
#   Function    Location
1   JSite->dispatch()   /home/mysite/public_html/index.php:42
2   JComponentHelper::renderComponent() /home/mysite/public_html/includes/application.php:194
3   JComponentHelper::executeComponent()    /home/mysite/public_html/libraries/joomla/application/component/helper.php:348
4   require_once()  /home/mysite/public_html/libraries/joomla/application/component/helper.php:380
5   JController->execute()  /home/mysite/public_html/components/com_search/search.php:15
6   SearchController->display() /home/mysite/public_html/libraries/joomla/application/component/controller.php:761
7   JController->display()  /home/mysite/public_html/components/com_search/controller.php:33
8   SearchViewSearch->display() /home/mysite/public_html/libraries/joomla/application/component/controller.php:722
9   JView->display()    /home/mysite/public_html/components/com_search/views/search/view.html.php:195
10  JView->loadTemplate()   /home/mysite/public_html/plugins/system/t3/includes/joomla25/view.php:205
11  include()   /home/mysite/public_html/plugins/system/t3/includes/joomla25/view.php:649
12  JHtml::_()  /home/mysite/public_html/plugins/system/t3/base-bs3/html/com_search/search/default.php:11
13  JError::raiseError()    /home/mysite/public_html/libraries/joomla/html/html.php:123
14  JError::raise() /home/mysite/public_html/libraries/joomla/error/error.php:251
15  JError::throwError()    /home/mysite/public_html/libraries/joomla/error/error.php:176
16  call_user_func_array()  /home/mysite/public_html/libraries/joomla/error/error.php:214
17  JError::handleCallback()     
18  call_user_func()    /home/mysite/public_html/libraries/joomla/error/error.php:765
19  plgSystemReDJ::customError()    

如果我尝试回家并再次搜索,我有时会把它弄好(没有错误)。

有人可以帮忙吗?

我尝试搜索another question,但它看起来并不像我的。

提前致谢!

1 个答案:

答案 0 :(得分:2)

在扩展程序代码的某处,您很可能会看到以下内容:

JHtml::_('behavior.framework');

尝试用以下方法替换上述内容:

JHtml::_('behavior.mootools');

它用于Joomla 3.x的第一个代码片段,因此您需要使用第二个用于Joomla 2.5的代码片段