Closed (fixed)
Project:
Views Bulk Operations (VBO)
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2011 at 06:02 UTC
Updated:
12 Mar 2016 at 21:43 UTC
Jump to comment: Most recent
Comments
Comment #1
bojanz commentedOdd.
What is the (add user) path that gives a 404?
Comment #2
gratefulsk commentedIt's the default path set by Drupal which is /admin/people/create
Comment #3
colin_young commentedI can confirm the behavior. When I switch the path of the view back to admin/people2, the create path works again.
Comment #4
bojanz commentedLooked into this.
Seems that you can't just override a system path, child items (like the "create" one) get messed up.
Your best bet is to download Administration menu, it comes with a module named "Administration views" that will replace all your system lists (content, people, comments, taxonomy) with VBO-enabled views. It implements a special views display plugin so that the child items continue to work.
Comment #5
colin_young commentedExcellent. That will solve several problems for me at once :)
Comment #6
gratefulsk commentedThis works good, but it seems that the Comment Approval page gets disabled. www.example.com/admin/content/comment/approval
Comment #7
bojanz commentedYou can report that in the "Administration menu" issue queue.
Comment #9
giorgosktook me some time to find this thread
I was looking for "Missing argument 2 for views_page() in views_page()" which is the actual warning message that comes up when visiting admin/people/create after changing the VBO user view to admin/people
just mentioning it just in case someone else is looking using previous phrase
Comment #10
jessehsThis is likely the same issue I ran into with VBO for Drupal 6. The problem, I think, is that the Drupal core User module specifies only one callback function for the /admin/user/user path. With both /admin/user/user/list and /admin/user/user/create, they fall back to using that same callback function. When you take over that path with Views, the "admin/user/user/create" path's callback function is no longer found, since it's parent now has a different callback function.
The solution is simple: tell the /admin/user/user/create path where to find its callback function. Implement a hook_menu_alter in a custom module:
By the way, in the view, I set the path to "admin/user/user/list" and set its menu item to be the "default menu tab" called "List". For its settings, I set its parent to be "Menu tab" named "Users". This results in the standard behavior from Core.
Comment #11
dozymoe commented@jessehs thanks, YOU MAN, saved my life :o .
Comment #12
BarisW commentedFor Drupal 7, it should be this:
Comment #13
geerlingguy commented+1 to @BarisW's code snippet above, though formatted a little more correctly/succinctly, it should be: