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

greg.harvey’s picture

Got 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. =)

jrabeemer’s picture

Category: support » bug

+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.

greg.harvey’s picture

or at least break out the core common functions separately and make that a dependency

That makes the most sense. =)

guillaumeduveau’s picture

Component: User interface » Documentation
Category: bug » feature

You just have to user the Unformatted row style and it works.
I think it's more a lack of documentation problem !

greg.harvey’s picture

Component: Documentation » Code
Category: feature » bug

No 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.

guillaumeduveau’s picture

Hello 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 :)

greg.harvey’s picture

I 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.inc you will see there is no Unformatted plugin. Conversely, if you look at views_json.views.inc you can see the Unformatted plugin there, second one in the views_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. ;-)

guillaumeduveau’s picture

OK I trust you, I don't know Views2 enough ! Thanks for the explanation.

allisterbeharry’s picture

Assigned: Unassigned » allisterbeharry
Status: Active » Fixed

Fixed in alpha 3 - http://drupal.org/node/598242 The new versions will not require the row plugin anymore.

lisacabisa’s picture

Actually, 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."

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

allisterbeharry’s picture

Version: 6.x-1.0-alpha2 » 6.x-1.0-alpha3
Status: Closed (fixed) » Active

Did 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

allisterbeharry’s picture

Status: Active » Fixed

See the upgrade notes in the 6.x-1.0-beta1 release if you're still experiencing this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.