Error 500 on Joomla 2.5.8 : JHtml: :jquery not supported. File not found

穿精又带淫゛_ 提交于 2019-12-02 04:54:11

问题


I am using Joomla 2.5.8 . Actually after i install a new theme this error occurred "JHtml: :jquery not supported. File not found" . Since i am new on Joomla i was unable to figure out. I even tried out Joomla Jquery Library plugins but non helped. Please help me to sort it out.

This is the Debug info:

1 JSite->render() JROOT/index.php:48
2 JDocumentHTML->parse()  JROOT/includes/application.php:259
3 JDocumentHTML->_fetchTemplate() JROOT/libraries/joomla/document/html/html.php:414
4 JDocumentHTML->_loadTemplate()  JROOT/libraries/joomla/document/html/html.php:591
5 require()   JROOT/libraries/joomla/document/html/html.php:531
6 TemplateWarpHelper->render()    JROOT/templates/yoo_revista/index.php:19
7 include()   JROOT/templates/yoo_revista/warp/helpers/template.php:49
8 TemplateWarpHelper->render()    JROOT/templates/yoo_revista/layouts/template.php:17
9 include()   JROOT/templates/yoo_revista/warp/helpers/template.php:49
10 JHtml::_() JROOT/templates/yoo_revista/warp/systems/joomla/layouts/head.php:22
11 JError::raiseError()   JROOT/libraries/joomla/html/html.php:123
12 JError::raise()    JROOT/libraries/joomla/error/error.php:251

回答1:


Locate the line that the code being used to import jQuery and make sure it shows the following:

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

Which imports it in noConflict mode, but is also for Joomla 3.x only

Else you can replace it with the following, which will detect if a jQuery library is already being loaded and if not, it will import it.

if (!JFactory::getApplication()->get('jquery'))
{
    JFactory::getApplication()->set('jquery',true);
    JFactory::getDocument()->addScript('http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js');
}



回答2:


JHtmlJquery is not a class in Joomla! 2.5, it was introduced in 3.0 with the other UI changes. Odds are the extension you've installed is designed for Joomla! 3.0 and later.



来源:https://stackoverflow.com/questions/13891599/error-500-on-joomla-2-5-8-jhtml-jquery-not-supported-file-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!