JQuery installation confusion

tonytharp.com - September 19, 2009 - 09:41
Project:jQuery UI
Version:6.x-1.2
Component:Miscellaneous
Category:support request
Priority:critical
Assigned:Unassigned
Status:duplicate
Description

After numerous attempts to fix the problem, I'm still getting the following error message when I attempt to activate the JQuery Module:

"The jQuery UI plugin is missing. Download and extract it to your jquery_ui module directory. See README.txt for more info. (Currently using jQuery UI Not found)"

I've downlaoded the plugin several different times. What does it mean to "extract it" ??? Should the modules be in MODULES or in SITES/ALL/MOGULES or some other folder ???? Wjat am I doing wrong.

Using my own Zen subtheme. I think!!!!

#1

markDrupal - September 22, 2009 - 22:59
Priority:normal» critical

ditto, Can the error be human readable for someone who isnot a jquery ui developer?
Such as

"jQuery UI module expected to find the required file "Jquery -1.2.6.js" at '/sites/modules/contrib/jquery_ui/jquery.ui/js/jquery-1.2.6.js' but the file was not found. Please download that file from Jquery UI home page and put it there."

#2

maxferrario - September 24, 2009 - 08:03

"Use the manual, Luke"

Read Installing contributed modules in the documentation.

#3

tonytharp.com - September 24, 2009 - 20:06

Done that. Several Times. Can't get it to work. Is there a help forum?

#4

neclimdul - September 25, 2009 - 01:00
Status:active» needs review

Well, I think you're confused about what you're suppose to download. You need the JavaScript library which is not included with the module download from drupal.org. Please follow the 2 links in the message and download the library and read the README.

#5

-Anti- - September 26, 2009 - 10:19

The install description from the project page documentation link is good:
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/jquery_ui/REA...

The readme.txt that comes in the module archive is confusing and incomplete.

Another potential issue, one that I came across whilst researching Drupal's multisite feature, is that some servers do not allow folder names to have a . in them for security reasons. On such a server, if you try to create jquery.ui it will be automatically renamed jquery_ui

#6

joachim - October 5, 2009 - 12:37
Title:JQuery confusion» JQuery installation confusion

I'm rather baffled too.

I believe I have followed the instructions in the README to the letter, in that I have the downloaded jquery.ui library folder placed in such a way that I have a file:
sites/all/modules/jquery_ui/jquery.ui/jquery-1.2.6.js

and yet the modules admin page shows me the jquery_ui ticky box greyed out.

#7

-Anti- - October 5, 2009 - 15:35

> sites/all/modules/jquery_ui/jquery.ui/jquery-1.2.6.js

If you correctly wrote that path, according to the documentation readme, you are missing a directory called /ui/:

/sites/all/modules/jquery_ui/jquery.ui/ui/jquery-1.2.6.js

#8

joachim - October 5, 2009 - 16:26

My copy of the README says:

* Download the latest jQuery UI 1.6 development package from:

    http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.6
*
Extract it as a sub-directory called 'jquery.ui' in the jquery_ui folder:

    /sites/all/modules/jquery_ui/jquery.ui/

* Enable the module at Administer >> Site building >> Modules.

downloaded today with Drush.

The latest CVS copy has an extra line:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/jquery_ui/R...

* Extract it as a sub-directory called 'jquery.ui' in the jquery_ui folder:

    /sites/all/modules/jquery_ui/jquery.ui/

  so the actual jQuery UI JavaScript files are located in:

    /sites/all/modules/jquery_ui/jquery.ui/ui/*.js

* Enable the module at Administer >> Site building >> Modules.

However, that still says the same thing to me.
The structure is that there is a main js file and then all the jquery module js files in /ui, so I have for example:
sites/all/modules/jquery_ui/jquery.ui/ui/effects.blind.js

and no joy -- tickbox still greyed out.

#9

Funkwarrior - October 5, 2009 - 20:28

Hi all!

I'm not a developer but probably there's a mistake on jquery_ui.install:

function jquery_ui_requirements($phase) {
  $requirements = array();
  $t = get_t();
$jquery_ui_version = 0; //<!---------------------------------------- the $jquery_ui_version variable is set to 0.
 
  if ($phase == 'install') {
    // The jquery_ui_get_version() function is in the .module file, which isn't
    // loaded yet.
    include_once dirname(__FILE__) . '/jquery_ui.module';
  }

  $requirements['jquery_ui']['title'] = $t('jQuery UI');

  if ($jquery_ui_version == jquery_ui_get_version()) {//<---------------------------------------- the  $jquery_ui_version is set to 0 and the jquery_ui_get_version() (with jquery_ui correctly installed) returns me 1.7.6!! 
   
    // Everything looks good; display the current jQuery UI version.
    $requirements['jquery_ui']['value'] = $jquery_ui_version;
    $requirements['jquery_ui']['severity'] = REQUIREMENT_OK;
  }
  else {
    // Required library wasn't found. Abort installation.
    $requirements['jquery_ui']['value'] = $t('Not found');
    // Provide a download link to the jQuery UI development bundle. The provided
    // link will list the latest 1.6.x build.
    $requirements['jquery_ui']['description'] = $t('The <a href="@jqueryui">jQuery UI</a> plugin is missing. <a href="@download">Download</a> and extract it to your <em>jquery_ui</em> module directory. See <a href="@readme">README.txt</a> for more info.', array('@jqueryui' => 'http://jqueryui.com', '@download' => 'http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.6', '@readme' => url(drupal_get_path('module', 'jquery_ui') . '/README.txt')));
    $requirements['jquery_ui']['severity'] = REQUIREMENT_ERROR;
  }

  return $requirements;
}

#10

Funkwarrior - October 5, 2009 - 20:41

Everything works fine with Jquery ui Legacy (1.6: for jQuery 1.2.6), not with the Current (stable) (1.7.2: for jQuery 1.3+)

#11

joachim - October 5, 2009 - 22:15

I can't get it to work with 1.6.

#12

Tigerboy - October 6, 2009 - 00:24

This problem is ridiculous. I have installed the current version of jquery_ui in the /sites/all/modules directory and the /modules directory and in both cases even though I add the most current 1.72 jquery ui plugin to the jquery.ui directory it claims it cannot find it and thus unchecks the drupal modules entry. I have put the entire contents of the jquery plugin without the *.txt files and I get this error whether I used the most current 1.72 or the previous one. I put the contents into ...modules/jquery_ui/jquery.ui/(contents of jquery plugin zip) such that I have the jquery-1.3.2.js file in the jquery.ui folder and the folders ui, themes, tests etc also in the jquery plugin directory. With the current version of jquery_ui drupal (6.x-1.3) module it gives the error message "The jQuery UI plugin is missing. Download and extract it to your jquery_ui module directory. See README.txt for more info. (Currently using jQuery UI Not found)" every single time I check jquery_ui in the modules adding of Drupal no matter what I do. There is no answer in this issue other than "look this up or look that up don't you know how to install modules" Of course we know how to install modules. I have done this on two sites it does the same thing I've been using drupal for years.

#13

neclimdul - October 6, 2009 - 04:19

if ($jquery_ui_version == jquery_ui_get_version()) {

You'd be right if this was the code that's in the module. This is not the code in either in latest CVS or the current release of the module. The correct code is:
if ($jquery_ui_version = jquery_ui_get_version()) {

For everyone else, I've had no problem with the module. Its working great with my jQuery UI Carousel module that requires it as a dependency. The attached file shows the entire file structure for the jquery_ui module directory I'm using in my development site.

AttachmentSize
jquery_ui.txt 26.39 KB

#14

Tigerboy - October 6, 2009 - 13:38

Using Jquery plugin 1.6 or 1.7.2 do not work when installed in /sites/all/modules/jquery_ul/jquery.ui with the 6.x-1.3 jquery_ui drupal from the drupal.org module page.

Problem: When you check the module it and try to install it on the drupal modules page it unchecks the module(jquery_ui) and it gives the error message "The jQuery UI plugin is missing. Download and extract it to your jquery_ui module directory. See README.txt for more info. (Currently using jQuery UI Not found)" every single time.

You can't use the module if it won't install in the first place. Why can't this be checked? I have done the same thing on three web sites and others are having the same problem.

#15

Tigerboy - October 6, 2009 - 13:40

Typo above: that is installed in /sites/all/modules/jquery_ui/jquery.ui/ is what I meant to type

#16

neclimdul - October 6, 2009 - 14:59

@tigerboy I'm sorry it doesn't work for you but you haven't actually given me any details as to why it might not be working. As I said, it does work for me without any problem so its either something specific to your setup or you didn't get your files setup correctly which is why I provided the list of files in my previous post.

#17

joachim - October 6, 2009 - 15:28

I have the same file structure as in the attachment in #13, and it's still not working for me.

What I'm curious about is why first time around the module system let me try enabling it, and then gave an error, whereas now the tick box for this module is simply greyed out. Might there be a problem to do with hook_requirements?

#18

Tigerboy - October 6, 2009 - 18:33

It is not working for me details: I have a fully upgraded drupal installation.

That is the only conceivable details that could be of concern. That and what I clearly stated in this post multiple times. Maybe it's the CVS has been repaired but what you download on the project website fails at the install phase. The only thing that controls the installation of the module with the failure result that it gives is the jquery_ul module itself. THERE ARE NO OTHER DETAILS. You are saying "Hey I used the CVS with version 1.6 and it works fine." There is something very wrong with the jquery_ui installation/module I can't even figure out how it is bouncing out at the installation phase and saying something isn't there. I am not having any other inability to install problems with any other modules. This module has no dependencies declared for other drupal modules so again I don't know what details you could possibly be talking about. Can someone update the durpal.org project site module file? Maybe that is the: it was updated and corrected for CVS but not the download.

The only other thing I can think of that might have an impact -- I have "jquery update" installed but so does almost everyone else in the world so I wasn't sure that was important. that and "jquery plugins". Both successfully installed drup modules. I just don't understand why the installation problem is ignored when so many are having this and I have repeated it several times myself again regardless of whether I use version 1.6 or 1.7.2 .

and my folder is also the same too but with the variations caused by using the drupal.org project page download. Thanks for any help anyone gives but please don't just respond saying "well it works for me" especially without thinking about what is going on and don't assume people don't know how to install modules.

#19

Tigerboy - October 7, 2009 - 02:06

Ok as I found there is some problem with other drupal modules which are already installed. There is something very wrong with jquery_ui's install which is fatal if you have one of these modules installed.

This bloke had discovered the admin menu module which I believe is the drop down menu you can add caused this exact problem and when he uninstalled admin menu and removed the directory he was then able to install jquery_ui with no problems this is his statement I think it's also called administration menu but even when I uninstalled it I couldn't install jquery_ui I'm still hunting for the problem:

It turns out that the "Admin Menu Dropdown" contained its own jquery_ui.module file, which was being picked up instead of the one I wanted. I uninstalled AMD (and removed the directory completely) and jquery_ui installed fine.

I thought I'd pass it on in hopes of getting the maintainers to wake up on this and also to help anyone else. I will keep trying other things.. to get mine to install.

#20

neclimdul - October 7, 2009 - 17:18
Status:needs review» duplicate

Lets follow up there then. #401986: Included jquery_ui conflicts with separate jquery_ui module

By 1.6 I mean, I downloaded the 1.6 release from the module page, just like you and tried it. There wasn't a problem with it, so I was trying ruling that out so you could look else where.

If it turns out you had another copy of jquery_ui floating around I'm sorry that was causing your problem. That would mean that all the code was looking in the wrong location for the ui library. You're not going to like this but its probably a user error though. I've checked and neither admin_menu or admin_menu_dropdown have a jquery_ui module so you probably accidentally extracted the jquery ui module into the wrong module directory once. It happens and it really is a pain to debug and I'm sorry it happened to you.

But look, I've tried to be nice and follow up here and help you figure this out but I'm done. There's no need for all this animosity when we're volunteering our time to help you. As a module maintainer I understand why the maintainers haven't "woken up."
1) I've been actively participating in the thread as have a community of people trying to solve the issue.
2) There's not one listing of a way to reproduce this until today and for those of us who can't figure out how to solve the problem, there's not much for them to do that I haven't already done.
3) Your hostile attitude.

#21

merlinofchaos - October 7, 2009 - 17:46

I think reading #18 and #19 together provide an interesting story.

#18 insists that there are no more details to provide. Yet #19, posted by the same author, explains what the problem was, and there is absolutely no way that someone external to the poster's site could have known that and helped, since the details were not provided. So what are people to do? Were people supposed to know by magic, why it was failing?

Taking out frustrations on people volunteering to help is a pretty bad behavior. People remember that the next time around.

#22

merlinofchaos - October 7, 2009 - 17:49

One thing that would help, btw: the jquery_ui module error message could state, explicitly, where the file is expected to be found in the error message. It is completely normal for people to install modules in the wrong place or have multiple copies accidentally and the explicit path might help some number of those people.

#23

joachim - October 7, 2009 - 21:16

Well my problem was not to do with a duplicate file.

What happened with me:
1. enabled form builder & jquery_ui simultaneously
2. jquery_ui refused to install
3. This left Drupal somehow confused:
- form_builder enabled
- jquery_ui disabled, but greyed out because it's a dependency of form_builder.

Hence apparent inability to enable jquery_ui.

Drush to the rescue, problem solved.

This does look like a bug in core though -- anyone happen to know if it's already been filed?

#24

markDrupal - October 7, 2009 - 22:30

I looked at the license of jquery UI,
it is a dual GPL / MIT license. Is there anyway we could just include the required files with this module? GPL is Drupal friendly, not sure about MIT. As well, Drupal includes jQuery library by default in the Drupal core, so it may be acceptable.

From the jQueryUI archive:

        GNU GENERAL PUBLIC LICENSE

           Version 2, June 1991

MIT:
Copyright (c) 2009 Paul Bakaus, http://jqueryui.com/
This
software consists of voluntary contributions made by many

individuals (AUTHORS.txt, http://jqueryui.com/about) For exact

contribution history, see the revision history and logs, available

at http://jquery-ui.googlecode.com/svn/
Permission
is hereby granted, free of charge, to any person obtaining

a copy of this software and associated documentation files (the

"Software"), to deal in the Software without restriction, including

without limitation the rights to use, copy, modify, merge, publish,

distribute, sublicense, and/or sell copies of the Software, and to

permit persons to whom the Software is furnished to do so, subject to

the following conditions:



The above copyright notice and this permission notice shall be

included in all copies or substantial portions of the Software.

#25

neclimdul - October 8, 2009 - 01:07

I think the ui library wasn't included more as a feature since you could choose the version of jquery ui that fit your needs.

Re @joachim your core bug, thats interesting. You're right that dependent modules that fail to install should probably stop the requiring modules from being installed. I have feeling the reason that's not the case is part of a fairly complicated problem that's not going to be fixed for drupal 6. It has already been fixed for Drupal 7 though as far as I know so we can just grin and bear it. However, I believe there's actually a really easy workaround for that. Just submit the module page again and the dependent module will be installed.

#26

Tigerboy - October 8, 2009 - 03:09

I installed jquery_ui module under sites/all/modules Success!!

I installed Jquery plugin Zip file contents from http://jquery-ui.googlecode.com/files/jquery-ui-1.7.2.zip into the sites/all/modules/jquery_ui/jquery.ui directory. Folders in jquery.ui: /demos /docs /external /tests /themes and /ui with the jquery-1.3.2.js as the file. Success!!

I went to the admin/build/modules of three sites fully upgraded to the drupal 6.14 install and fully functioning with no known errors and I scrolled down and checked the box next to Jquery UI 6.x-1.3 and hit the "Save configuration" button at the bottom. Failure!!! I received the notice near the top of the modules page: The jQuery UI plugin is missing. Download and extract it to your jquery_ui module directory. See README.txt for more info. (Currently using jQuery UI Not found) and the jquery module did not install (scrolling down revealed that the installation process unchecked the Jquery UI module.

And many other people are having same problem whether I use 1.6 or 1.7.2 jquery plugin this happens. All other aspects of drupal give me a clean green checkmark. and I also don't have any other versions of jquery_ui on the system.

I would love this to work but there is something wrong with the install for the install to pop out and prevent install like that makes no sense and it gives no detailed explanation of why it failed to install. thanks

#27

Branjawn - October 19, 2009 - 19:41

subscribing.
my error msg: The jQuery UI plugin is missing. Download and extract it to your jquery_ui module directory. See README.txt for more info. (Currently using jQuery UI Not found)

my path: sites/all/modules/jquery_ui/jquery.ui/ui/*unpacked files*

#28

totaldrupal - November 7, 2009 - 22:51

OMG! What a nightmare, thought I was going crazy. I went over the instuctions and the issues a zillion times and tried many different things. Finally got it to work! JQuery UI likes to be installed by itself before any other modules are enabled that remotely are connected with it. Why? It's a mystery, over my head anyway. Hope this helps anyone else who beat their head on this wall for hours.

#29

bgenab - December 11, 2009 - 23:34

I am having the same issues, and have been working on it for hours now.... I am going to try (again) to uninstall, and re-install JQuery UI on it's own. I will follow up if I have any luck!
How do I know what other modules might be connected to JQuery?

#30

bgenab - December 12, 2009 - 01:14

If you want to feel like a complete idiot, try and install this module. 7 hours, and why it finally worked, I have no idea. I would have abandoned it hours ago, if I did not absolutely need it. I read the directions, installed, uninstalled, downloaded, unziped, extracted, changed file names, did not change file names. I read boards, read feedback from Drupal Modules.... I must have tried hundreds of configurations to make this module work. I tried patches, followed leads, clicked links, what a mess!
All I can say at this point is... GOOD LUCK!

 
 

Drupal is a registered trademark of Dries Buytaert.