I just installed the following along with noderelationships 6.x-1.6:
Modal Frame API 6.x-1.7
I already had the following installed:
jQuery UI 6.x-1.3
jQuery Update 6.x-2.0-alpha1
Content 6.x-3.x-dev
Views 6.x-3.0-alpha3
When I set up the relationships on a content type with node references and create a new node, I am seeing the autocomplete field, along with all the "extras" buttons I enabled - View, Edit, Search, and Create. However, the Search and Create buttons are linked to "javascript:void(0);" and do nothing. When I select a node reference via the autocomplete, the View and Edit buttons become active as expected, but the Edit button is also linked to "javascript:void(0);" - yet the View button has a good link and works as expected.
I checked my jQuery + UI versions in status (as I've seen several posts flying back and forth regarding the version differences) and they are:
jQuery UI 1.8.1
jQuery Update 1.3.2
I have also tried this with the 6.x-1.x-dev version of noderelationships with no better results. Any idea what might be causing this?
Comments
Comment #1
markus_petrux CreditAttribution: markus_petrux commentedjQuery UI 1.8.1 needs jQuery 1.4, which is not completely ready for Drupal. See jQuery Update project for further information.
Try with jQuery 1.3.x and jQuery UI 1.7.x
Comment #2
yan CreditAttribution: yan commentedI'm having the same problem with jQuery UI 6.x-1.3/1.7.3 and jQuery Update 1.2.6. When I click on one of the buttons, a window opens and loads, but nothing ever happens. Clicking on the 'X' takes me to the top of the page but nothing is clickable anymore and the pop up window stays open.
Comment #3
markus_petrux CreditAttribution: markus_petrux commentedjQuery UI 1.7.x is NOT compatible with jQuery 1.2.6.
Comment #4
Rob_Feature CreditAttribution: Rob_Feature commentedOk, reopening because I'm not sure what versions of everything ARE working (Im having the same problem being described).
I'm using:
Comment #5
yan CreditAttribution: yan commentedI'm sorry markus_petrux, but I'm confused. I am using jQuery UI 6.x-1.3. On the status report page it says "jQuery UI 1.7.3". Additionally I have jQuery Update 6.x-1.1. But it didn't work neither before I installed jQuery Update.
Comment #6
Rob_Feature CreditAttribution: Rob_Feature commentedYan: Note that there's a difference between the version of the drupal module (for jquery ui and jquery update) and the version of the library you're using. If you look at my post you can see that jquery update module is version 6.x-2.0-alpha1 and it's using the jquery 1.3.2 library.
It's really a question of which libraries are working together with node relationships, I believe...and that's what I'm trying to find some clarity on. Hope that makes sense.
Comment #7
markus_petrux CreditAttribution: markus_petrux commentedLet see if the following helps:
If still in doubt, please open issues to the jQuery UI and/or jQuery Update modules. I'm afraid these modules need better documentation so that all the modules that require them do not have to repeat the same thing over and over. :(
Comment #8
Rob_Feature CreditAttribution: Rob_Feature commentedmarkus:
Thanks for clearly stating which libraries should be used. However, if you take a look at my comment #4 above you'll see that I'm doing exactly what you suggest and using the exact versions you say should work. Yet, the popup still isn't working.
Reopening this issue and retitling it to see if we can find the cause. Thoughts on what may be happening if all the proper libraries are being used, yet the popup still is empty?
Comment #9
markus_petrux CreditAttribution: markus_petrux commentedOh, I read #5 and #6, but missed #4. Sorry for that.
Well, it should work. It does for me, also on the sites where I've seen this installed, and I guess it does for a lot of other sites out there, so it seems your installation has something particular that breaks this module. Once verified the versions are ok, this needs to be investigated on site. Options: a) debugging, b) fresh installation + minimal requirements to run Node Relationships and try, works? ok, so keep adding stuff or combine modules until you can see which one causes the problem.
Comment #10
Rob_Feature CreditAttribution: Rob_Feature commentedYup, it seems you're correct...something specific is conflicting in my install. I'm going to keep this issue at it's current status until I figure out what exactly is conflicting. Then I'll report back and close the issue.
Comment #11
yan CreditAttribution: yan commentedThanks markus_petrux, great explanation in #7. I tried 6.x-2.0-alpha1 but it broke my site.. I'll try again in another occasion.
Comment #12
dereks8443 CreditAttribution: dereks8443 commentedI'm getting the same thing on two fresh installs of Drupal. The lightbox-styled window opens, and the "loading" spinner GIF is there, but then it just sits there forever. Closing the "window" by clicking the X just jumps to the top of the page... the page itself is completely unresponsive. I have been testing this with my simple CCK types "Contact" and "Customer", where "Customer" has a node reference to zero or more "Contacts".
Here are my versions:
OS: Ubuntu 10.04
PHP Version (from dpkg): 5.3.2-1ubuntu4.2
Installed Drupal using the following downloads (NOT using dpkg):
drupal-6.17.tar.gz
views-6.x-2.11.tar.gz
cck-6.x-2.7.tar.gz
jquery_update-6.x-1.1.tar.gz
jquery_ui-6.x-1.3.tar.gz
ALSO DOWNLOADED FROM GOOGLE: jquery-ui-1.7.3.zip (unzipped into modules/jquery_ui/jquery.ui)
If I turn on my Error Console in Firefox, then I get these two errors when I click on the "+" button:
Error: c.Event is not a function
Source File: https://myserver/drupal-d2/sites/all/modules/jquery_ui/jquery.ui/ui/mini...
Line: 10
I believe that error message is the root cause of the failure. I noted that same error has shown up before: http://drupal.org/node/638252 and the solution was to update the "Jquery Update" module to jquery_update-6.x-2.x-dev.tar.gz.
...
Ok, so I just updated to jquery_update-6.x-2.x-dev.tar.gz and it fixed it! I now get the "Add New Contact" form when I click on the "+". w00t!
REPEAT: jquery_update-6.x-1.1.tar.gz DOES NOT WORK. USE jquery_update-6.x-2.x-dev.tar.gz INSTEAD.
I also needed to clear all my caches (using the Admin Menu->Flush all caches).
Now that I know what the problem was, I can see on the Node Relationships module that it specifically recommends jquery_update-6.x-2.x-dev.tar.gz. I don't know how I missed that when doing my Drupal install, I'm usually very careful about R'ing TFM.
yan and Rob_Feature: Don't use 6.x-2.0-alpha1 of JQuery Update. Use jquery_update-6.x-2.x-dev.tar.gz instead (the -dev release!).
Comment #13
yan CreditAttribution: yan commentedOk, the problem really is the jquery version. I just installed jquery_update-6.x-2.x-dev.tar.gz and that made the Modal window open correctly. Actually, alpa-1 also works. But I'm also using lightbox2 on my site, which is not (yet) compatible with jquery_update 6.x-2.x... With that version enabled, all the links on my site try to open in a lightbox. This has been solved in Lightbox's dev-version and will be in Lightbox2 6.x-1.10. These are the related issues:
In lightbox's issue queue: #411162: Problem with 'automatic image URL re-formatting' with jQuery 1.3.x
In jquery_update's issue queue: #446862: Conflict with Lightbox2 6.x-1.9
Comment #14
BenStallings CreditAttribution: BenStallings commentedI'm sad to say I'm having the exact same issue -- running jQuery UI 1.7.3 and jQuery Update 1.3.2 -- but I'm not running Lightbox, so there's apparently another conflict. I'll copy my site and start disabling stuff and report back... :-(
This is a terrific module and exactly what I need, if I can just get it working!!
Comment #15
BenStallings CreditAttribution: BenStallings commentedAfter some experimentation, I found that my custom theme (based on Marvin) is the problem. Specifically, jquery_update_preprocess_page() is not running consistently when the custom theme is enabled.
Related issue: http://drupal.org/node/786938
I tried checking the theme registry and modifying jquery_update.module to add jquery_update_preprocess_page as a preprocess function for the maintenance_page, update_page, and admin_page parts of the registry as well as just 'page', but it seems that *none* of these preprocess functions are being run on the node creation form. I don't understand the theme registry enough to know why not.
Since I don't have all week to work on this, I'm just going to replace my default jquery.js with the updated one for now, and when a Drupal update overwrites it I'll revisit the problem... meantime suggestions are welcome!
Comment #16
iratau CreditAttribution: iratau commentedI was experiencing the same problem. The modal window would open but just spin and spin with nothing loading in it. Changing to jquery_update jquery_update-6.x-2.x-dev fixed the problem
Comment #17
BenStallings CreditAttribution: BenStallings commentedI'm reopening this issue to try to attract more attention to it... just to clarify, I was running the most recent jQuery Update dev in #14 & #15 above; the mismatched version numbers are confusing. Any help in figuring out how to get jquery_update_preprocess_page() to execute on the node creation form would be greatly appreciated... where does it need to be listed in the theme registry in order to run at that time? Am I even on the right track? Many thanks in advance.
Comment #18
markus_petrux CreditAttribution: markus_petrux commented@BenStallings Yours seems to be an issue with jQuery Update module, so you should check on that issues queue.
Comment #19
BenStallings CreditAttribution: BenStallings commentedOK, for what it's worth this bug is "by design" in jQuery Update: http://drupal.org/node/786938
Comment #20
Melissamcewen CreditAttribution: Melissamcewen commentedSwitching to UI 1.7.2 (I had 1.7.3) and the dev version of modal frame fixed this for me.
Comment #21
chunty CreditAttribution: chunty commentedSwitching the Jquery update module for the 6.x-2.x version fixed this for me as well
C
Comment #22
BeatnikDude CreditAttribution: BeatnikDude commentedModal window opens, shows spinner and does not load. Using:
• jQuery UI 6.x-1.4 module
- w/ jquery 1.7.3 lib
• jQuery Update 6.x-1.1 module
I tried the jQuery Update 6.x-2.x version and now my modal windows work. Using:
• jQuery UI 6.x-1.4 module
- w/ jquery 1.7.3 lib
• jQuery Update 6.x-2.x module
Comment #23
thommyboy CreditAttribution: thommyboy commentedcan confirm that everything works fine after upgrading jQuery Update from 6.x-2.0-alpha1 to 6.x-2.x-dev (april 20. 2011)