Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] JHtml: :jquery not supported. File not found.

JHtml: :jquery not supported. File not found. 11 Apr 2016 12:08 #13904

  • thierry
  • thierry's Avatar
  • Offline
  • Senior Member
  • Posts: 52
  • Thank you received: 2
  • Karma: -3
Good afternoon,

As I still have some issue and investigation on a private network that is working 24 hours a day 365 days to migrate from joomla 2.5.28 to 3.x, I wonder if it is possible for the excellent owner of j-cook.pro to make a patch.
This patch will consit to remove jquery from the actual component created by COOK to be able to install on a Joomla 2.5.

If we remove this jquery from component, I think it will maybe work.

Questions
1 - do you think it will be the only challenge to fit actual component to Joomla 2.5.28 ?
2 - can you easily make this patch with PHP lines fitted at a good place ?

Thank you very much.

Regards
The administrator has disabled public write access.

JHtml: :jquery not supported. File not found. 11 Apr 2016 12:28 #13905

  • thierry
  • thierry's Avatar
  • Offline
  • Senior Member
  • Posts: 52
  • Thank you received: 2
  • Karma: -3
I found this :

Locate the line that the code being used to import jQuery and make sure it shows the following:
JHtml::_('jquery.framework');
where can I find this line ?
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);
    $doc = JFactory::getDocument();
    $doc->addScript('http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js');
}

This; do you think it will solved the issue ?

Regards
The administrator has disabled public write access.
The following user(s) said Thank You: admin

JHtml: :jquery not supported. File not found. 18 Apr 2016 09:38 #13917

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Thank you for the fix.

Actually, that's easy to integrate.
K++
Coding is now a piece of cake
The administrator has disabled public write access.

JHtml: :jquery not supported. File not found. 25 Apr 2016 11:35 #13925

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Fixed. Now you can run on 2.5 again.

I did different than you. It uses the JDom compatibility layer for loading the scripts.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.054 seconds

Get Started