Closed (fixed)
Project:
Views Datasource
Version:
6.x-1.0-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Jul 2008 at 12:00 UTC
Updated:
22 Jun 2010 at 16:10 UTC
Hi,
Firstly, this module is going to be AWESOME!! =)
However, I'm trying to test it and I can't get it to output anything. I don't know if I'm doing something silly, but here are my steps:
1. Create a new view of type Node
2. Add a Display of type Page
3. Set style to XML Data Document and set the format to Raw XML
4. Add the fields to display to Fields
5. Define the path (usually something like test/xml)
When I visit the page, instead of an XML document I get a themed Drupal page with the error message The row plugin is not of type Unformatted. - on the actual Display in the Views UI, Row Style is set to Fields. There is no "Unformatted" option. Any clues?
Comments
Comment #1
greg.harveyGot it. The problem is the "Unformatted" row style is only presented by the Views JSON module (which I did not install) but the Views XML and Views RDF modules effectively depend on it.
It's not really a "bug", but the .info file ought to make it so you have to install the module containing the style plug-ins. =)
Comment #2
jrabeemer commented+1
Agreed. I ran into this "bug". There should be an explicitly marked dependency in the views_datasource module list, or at least break out the core common functions separately and make that a dependency.
Comment #3
greg.harveyThat makes the most sense. =)
Comment #4
guillaumeduveauYou just have to user the Unformatted row style and it works.
I think it's more a lack of documentation problem !
Comment #5
greg.harveyNo it isn't - it's a lack of dependency in the info file. The whole reason the dependencies array exists is so you can prevent this from happening. Not implementing it properly is a Code Bug, not a Documentation Feature Request.
Comment #6
guillaumeduveauHello Greg,
I have it working and Views JSON is not enabled. I had the same error message and indeed I couldn't select Unformatted in the Page display of the view. However I could select it from the Default display of the view and then the message got away. It's a bit hacky of course ! I'm letting you setting the Category of the issue if you can reproduce this and think it has to be changed :)
Comment #7
greg.harveyI think if you can get it to work the way you describe, it's lucky rather than anything else. I say that because if you look at the
views_xml.views.incyou will see there is no Unformatted plugin. Conversely, if you look atviews_json.views.incyou can see the Unformatted plugin there, second one in theviews_json_views_plugins()function. So there is clearly an un-registered dependency, as previously noted. It needs to be fixed by either:- making the other modules depend on the JSON one, which contains the plugin
- including the plugin in all modules so they don't depend on JSON because they have their own copy
So you can see, when you read the actual code of the module, this is clearly a bug as originally described. You might have found a workaround, but the bug stands. It's literally there in black and white. ;-)
Comment #8
guillaumeduveauOK I trust you, I don't know Views2 enough ! Thanks for the explanation.
Comment #9
allisterbeharry commentedFixed in alpha 3 - http://drupal.org/node/598242 The new versions will not require the row plugin anymore.
Comment #10
lisacabisa commentedActually, I just installed Alpha 3 and I am getting the following error:
"Style XML data document requires a row style but the row plugin is invalid."
Comment #12
allisterbeharry commentedDid you have the alpha 2 installed? If so your view might be trying to use the 'Unformatted' row style plugin but it's no longer there - try changing the row style to use 'Fields' and then change the view style
Comment #13
allisterbeharry commentedSee the upgrade notes in the 6.x-1.0-beta1 release if you're still experiencing this.