Hello,

When I enable VBO 7.x-3.2, on every page load I see the following errors:

Warning: include_once(sites/all/modules/contrib/views_bulk_operations/actions/book.action.inc): failed to open stream: No such file or directory in views_bulk_operations_load_action_includes() (line 59 of /Volumes/Sites/4Com/drupal7/sites/all/modules/contrib/views_bulk_operations/views_bulk_operations.module).
Warning: include_once(): Failed opening 'sites/all/modules/contrib/views_bulk_operations/actions/book.action.inc' for inclusion (include_path='.:') in views_bulk_operations_load_action_includes() (line 59 of /Volumes/Sites/4Com/drupal7/sites/all/modules/contrib/views_bulk_operations/views_bulk_operations.module).
Warning: include_once(sites/all/modules/contrib/views_bulk_operations/actions/user_cancel.action.inc): failed to open stream: No such file or directory in views_bulk_operations_load_action_includes() (line 59 of /Volumes/Sites/4Com/drupal7/sites/all/modules/contrib/views_bulk_operations/views_bulk_operations.module).
Warning: include_once(): Failed opening 'sites/all/modules/contrib/views_bulk_operations/actions/user_cancel.action.inc' for inclusion (include_path='.:') in views_bulk_operations_load_action_includes() (line 59 of /Volumes/Sites/4Com/drupal7/sites/all/modules/contrib/views_bulk_operations/views_bulk_operations.module).

By patching the views_bulk_operations.module file as follows, I can suppress the error messages, although this presumably won't prevent errors if and when the code that was in those files is then required:

Change:

  if (!$loaded) {
    foreach ($files as $file) {
      include_once $path . $file;
    }
    $loaded = TRUE;
  }

... to:

  if (!$loaded) {
    foreach ($files as $file) {
      if (is_readable($path . $file)) {
        include_once $path . $file;
      }
    }
    $loaded = TRUE;
  }

I haven't had a chance to test this against the -dev version yet so my apologies if things are in a different location, but I thought I should share this here in case it's of any use to anybody else :)

Alex

Comments

alexharries created an issue.