I'm gettimg this error after creating the page and setting the operations.

warning: array_unshift() [function.array-unshift]: The first argument should be an array in /home/peterpan/public_html/modules/views_bulk_operations/views_form.inc on line 57.

Comments

harry slaughter’s picture

Assigned: Unassigned » harry slaughter
Nigeria’s picture

Priority: Critical » Minor

This error only occurs in Modules (as in http://www.mysite.com/admin/build/modules).

(I had originally didn't figure out how to use the module but after a number attempts got it to work without having to tweak anything.)

-- Ade Atobatele

Nigeria’s picture

I got it wrong again:

a) The original error noted above went away when I figured out how to use the module properly.

b) The following error was then noticed in Modules

warning: strpos() [function.strpos]: Empty delimiter. in /home/nspace/public_html/core/modules/views_bulk_operations/views_bulk_operations.module on line 69.

--
Ade Atobatele

harry slaughter’s picture

Status: Active » Closed (won't fix)

I have not seen this bug and am not aware of a way to reproduce it.

jstrat’s picture

I also get this error on line 69. All I did was install the module and activate it, the error occurred on the Modules List page. Looking at the code I am wondering if it is because I am using clean URL's ?

kulfi’s picture

Got this error after install:

warning: strpos() [function.strpos]: Empty delimiter. in /var/www/drupal57/sites/all/modules/views_bulk_operations/views_bulk_operations.module on line 69.
Ghostthinker’s picture

Hallo,
I got the same problem. I went into the views_bulk_operations.module on line 69. and made a print_r debug:

...
      $urls = views_get_all_urls();
      print_r($urls);die();
      foreach ($urls as $key => $url)

I found out that some urls did not provide a link (?), in my case it was organic groups. So I just did this:

      $urls = views_get_all_urls();
      foreach ($urls as $key => $url) {
	  if($url) {
        if (strpos($_GET['q'], $url) !== FALSE) {
          $view_name = $key;
          break;
        }
	  }

Helped. Greetings

kulfi’s picture

I was just evaluating this module. After the error I tried http://drupal.org/project/editablefields and was happy to find it did what I was looking for.