PDA

View Full Version : Cannot get into Administrator Permissions


TomDac
06-12-2014, 05:11 PM
Hi all,
Been the admin for many years and thought it was time to make one of the other guys an admin too, so I can take a vacation. So I made him admin, by switching his usergroup to Administrators.

I go into usergroup manager for Administrators and see him in there. But he still cannot access all the stuff in the admin CP that I can. That led me to try going into the Administrator permissions, which I don't think I've ever done before... When I try, I get the message saying:

Sorry, you are not allowed to edit administrator permissions.

If you think you should have permission to access this page, you will need to edit the $config['SpecialUsers']['superadministrators'] variable in the includes/config.php file.

To allow the administrators to access this page, edit the variable to include the user IDs of those administrators should have access, separating each user ID with a comma, like this:

$config['SpecialUsers']['superadministrators'] = '1,25,57';

To allow only a single administrator to access this page, simply add that user's ID with no commas, like this:

$config['SpecialUsers']['superadministrators'] = '1';

OK.. so I opened the config.php file and put in my user ID, which is 1, saved the config.php and tried getting into the Administrator Permissions again, but it gave me the same error.

Do I have to re-start apache or anything to get this to work?? What am I doing wrong? I'm pretty sure this is the correct config.php file because the first time I edited it, I made a typo and after I saved it when I brought up the forum, I got an error message... I went back into the config.php, found the mistake and fixed it and now the forum comes up, but I still can't get into Admin permissions in the Admin CP.

Any suggestions would be appreciated. I'm using 4.2.2

Tom
www.martinloganowners.com/forum/

Zachery
06-12-2014, 06:24 PM
Are you sure your user is userid 1?

TomDac
06-13-2014, 12:43 PM
Yep.. absolutely sure it's userid 1.

Weird, right?

TomDac
06-13-2014, 01:53 PM
Here are a couple of screen shots

thedino
07-18-2014, 01:48 PM
I have same issue not sure what to do... I am testing if forum upgrade will work so there might be some cookies problem but that should be clear... and I should not be able to access admin page also.
Did you find solution?

TheLastSuperman
07-18-2014, 05:20 PM
Be sure to check the config file, by default userid ! is typed into the line:
$config['SpecialUsers']['superadministrators'] = '1';

So check config.php for $config['SpecialUsers']['superadministrators'] = '1'; <-- Ensure the one (1) is actually there. If you cloned a site i.e. made a test site and did not change the cookie setting i.e. $config['Misc']['cookieprefix'] = 'bb'; to something different then when you login the test admincp while you were previously on the live admincp it will log you out.

Bluemax712
07-21-2014, 03:47 PM
also check if same account is also a member of another lower group like moderators
which may prevent access - it might depend on which is the Primary group

Zachery
07-21-2014, 04:55 PM
It doesn't, the only thing administrator permissions cares about is the superadmin setting, or can give administrator settings setting, which is also on that page.

If their userid was really correct, they'd be able to get in.