Empty List, after following README.txt - conflict with Administration Menu
nadavoid - February 26, 2009 - 16:56
| Project: | DraggableViews |
| Version: | 6.x-3.2-beta5 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I was able to follow the instructions exactly in the included README.txt file. However, the end result is an empty list. If I switch the style back to Unformatted, or HTML List, I see a normal list. When I switch back to Draggable table (and add the "Value #1" field back in to the display style settings), I get an empty list again.
I've tried the display as a page and as a block.
I tried this on a dev site, as well as on a clean install of Drupal 6.10. + views 6.x-2.3 + draggableviews 6.x-3.2-beta1.
I checked my php error logs, and there's nothing recent in there.
What am I missing? Can anyone else replicate this on a clean install?

#1
I'm having the exact same issue at the moment. It always gives me an empty view even though I have about 10 pieces of content that should be showing up sortable.
#2
What kind of content are you trying to display? Is there anything exceptionally non-standard or does it even happen with just text?
#3
a CCK created content type which only has a CCK imagefield attached to it.
In the table I am trying to render the title of the content, and the url of the imagefield. Everything is setup as I think it should be?
I'm using native ordering with DraggableView: Order #1.
#4
I'm sorry for the late answer.
I suppose the cache hasn't been cleared and you have to do this manually. You can use Devel module or simply add the line
cache_clear_all();in your index.php (after drupal_bootstrap(..)).Tell me if this solved your problem. Would be helpful to know.
I'm currently trying to get rid of this.
Please be patient.
Greetings,
sevi
PS: As a motivation you can look at the Demo page http://83.64.250.36/drupal/draggable (latest -dev version). It should look similar to this :)
#5
I get the same empty view even if I switch the Filter type to only default Page node types (also just providing the Title field + Draggableview Order #1)
#6
Did you already try to clear the cache?
#7
Sevi,
Tried your solution and which is the same as going to the Performance Admin and clearing cache no? Anyhow I did both and now I get what appears to be a NORMAL
table view.
I am filtering to a specific CCK content type.
Fields selected are Node -> Title, Content -> Photo (Path to file), DraggableViews: Value #1
In the DraggableView config I have LEVEL 1 field = Value #1 w/ Native handling. Show Input fields are both unchecked. Under Node Type I chose the same CCK content type to which I am filtering? Not sure if this is required but I figured it couldn't hurt to set it as root?
I save and now PREVIEW gives me the TITLE Column, Path To File Column, Value #1 Column...
the data in the first 2 columns is correct but why am I getting the Value #1 column with select boxes??? Shouldn't these be hidden and shouldn't I have a draggable icon next to the 1st column? :)
Cheers,
st.
#8
If you are not the super user (uid=1) you can check the permissions (allow reordering). And are you sure js is enabled?
#9
Doing and trying to get it setup as the super user. Well along in development for a project due early April but required these sort of "tables" for an administration section of a custom module we are building.
Absolutely positive that JS is enabled.
Here is a screenshot of what I am seeing on my end:
http://www.shackpics.com/viewer.x?file=DraggableViewBUG_28e410zsyov935iq...
Best,
st.
#10
Sevi,
Update for your troubles. Can it please be documented in your README or elsewhere that the draggable view will not function in the VIEW Admin - Preview mode?
I just tried assigning the block somewhere and went to look at it normally and it appears to work.
Is it supposed to not work in the administration section previewing? Anyhow, great module! Saves a lot of time using this as a dependency add on for our module rather than building out our self.
#11
Great :)
That's true. It doesn't work in preview mode because I need the view id to save order values. After saving a view it should work in preview mode too.
I'll write this to readme.txt :)
Edit: And don't forget to set a sort criteria (there isn't any defined on your screenshot)
#12
Seems to be fixed
#13
So sorry for taking so long to follow up on this. I just tried the latest beta - beta 4 - and my problem is still happening. It looks like it turns out that the problem is an incompatibility with the admin_menu module. I just disabled admin_menu, and I get the sortable/draggable view. I think this must have been my problem from the beginning. I don't know if the "bug" is in draggableviews or in admin_menu.
#14
I can confirm nadavoid's report. I was having issues with draggable views displaying a blank list - disabling admin_menu allowed the list to work properly.
#15
Further to above, the draggable views only seem to work for the native handler and order field - if I try to use the flag_weights field and handler for my view, I get the same empty list issue. This is with or without admin_menu enabled.
edit - clearing the cache seems to have sorted this. now have sortable views working with flag_weights, albeit without admin_menu
#16
Automatically closed -- issue fixed for 2 weeks with no activity.
#17
Apologies for reopening an old issue, but seemed more sense than filing a new one that covers the same thing.
Just wondered if you could add a warning note to the module page about this conflict with Administration Menu. We use Admin Menu as standard on all our installs, and took me a while to track down what the problem was. As the menu is fairly popular it might save others some time.
As for the problem itself, it seems it might be due to the margin-top feature in Admin Menu. With this feature disabled, I seemed to be able to create a view that worked. Interestingly, the margin-top doesn't stop the view itself working if already created, but it seems to screw things up in the ViewsUI, and then the view won't work. Possibly this could be some sort of conflict between ViewsUI and Admin Menu that only your module is triggering. Tried an export of similar views with and without Admin Menu enabled, and only difference seemed to be that some of the sort options (order, delta) weren't set.[EDITED] - strike that, think I posted in too much haste. I'm still having this same problem without Admin Menu. I seem to have an issue when a draggable view is first created, it causes the "structure was broken" message and nothing shows up in the view. Resetting the Views cache does nothing. However, rather bizarrely, if I go to the modules page and click "Save configuration" the view is fixed. Tried this 4 times, with different views and different browsers - same behaviour. This is why I initially thought uninstalling Admin Menu had fixed it.
I'm using Views 2.5 btw.
Any ideas? Should I file this separately now?
Thanks and best wishes, Neil
#18
With each view a new theme will be created. Thus the theme registry must be reloaded. Resetting the views cache doesn't help here but when you click "Save" a
cache_clear_all()will be performed.Probably I'm on the wrong track now but I suppose it is the theme causing troubles.
#19
@nsigma: yes, please file this issue separately.
#20
Running into the same here. nsigma's workaround also works for me:
Drupal 6.12
Views 6.x-2.5
Draggable Views 6.x-3.2-beta5
If there's a better node to post this against please post the URL. Also let me know know if I can submit any other info to help.
#21
#22
I guess this is a duplicate of #541130: Theme registery issues
#23