I'm not entirely sure why but suddenly I can't add new users as admin (user 1), I've also tried creating a role with all permissions enabled and still can't add a new user. I keep the "Access Denied" page. I've tried uninstalling modules, tweaking permissions etc but still no success.
Any help would be appreciated.
Thanks.
Comments
Comment #1
dpearcefl commentedAny errors in the Drupal log or your webserver's log? Or database log?
Comment #2
vin247 commentedNo error logs, I've also enabled PHP error reporting but I get nothing.
Looking at drupal's report I see the following:
Type access denied
Date Wednesday, June 15, 2011 - 09:19
User admin
Location http://www.mysite.com/user/register?destination=admin%2Fuser%2Fuser%2Fcr...
Referrer http://www.mysite.com/admin/user/user/create
Message user/register
Severity warning
Hostname 00.000.000.000
Operations
Comment #3
dpearcefl commentedRandom thoughts:
Comment #4
vin247 commentedThe most recent module I installed was the ERP module as it rebuilt permissions, which I suspect may be the problem but I can't be certain. Anonymous users can register for a user account with no problem however so I'm quite baffled why I can't as user 1/admin.
Will be looking into those points you've made.
Comment #5
dpearcefl commentedHave you rebuilt permissions yourself? /admin/content/node-settings
Comment #6
dpearcefl commentedHave you disabled that module, rebuilt permissions and then retested?
Comment #7
cptlonestar commentedI thought I had the same problem since there wasn't a column listing admin permissions. It looked different in the O'Reilly Using Drupal book than what is now being used in version 6x.
I realized at the very bottom of the permissions page there are check boxes under "user module" that allow you to check whether or not a user has admin permissions over the entire site. Perhaps this is the issue? Or are you missing this specific user module permissions section?
Comment #8
vin247 commented@dpearceMN yep, I've tried that and unfortunately no success
@Matthew33 I do have those options available in permissions, still no luck yet though
Comment #9
dpearcefl commentedCan you screenshot your permissions page and attach it?
Comment #10
vin247 commentedscreenshot of permissions page, sorry it's quite large, just used screengrabber in firefox
Comment #11
dpearcefl commentedI would disable all non-core modules, rebuild permissions and try again. I know you say you've already done this, but try again.
Anything else not work on the site? Have you tried to use Drush to create a user? You might get a better error message.
Your are on the latest 6.x Drupal? Have you hacked Drupal at all?
What about using the Devel module and turning on the redirection debugging?
Comment #12
vin247 commentedTried enabling/disabling modules again but still no luck, not getting much from the devel module.
Drupal version = 6.19, not hacked drupal.
How do I create a new user using Drush?
Cheers
Comment #13
dpearcefl commentedPlease try the most recent version of Drupal (6.22 I believe) as this problem may have been fixed. Obviously in a test environment.
If you have drush installed: drush help user-create
Comment #14
ilvdrupal commentedI am also having same problem after migrating site to another server. (from windows to linux) . When I submit the use create form, it does not say access denied but no action performed. users list is displayed directly and the new user is not added. Anonymous users can register through registration form. Please let me know if you could solve this. Thanks,
Comment #15
ilvdrupal commentedMy issue fixed.
After checking for long time, realized submit button value was changed. Reverting it back to original 'create new account' helped me fix this issue.
Comment #16
dpearcefl commentedComment #17
dpearcefl commentedWaiting to hear from the OP (vin247).
Comment #18
vin247 commentedIt works fine on a fresh install of both the version I'm using for the project and .22, not tried drush method yet, however the status of the project has stalled so you can close this thread if you want, however I'd like to know how ilvdrupal managed to revert the value of the submit button???
Comment #19
dpearcefl commentedComment #20
ilvdrupal commented@vin247 : Submit button value(from 'create new account' to 'submit') was changed by previous developer. I just removed those changes.
Comment #21
dharani87 commented@ilvdrupal
where i have to modify those changes( submit to create new account)
I checked it in user.module
where it still shows the 'create new account' text in submit value but my output(user/user/create page) shows the button value 'submit'..
Plz help me!!!
Comment #22
myregistration commentedsubscribe
Comment #23
ilvdrupal commented@dharani87 : sorry for late reply. then must be some custom module through form_alter hook. If you still cannot find, i suggest irc. easier to help.
Comment #24
Jerimee commentedHad the same problem. Restoring the #value of the user_register submit button to "create new account" per
http://drupal.org/node/1188976#comment-4733292
fixed it.
I had a custom module with form_alter hook that altered the user registration form.
Comment #25
Jerimee commentedThis comment is off topic (sorry!).
The stringoverrides modules successfully changes the text of the user_register submit button: http://drupal.org/project/stringoverrides
Comment #26
cjd400 commentedFound one module that causes it at least - Simplenews Scheduler seems to cause the problem. I have let the writer know here http://drupal.org/node/1251322 - glad if this helps anyone - does anyone else know of any other modules that cause this?
Cheers
CJD400
Comment #27
cjd400 commentedbtw the stringoverides did not solve this - it seems the code (whatever is causing this) within Simplenews Scheduler overwrote it etc.
CJ
Comment #28
dgtlmoon commentedcomment #26 , I can't seem to reproduce this when I enabled the simplenews scheduler module
Comment #29
dgtlmoon commentedCan you disable javascript in your browser and see if it works? that would help to rule out any jQuery
Comment #30
dgtlmoon commentedAlthough I have no been able to reproduce this, I have refined the jQuery selector so it only applies to the newsletter form.
http://drupalcode.org/project/simplenews_scheduler.git/commit/8f8569b
Try the current dev release and let me know if it helps! (Don't forget to flush your cache/compressed js files)
Comment #31
vin247 commentedback on the project again so if anyone has any other ideas on how to solve this problem that would be great!
I've tried creating a user with drush and it works fine. Obviously this isn't practical for when I had the site over to the client to manage so would like to get it sorted.
Comment #32
dgtlmoon commented@vin247 Can you reproduce the problem through the browser?
Comment #33
vin247 commentedhmm i've only just had time to test in on the browser again and funnily enough it works fine now, maybe the drush method gave it a kick up the backside, I don't know, but all is well for now.
Thanks to everyone for the help!