I've created a content type called "article", and I created a view that has the Publish Post and Unpublish Post operations available. The path for the page view is mysite.com/articles. When I select all the items on the page and click on Execute (after selecting Publish Post), I get the header "Are you sure you want to perform 'Publish post' on selected rows?", but a message below that saying "Page Not Found". In addition, the URL is mysite.com/articles,/articles,/articles.
.

Comments

infojunkie’s picture

This sounds like a familiar problem. Can you please confirm that when you view the page source, there is a line that starts with

jQuery.extend(Drupal.settings, ...

and that contains an entry

"vbo": { "url": [some value] }

What is the value of [some value]?

Can you please try the latest dev release? If it's the same problem I have in mind, it should be fixed there. You will need to re-select the actions in your VBO settings.

wonder95’s picture

Yes, here is the line:

jQuery.extend(Drupal.settings, { "basePath": "/", "tabs": { "slide": false, "fade": false, "speed": "slow", "auto_height": false, "next_text": "next", "previous_text": "previous" }, "vbo": { "url": [ "/articles%2C/articles%2C/articles", "/articles%2C/articles%2C/articles" ] } });

Thanks.

infojunkie’s picture

Thanks for the feedback. Did you get a chance to try the latest dev release?

wonder95’s picture

Yes I did, and it's working now.

Thanks.

infojunkie’s picture

Version: 6.x-1.5 » 6.x-1.x-dev
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

Oleksa-1’s picture

Version: 6.x-1.x-dev » 6.x-1.10
Component: Code » Core
Status: Closed (fixed) » Active

I have same problem with vbo 1.10

jQuery.extend(Drupal.settings, { "basePath": "/", "admin_menu": { "margin_top": 1 }, "thickbox": { "close": "Close", "next": "Next \x3e", "prev": "\x3c Prev", "esc_key": "or Esc Key", "next_close": "Next / Close on last", "image_count": "Image !current of !total" }, "vbo": { "url": [ "moderator_page", "moderator_page" ] }, "views": { "ajax_path": [ "/views/ajax", "/views/ajax" ], "ajaxViews": [ { "view_name": "new_sp_not_approved", "view_display_id": "block_1", "view_args": "", "view_path": "moderator_page", "view_base_path": null, "view_dom_id": 2, "pager_element": 0 }, { "view_name": "new_forum_topics_not_approved", "view_display_id": "block_1", "view_args": "", "view_path": "moderator_page", "view_base_path": null, "view_dom_id": 3, "pager_element": 0 } ] } });

To fix it temporary I use one of the old version of VBO dev

; $Id: views_bulk_operations.info,v 1.2.4.1.2.2 2009/05/01 23:36:09 kratib Exp $
name = Views Bulk Operations
description = Exposes new Views style 'Bulk Operations' for selecting multiple nodes and applying operations on them.
dependencies[] = views
package = Views
core = 6.x
php = 5.0

; Information added by drupal.org packaging script on 2009-09-11
version = "6.x-1.x-dev"
core = "6.x"
project = "views_bulk_operations"
datestamp = "1252673330"

This one works OK.

infojunkie’s picture

Version: 6.x-1.10 » 6.x-1.x-dev
Status: Active » Fixed

The latest dev should fix this issue.

Status: Fixed » Closed (fixed)

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

sycho’s picture

Component: Core » Actions
Assigned: Unassigned » sycho
Priority: Normal » Major
Status: Closed (fixed) » Active

Experiencing this problem with VBO
Downloaded the latest VBO dev and it didn't solved my problem.

jQuery.extend(Drupal.settings, { "basePath": "/eft/", "admin_menu": { "margin_top": 1 }, "vbo": { "views-bulk-operations-form--1": { "form_id": "views_bulk_operations_form__1", "view_name": "eft_nieuws_overzicht", "options": { "grouping": "", "columns": { "field_image_fid": "field_image_fid", "title": "title", "body": "body", "status": "status", "edit_node": "edit_node" }, "default": "-1", "info": { "field_image_fid": { "separator": "" }, "title": { "sortable": 1, "separator": "" }, "body": { "separator": "" }, "status": { "sortable": 1, "separator": "" }, "edit_node": { "separator": "" } }, "override": 1, "sticky": 0, "order": "asc", "operations": { "node_mass_update-a27b9efabcd054685a549378b174ad11": { "selected": 0, "skip_confirmation": 0, "label": "" }, "node_mass_update-14de7d028b4bffdf2b4a266562ca18ac": { "selected": 0, "skip_confirmation": 0, "label": "" }, "system_message_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "node_save_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "node_publish_action": { "selected": 1, "skip_confirmation": 1, "label": "" }, "views_bulk_operations_delete_node_action": { "selected": 1, "skip_confirmation": 1, "label": "" }, "token_actions_message_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "system_send_email_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "views_bulk_operations_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "views_bulk_operations_script_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "node_promote_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "views_bulk_operations_fields_action": { "selected": 0, "skip_confirmation": 0, "label": "", "settings": { "php_code": 0, "show_tokens": 0, "display_fields": { "_all_": "_all_" } } }, "views_bulk_operations_taxonomy_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "views_bulk_operations_argument_selector_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "node_make_sticky_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "node_make_unsticky_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "node_mass_update-0ccad85c1ebe4c9ceada1aa64293b080": { "selected": 1, "skip_confirmation": 1, "label": "" }, "node_unpublish_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "node_mass_update-9c585624b9b3af0b4687d5f97f35e047": { "selected": 0, "skip_confirmation": 0, "label": "" }, "image_operations_rebuild": { "selected": 0, "skip_confirmation": 0, "label": "" }, "token_actions_goto_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "token_actions_send_email_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "node_unpublish_by_keyword_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "pathauto_node_update_alias_multiple-620e193b20ba9caa374fea9ca0ad38f0": { "selected": 0, "skip_confirmation": 0, "label": "" }, "node_mass_update-c4d3b28efb86fd703619a50b74d43794": { "selected": 0, "skip_confirmation": 0, "label": "" }, "node_mass_update-8ce21b08bb8e773d10018b484fe4815e": { "selected": 0, "skip_confirmation": 0, "label": "" }, "node_unpromote_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "system_goto_action": { "selected": 0, "skip_confirmation": 0, "label": "" }, "node_assign_owner_action": { "selected": 0, "skip_confirmation": 0, "label": "" } }, "execution_type": "1", "max_performance": 0, "display_type": "0", "display_result": 1, "merge_single_action": 1, "hide_selector": 0, "preserve_selection": 1 } } }, "views": { "ajax_path": "/eft/?q=nl/views/ajax", "ajaxViews": [ { "view_name": "eft_nieuws_overzicht", "view_display_id": "page_1", "view_args": "", "view_path": "content/inhoud-aanpassen", "view_base_path": "content/inhoud-aanpassen", "view_dom_id": 1, "pager_element": 0 } ] } });

When I execute my action my url becomes:
http://www.eftnv.be/eft/?q=nl/content/inhoud-aanpassen?q=nl%2Fcontent%2F...

And I get a page not found error. The view_path and view_base_path are correct though

infojunkie’s picture

Those !@#$ regressions! Working on it.

infojunkie’s picture

Status: Active » Fixed

Fixed in the latest dev. Please try it and let me know.

sycho’s picture

Downloaded the latest dev. Still get the page not found error and in firebug it says that views-bulk-operations/js/select was not found on the server. Missing file in js folder I think.

infojunkie’s picture

Can you make sure the file js/views_bulk_operations.js has a function Drupal.vbo.prepareAction that looks like:

Drupal.vbo.prepareAction = function() {
  // Skip if no view is Ajax-enabled.
  if (typeof(Drupal.settings.views) == "undefined" || typeof(Drupal.settings.views.ajaxViews) == "undefined") return;

  var $form = $(this);
  $.each(Drupal.settings.views.ajaxViews, function(i, view) {
    if (view.view_name == Drupal.settings.vbo[$form.attr('id')].view_name) {
      var action = $form.attr('action');
      var params = {};
      var query = action.replace(/.*?\?/, '').split('&');
      var cleanUrl = true, replaceAction = false;
      $.each(query, function(i, str) {
        var element = str.split('=');
        if (element[0] == 'view_path') {
          action = decodeURIComponent(element[1]);
          replaceAction = true;
        }
        else if (element[0] == 'q') {
          cleanUrl = false;
        }
        else if (typeof(view[element[0]]) == 'undefined' && typeof(element[1]) != 'undefined') {
          params[element[0]] = element[1];
        }
      });
      if (replaceAction) {
        params = $.param(params);
        if (cleanUrl) {
          action = Drupal.settings.basePath + action;
        }
        else {
          params = 'q=' + action + (params.length > 0 ? '&' + params : '');
          action = Drupal.settings.basePath;
        }
        $form.attr('action', action + (params.length > 0 ? '?' + params : ''));
      }
    }
  });
}

Otherwise you got an earlier dev version of the module.

infojunkie’s picture

I also committed a fix for the missing views-bulk-operations/js/select. All these issues are happening because Clean URL is off. Please wait 12 hours before trying again or get from git branch 6.x-1.x directly.

sycho’s picture

I'v downloaded the new version from github. Firebug still gives me the error views-bulk-operations/js/select error. I can't turn on Clean URL because I don't have access to the webserver apache. Is there another way to enable it?

sycho’s picture

I've downloaded the latest dev from drupal website and now everything works fine! Thanks for your help!

Status: Fixed » Closed (fixed)

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

tanvirahmad’s picture

I have same issue...
I found when i use quick tabs ... and placed view block in that... then use VBO, it appends page argument to redirect after performing action then shows "The requested page "/home/1" could not be found.
"