I'm creating a new website. I just went to add a new user and got a Page not found error. The url is 'admin/user/user/create'. I know this was working yesterday because I added a new user then.

The only thing I can think of that I was doing related to users was adding the location/gmap modules so that I could add the location to the user profile. I was looking for the location on existing users, but it never showed up, so I thought I would try adding a new user - that is when I found it was not working. I have since disabled the 'User Locations' module, but I still get the Page not found.

I do have the path module enabled, but I don't think this is related as all of the other pages are working just fine - I just can't add a new user.

I don't know what to do to get this working again, or where to start with debugging it.

Any ideas?

Comments

lhtown’s picture

Sounds like maybe the user you are logged in as doesn't have the proper permissions. Did you try it as user 1 or double check your permissions?

CrosiarCM’s picture

Sorry, I should have mentioned that I'm logged in as the admin.

kitsunechan’s picture

It may just be me, but I think the url may be wrong. I would think it should be admin/user/create instead of admin/user/user/create.

CrosiarCM’s picture

But oddly, that takes me to the User management page.

CrosiarCM’s picture

I checked with another website I'm making and it goes to the same admin/user/user/create as well.

CrosiarCM’s picture

I also have tried disabling the cleanurls, but it also had no effect.

ryivhnn’s picture

When in doubt, Performance -> clear cache! Just on the offchance :)

Bloody clean urls, I like the idea but I'm not intelligent enough to make them work.

works at bekandloz | plays at technonaturalist

CrosiarCM’s picture

I have all of my caching disable for development, but it was a good idea. I went ahead and cleared it just to be sure - still no luck. I'm installing the netbeans php debugger now in the hope that I can figure it out that way.

CrosiarCM’s picture

Ok, I'm debugging now, here is what I am seeing.

It has a page_callback of views_page with the argument "create". It then calls the function views_get_view in the module views.module were it looks for a view called "create" and does not find it. This seems to be the cause of the page not found.

What it looks like to me is that the User Locations module changed the page to use a view but, for whatever reason, never installed the view.

It looks to me like I need to fix the entry in the menu_router table.

CrosiarCM’s picture

Ok, if anyone else runs into this, I modified the menu_router table for the path admin/user/user/create. I changed the field page_callback from "views_page" to "user_admin".

Now I can add users again. I'm still not sure what module did this, but I suspect it was the User Locations module. If I find out for sure who is responsible, I'll submit the bug.

Of course I still don't have locations for my users :(

giorgosk’s picture

that solved it for me thanks

------
GiorgosK
Web Development

giorgosk’s picture

here is an SQL statement that accomplishes this

UPDATE `menu_router` SET `page_callback` = 'user_admin' WHERE `menu_router`.`path` = 'admin/user/user/create';

------
GiorgosK
Web Development

CrosiarCM’s picture

Ok, I uninstalled the User Locations module and then reinstalled it - same thing happened. So now I'm sure this is the module that is causing this. I'm still hoping I can make a custom view to get this module working.

I'll submit a bug report now.

mautumn’s picture

Thanks for your comments CorasirCM. They help me.

However, I have a feeling that location module exposes the site to unauthorised data. Please have a look at http://drupal.org/node/688516

GlossyIbis

greta_drupal’s picture

Had the exact same thing happen to a site that I built. It occurred after updating to Drupal 6.17 and about 20 contrib modules. So, hard to say which one has thrown it off. However, I do _not_ have Locations installed.

I'll try your fix. *fingers crossed*

greta_drupal’s picture

Darn. Mine was already set as user_admin, so no resolution there for me.

trungonly’s picture

Looking somewhere I found this is because of the Views module that added a view with the same path admin/user/user that overwritten the user module. This is not good and made me crazy for a while. To solve problem, you just please delete this view or change its path to other than admin/user/user.

batigolix’s picture

I confirm that this caused by the views module when you enable this view:

User view:
admin_users
Path: admin/user/user2
Emulates the Drupal user administration page.

By revoking and disabling the view the Add user page becomes available again.

bloke_zero’s picture

Just to confirm that enabling the views modules view 'User view: admin_users' causes this problem.

Disable that view and your golden - Imagine my surprise stepping through in the debugger and seeing the page call back was 'views_page'. I had the view overriding the vanilla Drupal user display so I suppose it wasn't really unexpected just unwelcome.