Attached is a screen shot of 2 errors I started seeing when checking out the latest dev VBO. This affects all existing views, and any news views I create, whenever I choose "Bulk Operations" as the style. I've cleared all caches. Stock VBO seems to work fine on the standard admin pages.

The popup error you see in the screenshot appears anytime I try to access the settings page for Bulk Operations.

An error occurred at /admin/build/views/ajax/display/student_position2/default/style_options

Not sure if the error in red on this same screenshot is related or helpful to you, but this began appearing sporadically throughout the site after installing VBO dev. I'm not sure what triggers this yet, but it does seem to be limited to views-generated content. It seems to have gone away, though, after reverting back to rc VBO 1.8, so I believe it must be somehow related.

warning: Cannot modify header information - headers already sent by (output started at /export/[root site]/includes/common.inc:369) in /export/[root-site]/includes/common.inc on line 141.

Here is an example of a new view I created to demonstrate the error:

$view = new view;
$view->name = 'student_positions2';
$view->description = 'Student Positions';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'title' => array(
    'label' => 'Title',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'student_position' => 'student_position',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('style_plugin', 'bulk');
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'student-apps/test');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
));

Comments

infojunkie’s picture

I was able to access the settings fine. Let's debug this problem together.

Please comment out the block of code in file views_bulk_operations_plugin_style.inc, lines 80-95, starting with:

// Per-action settings form.

up to and including the next-to-last closing bracket.

Does it work then? If so, please select the operation "Modify node fields" in the settings (along with a few others) and then visit the VBO page. Select a few nodes, then select "Modify node fields" and Execute. Does the action form give you an error?

michellezeedru’s picture

That worked! I can now access the VBO settings without error. I setup "Modify node fields" and a few others, and was able to execute modify node fields on a few nodes without error.

FYI - the select list fields have no options in them for me to choose. I'm guessing you were expecting this would happen but just in case you didn't.

Thanks! Please let me know what next steps I can do to help debug.

infojunkie’s picture

What are the "select list fields"?

I was actually hoping that the error you were encountering would manifest itself on the "Modify node fields" form during execution of the view... Are you using filefields by any chance?

michellezeedru’s picture

Oh, sorry then. I tested again, and no, there is no error when executing the Modify Node Field functions. The node fields get changed as expected.

About the select list fields, what I mean is that for all of the select fields in this node type, they are empty lists with no options for me to select (see screenshot). Some of these are nodereference fields, others are standard CCK text fields with the select list widget.

I do have the filefield module enabled and use it, but there are no filefields in the view that I'm working with to test this.

I should probably mention that I am using CCK 3.x-dev, and have the new multi-groups function in place. I wonder if that has something to do with it?

infojunkie’s picture

Please attach the screenshot.

I didn't test with CCK 3.x so any number of things might be happening. When I get around to trying CCK 3 I will get back to this issue.

wonder95’s picture

Subscribing, since I've seen the same issue.

infojunkie’s picture

@wonder95, are you getting this with Views 2 or 3? Can you confirm if the workaround in #1 does work for you?
Updated troubleshooting steps below :-)

infojunkie’s picture

To everyone getting this error, I need your help to debug it. Here's how to do it:

* Use Firefox
* Install the Firebug add-on (https://addons.mozilla.org/en-US/firefox/addon/1843)
* Edit the VBO and clock the Bulk Operations settings gear icon
* Click OK when the error dialog is shown
* Click the bug icon on the lower-right corner of Firefox to open Firebug
* Inside the Firebug window, click the "Console" tab
* Click the first line that looks like "POST http://localhost/d6/admin/build/views/ajax/display/admin_content/page/st..."
* Open the "Response" tab and copy its contents here :-)

Thanks!

daekano’s picture

Subscribing, receiving the same error when attempting to modify column numbers in grid-style view.

infojunkie’s picture

Daekano, it would be useful if you could perform the troubleshooting steps above. Thanks!

Mark_Watson27’s picture

StatusFileSize
new43.85 KB

I've attached the full response, but the error relates to a Page not found

infojunkie’s picture

@Mark_Watson27: Thanks for the feedback. Were there any other responses in the console? I can't make sense of this one (yet).

Mark_Watson27’s picture

That was the full response after following #8, anything else I can do?

thanks
Mark

Mark_Watson27’s picture

Log entry:
Type page not found
Date Thursday, January 7, 2010 - 12:33
User administrator
Location http://test.ctscomputing.com/admin/build/views/ajax/display/People/defau...
Referrer http://test.ctscomputing.com/admin/build/views/edit/People
Message admin/build/views/ajax/display/People/default/style_plugin
Severity warning

infojunkie’s picture

Since your test site is online, this might be a good opportunity to nail this bug. Can you give me a sufficiently privileged account to try this out for myself?

Mark_Watson27’s picture

Don't know what rights you want, but have sent you account details via your contact form.

Cheers
Mark

infojunkie’s picture

Thanks Mark. I witnessed the page not found error which is weird to say the least. Can you confirm that applying the modification in comment #1 above resolves the problem? If so, then I will ask you to grant me admin permissions (using Admin Role http://drupal.org/project/adminrole for example) because it is likely a inter-module conflict and I will either need to reproduce your setup locally, or somehow edit the VBO files on your server.

Mark_Watson27’s picture

Sorry for the delay in getting back to you. I spent a while getting a new site up and running and slowly turning on modules one-by-one to see if there was a clash and...Panel Nodes 6.x-3.x-dev seems to be the casue of my problem. Do you still want me to play with comment #1? I'll also try switching to a different Panels version and post back. I might also trying getting rid of all other modules and just limit the surface area of the problem.

Thanks
Mark

infojunkie’s picture

Mark, thanks for the tip. I'll try Panel Nodes. To further delimit the problem, it would be useful to apply comment #1. If it makes no difference, then your problem is probably different from the other posters here.

Mark_Watson27’s picture

Applying comment #1 gets rid of the error and I am then able to visit the page and modify the fields.

As a follow-up I de-selected all modules apart from:
Chaos tools 6.x-1.x-dev
Content 6.x-2.x-dev
Database logging 6.15
Mini panels 6.x-3.x-dev
Panels 6.x-3.x-dev
Panel nodes 6.x-3.x-dev
Views 6.x-2.x-dev
Views Bulk Operations 6.x-1.x-dev
Views UI 6.x-2.x-dev

Removing either Content or Panel Nodes resolves the issue, having both of them selected causes the issue. I'll move on to trying non-dev versions.
Thanks
Mark

Mark_Watson27’s picture

Tried non dev versions of Chaos Tools, Content, Panels and Views and the problem persists.

infojunkie’s picture

I was able to reproduce the problem with Panel Nodes. Moving to debugging. Great job!

infojunkie’s picture

Status: Active » Fixed

I committed a fix in the latest dev (please try it 12 hours from now). This fix disables the editing of standard node fields (title, body, etc.) using the "Modify node fields" action. I will attempt to find an alternative method to edit standard node fields in the future.

Thanks for everyone's help with this bug.

michellezeedru’s picture

Thanks Kratib and Mark_Johnson for working on this! With the latest dev version, the error was resolved for me as well and I was able to get to the settings page, and get to the "Modify Node Fields" selection list from there.

I am having trouble getting Modify Node Fields to work with fields of type "Select list" or "Nodereference", though. But I should start a separate ticket for this (or search first to see if this exists already). Thanks again!

Status: Fixed » Closed (fixed)

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

tonytosta’s picture

This issue is occurring for me right now. I tried a very simple view with both the dev and latest stable version of VBO. I do not have Panel Nodes enabled.

- when i try to update the Style settings:

An error occurred at /admin/build/views/ajax/display/[view-name]/default/style_options.

Error Description: 0: 

- clicking save while my view after i set the Style settings to Bulk Operations results in a page not found:

No data received
Unable to load the webpage because the server sent no data.