PDA

View Full Version : admincp redirect me to modcp


ahmadyousef
08-21-2016, 10:41 AM
Hi guys !

I have a problem , I am an administrator and when I am going to the admin area , I see my self in moderators area. I updated my config.php file and put my user ID number there , and it doesn't work. I tried another username , but it doesn't work either.
That is how I updated config file:


$config['SpecialUsers']['canviewadminlog'] = '129211';
$config['SpecialUsers']['canpruneadminlog'] = '129211';
$config['SpecialUsers']['canrunqueries'] = '129211';
$config['SpecialUsers']['undeletableusers'] = '129211';
$config['SpecialUsers']['superadministrators'] = '129211';


but with no luck ..
What seems to be the problem, Thank you.

MarkFL
08-21-2016, 01:50 PM
The userids need to be separated by commas. The way you have it set, the userid 129211 is the only one being affected. If that is your userid, then that isn't the problem, as that only affects what you can do once you are in the AdminCP and whether your profile can be altered from there.

ahmadyousef
08-22-2016, 04:52 AM
129211 is the number of my user id , so what seems to be the problem ?

alcazarx
08-22-2016, 06:12 AM
What are the values in the config.php file for admin-directory and mod-directory?

ahmadyousef
08-22-2016, 07:09 AM
admin-directory value is for admincp folder
and mod-directory value is for modcp folder


$config['Misc']['admincpdir'] = 'admincp';
$config['Misc']['modcpdir'] = 'modcp';

Lynne
08-22-2016, 03:26 PM
But are you a member of the administrator usergroup? Check the database and make sure that user.usergroupid is 6 for userid 129211

ahmadyousef
08-23-2016, 04:00 AM
yes the member is in the administrator usergroup and user.usergroupid=6

I don't know what is the problem here ,, I checked like everything I know..

--------------- Added 1471940018 at 1471940018 ---------------

Guys I am so sorry, I guess+mod_speling was active in my server, and the name of the admin folder was "Admincp" , that's why it kept redirecting me to the modcp url..
Thank you for your time.

Lynne
08-23-2016, 04:24 PM
I'm glad you got it fixed and thanks for posting what the problem was.