Problems with output - "The row plugin is not of type Unformatted."

greg.harvey - July 24, 2008 - 12:00
Project:Views Datasource
Version:6.x-1.0-alpha3
Component:Code
Category:bug report
Priority:normal
Assigned:allisterbeharry
Status:active
Description

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?

#1

greg.harvey - August 26, 2008 - 08:59
Category:support request» bug report

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

#2

momendo - August 26, 2008 - 02:40

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

#3

greg.harvey - August 26, 2008 - 08:57

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

That makes the most sense. =)

#4

guix - December 17, 2008 - 14:55
Component:User interface» Documentation
Category:bug report» feature request

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

#5

greg.harvey - December 17, 2008 - 17:14
Component:Documentation» Code
Category:feature request» bug report

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.

#6

guix - December 17, 2008 - 17:23

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

#7

greg.harvey - December 17, 2008 - 18:10

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. ;-)

#8

guix - December 18, 2008 - 07:44

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

#9

allisterbeharry - October 10, 2009 - 21:15
Assigned to:Anonymous» allisterbeharry
Status:active» fixed

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

#10

lisacabisa - October 14, 2009 - 19:02

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

#11

System Message - October 28, 2009 - 19:10
Status:fixed» closed

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

#12

allisterbeharry - October 31, 2009 - 07:14
Version:6.x-1.0-alpha2» 6.x-1.0-alpha3
Status:closed» 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

 
 

Drupal is a registered trademark of Dries Buytaert.