Posted by RaspberryBlack on September 7, 2011 at 12:59am
37 followers
| Project: | Lightbox2 |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
| Issue tags: | D7 stable release blocker |
Issue Summary
Just installed the dev version for D7 and tried to use the lightbox trigger field in views. I can add it, but in the configuring box it states:
"The handler for this item is broken or missing and cannot be used. If a module provided the handler and was disabled, re-enabling the module may restore it. Otherwise, you should probably delete this item."
Comments
#1
I just commited a fix for this, is only change the api version from 2.0 to 3.0. I did some basic testing and it works, but not a real use case, so please, try to use it and report again if it do not work or have any error.
#2
I'm using the September 19th 2011 version of lightbox2 7.x-1.x-dev along with views 7.x-3.0-rc1.
Upon trying to add the lightbox trigger field to a view, I am getting the same result error as the original poster.
"The handler for this item is broken or missing and cannot be used. If a module provided the handler and was disabled, re-enabling the module may restore it. Otherwise, you should probably delete this item."
Is there a solution to this?
#3
This is strange because i commited a fix for this (http://drupalcode.org/project/lightbox2.git/commit/ae40acd) so it is in git, but it is not in last dev, in the line 1527 of the lightbox.module file, change where is '2.0' with '3.0'.
Please make this change or get the code from git, i do now know why the last dev do not have it. I will do some others changes today and see if the next dev contains it.
Thanks.
#4
Thanks. I will make that change and give it a try.
#5
This is closed on git, just wait for the next dev.
#6
Any idea when the next dev is coming out? I needed this too, but used a work around.
thx
#7
I am using the latest version. I checked that the API is written as 3.0. Nevertheless, the same error continues for me...
#8
I am using the latest dev as well - I even un-installed and re enabled the module
I still get the same error (the 3.0 is included in the dev)
The handler for this item is broken or missing and cannot be used. If a module provided the handler and was disabled, re-enabling the module may restore it. Otherwise, you should probably delete this item.
this is with views 7.x-3.0-rc3
#9
Same problem here, using latest Lightbox2 dev 10/13/2011, Views 7.x-3.0-rc3 and CTools 7.x-1.0-rc1.
#10
The issue is because of the new autoload functionality in D7 core. Handlers are now defined in a modules .info file and not via the hook_views_handlers().
Here's a patch to fix the problem.
Thanks
#11
I've tested the patch, it works fine now. Only thing I had to correct was the closing curly bracket. Here's the adjusted patch from http://drupal.org/node/1271456#comment-5286170
You might have to clean the views cache to see it working.
#12
Because I only added one curly bracket to the patch I've tested, I'm setting the status to review & tested.
#13
I got the patch to work. But can't get anything to appear in the caption field. :(
#14
Could you please file a separate issue as a support request? This is a bug report that's already reviewed and tested.
Learn more about token here: http://drupal.org/project/token
#15
Is this still applicable to the most recent update of Views? I've applied the patch with no success - still no trigger handler available.
#16
Yes - works here - did you clear cache?
#17
The hook_views_data isn't loaded as it seems lightbox2.views.inc isn't parsed at all.
#18
Souvent22 that's the problem my patch solves. Have you tried clearing your cache?
#19
Patch in #11 worked. Please commit so the field works in Views.
#20
#11 worked for me too.
#21
#11 worked for me as well. Great job troyer.
#22
#11 patch works. Thanks, troyer.
#23
Patch in #11 works great.
However in the Popup description for the field config it says "Combine tokens from the "Replacement patterns" below and html to create what the lightbox popup will become." however I'm not seeing any Replacement Patterns below.
#24
Yes. The patch works.
I could figure out the replacment pattern in my case by entering the field name in brackets - e.g.: [field_content_image_1] and it works for me.
#25
Yes. The patch in #11 works, for me too.
Thank you
Troyer
Newbies to patching (like me), might try manually patching with a text editor such a Notepad.
This is a small patch, and is really easy to follow.
Have a look here, for some manual patching tips:
http://drupal.org/node/534548
Backup, be careful, try at testing site first. Good luck!!
#26
The patch #11 doesn't work for me. The field "Lightbox" in the list of view filters is not shown after the application of patch. I have tried clearing the cache. I have tried the patch on the version dev and version beta of lightbox2. I have the version of views 7.x.3.3. and drupal version is 7.14
Thanks for your help.
#27
@cabita - Are you looking in fields or filters? The lightbox trigger is a field.
I'm also not seeing replacement patterns.
#28
I don't see replacement patterns either. I can open a lightbox window with nothing in it now.
#29
Applied #11 on lightbox2-7.x-1.x (Janurary 1, 2012) and it works.
#30
Patch #11 works here as well. Please commit.
#31
Same problem... patch fixed it - 7.x-1.0-beta1
#32
I'm running 7.x-1.0-beta1 and I'm still encountering this issue. It's been over a year since this was originally reported. Can we get this patch committed to the official release yet?
#33
The patch in #11 allows the trigger to show up and work, but as others have noted, replacement patterns aren't visible. In my case, Token is installed and working fine with other modules.
#34
I got sick of wasting many hours fiddling with broken lightboxes. I found most of them aren't compatible with many browsers anyways. This one works in every browser I've used: jQuery Combo Pack. It's also super lightweight and fast.
#35
Can this pleaseeeeeeeeeeee be fixed and committed, I need my lightbox working with views so I can attempt to attach it to node gallery!
The more I try to get on with D7 the more frustrated I get and wondering why I bothered
#36
#37
The patch from #11 worked for me.
After replying the patch, do not forget to clear the cache.
One more thing, if the replacement tokens do not appear, get it from the field added above this field in the view.
Thanks
#38
+1
#39
Using Lightbox2 7.x-1.0-beta1 and Views 7.x-3.6 and got the same error as original poster. Patch #11 works for me.
#40
+1 Patch #11 fix also for me. thanks