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
Sounds like maybe the user
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?
Administrator
Sorry, I should have mentioned that I'm logged in as the admin.
maybe admin/user/create
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.
Yes, I thought that too
But oddly, that takes me to the User management page.
also
I checked with another website I'm making and it goes to the same admin/user/user/create as well.
I also have tried disabling
I also have tried disabling the cleanurls, but it also had no effect.
When in doubt, Performance ->
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
I have all of my caching
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.
Ok, I'm debugging now, here
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.
Ok, if anyone else runs into
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 :(
that solved it for me thanks
that solved it for me thanks
------
GiorgosK
Web Development
here is an SQL statement that
here is an SQL statement that accomplishes this
------
GiorgosK
Web Development
Ok, I uninstalled the User
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.
This helped, but...
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
Had the exact same thing
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*
http://ItsAboutTyme.com
Darn. Mine was already set
Darn. Mine was already set as user_admin, so no resolution there for me.
http://ItsAboutTyme.com
Because of the Views module
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.
I confirm that this caused by
I confirm that this caused by the views module when you enable this view:
By revoking and disabling the view the Add user page becomes available again.
Me too
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.
http://modelagnostic.co.uk/