Cannot administer account types
SwitchBlade - April 18, 2007 - 12:19
| Project: | Account Types |
| Version: | 5.x-1.0 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | rconstantine |
| Status: | closed |
Jump to:
Description
I activated the module but I don't see the config section in admin or under user. I do, however see that all users are in the basic account. When I try to add roles to existing users I can't. When I try to create a new user the account types only has basic as a choice. I try to add more choices but am not given the option anywhere on my site.
Is there a file I have to alter before this module shows up in the admin section? Do I have an outdated version?
Thanks for any help with this.
-SB

#1
You don't need any other files, and you don't need to alter anything. You should see the menu items right away. If you access to your database, try deleting all rows from the cache_menu table. This will force Drupal to rebuild it. From what you said, I take it that you don't even have menu items showing up, correct? Very strange.
You said, When I try to add roles to existing users I can't. If you don't have the menu options, what are you trying? Same goes for when you said, When I try to create a new user the account types only has basic as a choice. I try to add more choices but am not given the option anywhere on my site. What is it you are trying?
BTW, don't use this on a live site until you see a new release in the next day or two as someone else reported a critical bug that I'll be fixing today.
Some things you can check: 1) before clearing out cache_menu, see if the menu items for this module are present (compare with accounttypes_menu function); 2) see if the tables that should have been created for this module were, in fact, created (compare with accounttypes_install function); 3) see if the variable that should have been added to the variable table was created (I can't remember where this one is declared. try a search in the code for the word 'variable')
#2
This is all on the test site. I'll hold off until I test the new release. Thanks for the heads up.
No, I have all the regular menus but that Account Type menu isn't showing up. I thought that maybe it was disabled on the menus page but that's not the case. Just the account type items aren't showing up.
I just wanted to add more choices to place users besides basic. Even though I'm the admin it won't let me change roles because everyone (including me) is in the basic account.
In the phpMyAdmin database I see the list of menu items for accttype: accounttypes, accounttypes_roles, accountytpes_users. That's where I went in & added types by adding more rows in the table. I'll delete if that was the wrong thing to do.
When I go to "list users" or "edit profile" I see a column for account types. "Basic" is the only thing listed in profile and "none" is listed with the list of users. No option to "add account type" anywhere. I checked the listed menus in the navigation block, the menu page, the main administer page and the main user management page.
To do the check where do I look for "accounttype_menu function"?
-Sorry for all the questions. I'm really new at this.
This is a huge help
SB
#3
Also, I enabled accounttype access controls. Since they were listed there I was hoping that would help but nothing.
#4
@SwitchBlade- you said, That's where I went in & added types by adding more rows in the table. I'll delete if that was the wrong thing to do. You shouldn't have to add anything by hand. Go ahead and delete any rows you added.
Confirm for me that you cannot see "Account Types" as a menu item on your site under "User management". That is where everything takes place as mentioned in the README.txt.
Also, if you don't see that menu item, can you manually enter the paths mentioned it the README?
#5
Yes, I don't see the actual menu item "AccountTypes". I'll go ahead and delete the rows I added.
Just to confirm, do I create the paths in the directory for my site via folders?
ie: admin --> user --> accounttypes
or
do I create actual node pages to create the path
or do i create new menu items.
If so, will either of these methods bring up the information in the tables already created in the db?
-SB
#6
rconstantine:
This module doesn't depend on another one right?
Just wanted to make sure I didn't miss something completely.
-Thanks again
SB
#7
This module does not depend on any others. At install, it is supposed to create menu items for you. The paths mentioned in the README are automatically generated per regular Drupal wonderfulness as part of the menu creation process just mentioned. Likewise, table creation a modification is also handled by the module. You should NOT mess with the database by hand.
Let me as you a stupid question: where did you install this module? Is it in "/sites/all/modules/accounttypes" under your site root? All modules should go in "/sites/all/modules". This is a physical location on the hard drive.
Also, does this module show up on the module admin page "/admin/build/modules" under your site URL? This is a URL path.
If this is on the module list, then at this point I recommend that you 'disable', then 'uninstall' (from the uninstall page) and wait for the forthcoming release to try again.
#8
I install the modules in the module folder not the one in sites/all/modules.
Could that be the problem? I didn't want all modules to show up on both my sites if one began to give me problems. Should I try moving the folder into the sites/all/module folder and see if that works?
#9
Also, the module shows up in the admin/module section under NeighborForge.
#10
Ok, I moved the folder to the sties/all/modules folder... still showed up in the modules list on the site under the 'NeighborForge' section but would not show up in the menu list.
So I took your other suggestion & simply deleted the module & I'll wait for the new release.
I appreciate all your help with this!
-SB
#11
I just hope we can get this to work for you. Nobody else seems to be having these kinds of problems.
BTW, you can install modules in whichever folder you like; as long as it shows up in your module list, things should be good. However, Drupal is now recommending that user modules (non-core) be placed where I suggested.
The new version is now out.
#12
Cool. I'll try the new version tonight and see if that works. I'll also install it to the new location you suggested.
I'll try it out on my backup test site. Maybe there's too much going on with the first test sight. lol
I'll report back either way things turn out!
Thanks!
-SB
#13
Ok, I uploaded the new release (I picked the one that was 5.x-1.x-dev) into the sites/all/modules; enables it and now I see "assign roles" and "manage old users" across the top of my 'User Management' page.
I still do not see the actual menus or a place to add account types.
In "assign roles" I can assign roles to the 'basic account' only.
I unchecked the basic account association with the 'authentic user' but nothing else poped up as a choice.
Is there anything else I can try?
At least now I see some choices for account type just not how to create new ones or administer them.
For now I'll just turn it off.
#14
I'm having some other issues myself and will be doing a fresh install of Drupal later this week. I definitely need to get this figured out. I don't know what is wrong with my menu crap. I haven't had issues in any of my other modules, released to the public or otherwise, but this one is giving my fits -- and it only seems to be the menus.
I'll let you know.
#15
Thanks rconstantine.
It seems that the older version showed a little bit more than the updated on but they both had the main menu missing.
Looking forward to trying again!
#16
Okay, I'll have to puzzle this one out.
#17
I think I figured this out. Was a stupid typo on my part, it seems. I was simply (?) pointing the default local task to the wrong place. It is hopefully fixed. I'll upload later today. Look for the new release tomorrow.
#18
Cool.
I think I see something new. lol
I looked again on my main site and tried going through the administer/by modules (not sure why I didn't think of this sooner).
Well, I now see the accounts type & how to add accounts & assign roles to them but it is still NOT showing on the main menu under administer --> user management. Also I can't find it in the administer/by tasks menu.
I hope this helps in what you're doing.
Thanks again for everything. I'll remember to look in administer/by modules as well as the other two but I'm not sure why it won't show up on the other menus if it's under this one.
#19
Since I haven't had a chance to upload the fixes yet, you can do a quick fix yourself if you are up to it. In the .module file, find:
$items[] = array('path' => 'admin/user/accounttypes',
'title' => t('Overview'),
'access' => user_access('administer accounttypes'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
and change it to:
$items[] = array('path' => 'admin/user/accounttypes/overview',
'title' => t('Overview'),
'access' => user_access('administer accounttypes'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
Yes, just add 'overview' to the path. That's it! I'm not sure how I screwed that up in the first place. For me, I changed this, and then the whole menu was working fine and the tabs were no longer showing up where they shouldn't.
#20
Thanks, I keep getting a fatal time out error on my server and it's not saving my changes. I'll try this again later and let you know what's up!
#21
All systems go!! Thanks. I fixed it on the test site & it worked so since the main site won't let me edit the file I'll just copy the test file over!
Thank you so much for this!
=)
#22