Notice: Undefined index: group in views_plugin_style->render() (line 251 of /Applications/MAMP/htdocs/drupshop/sites/all/modules/views/plugins/views_plugin_style.inc

Comments

robertstaddon’s picture

I started getting this error after upgrading to the latest version of Views. I fixed it by editing my view and going to the Format Settings. I had "Use rendered output to group rows" selected without a grouping field selected. I had to either select a grouping field or uncheck "Use rendered output to group rows".

mxh’s picture

does not work for me. i still get this error message, although a grouping field is selected. cannot disclaim on rendering the output to group rows. i hope this bug will be fixed soon.

rodvolpe’s picture

Did not work for me neither....

rickiellen’s picture

robertstaddon's fix did work for me.

matrlx’s picture

Status: Active » Needs review
Issue tags: +#views

Same error here :/
robertstaddon, I can`t find this option here..

This is the error that I got (after I upgraded to views new version):

Notice: Undefined index: group in views_plugin_style->render() (line 251 of /home/engenha/public_html/modules/views/plugins/views_plugin_style.inc).
Notice: Undefined index: rows in views_plugin_style->render() (line 254 of /home/engenha/public_html/modules/views/plugins/views_plugin_style.inc).
Warning: Invalid argument supplied for foreach() in views_plugin_style->render() (line 254 of /home/engenha/public_html/modules/views/plugins/views_plugin_style.inc).
Notice: Undefined index: group in views_plugin_style->render() (line 251 of /home/engenha/public_html/modules/views/plugins/views_plugin_style.inc).
Notice: Undefined index: rows in views_plugin_style->render() (line 254 of /home/engenha/public_html/modules/views/plugins/views_plugin_style.inc).
Warning: Invalid argument supplied for foreach() in views_plugin_style->render() (line 254 of /home/engenha/public_html/modules/views/plugins/views_plugin_style.inc).

lindad’s picture

All I had to do was go into Format-> Settings in my view, I didn't make any changes and select "Apply to all" then save the view again. Works fine now. Very similar to robertstaddon's post of course. I'm basically confirming his solution.

I am at Drupal 7.10 if that helps anyone, just upgraded this morning.

alskor’s picture

Priority: Normal » Major

I confirm the same problem after upgrading to the last Views module. Any reliable solution?

kalmarr’s picture

Hello!

same error. I updeted the view and after get this error.

views/plugins/views_plugin_style.inc 251

What is the error message? How can it off?

Kalmi

matrlx’s picture

Well.. after a while trying to find a solution, I found that this error was occurring because of the Views Grouping Row Limit module.
Here is the fix for that:
http://drupal.org/node/1375266

zeip’s picture

Component: Miscellaneous » Code
Status: Needs review » Active

Also having this problem, it's blocking me from updating to a secure version of views – hope we'll get some sort of solution soon.

Edit: For me this doesn't seem to be caused by Views Plugins – I don't have the module installed. Sorry for the mistake.

joshmiller’s picture

@ZeiP -- I also had this error and did not have this module installed. Here's how to reproduce it:

  1. Create a page view with two fields
  2. Change the settings to group by one field
  3. Create a block and remove the grouped field from that display only
  4. Turn on the block and view it
  5. You will get this error

All I had to do was click edit on the format settings and click "save for this page" -- this removed the "grouping" feature that was not properly removed for the other display that did not have the field necessary for grouping.

EDIT: Apparently the fix I described here is the same as in comment #1, but they concisely explained it :)

Josh

biografica’s picture

Comment #1 worked for me in this instance.

It seems that as of the date of this comment post, the views_plugin_style.inc file already has the patch from this thread applied.

ddunn’s picture

Comment #1 worked for me also, thanks.