2

I have trouble with my new Joomla 3.x site (installed in localhost (WAMP 2.4) the day before) , my OS is windows XP Professional ,laptop DELL Inspiron 640m.
I can't access neither the backend nor the frontend of my site, this is the error message i got

Error You cannot access the private section of this site

I thought it was a password issue so I changed my password (in users table with MD5 function) but no positive result.
Any advise.
Nadir.

  • 2
    Please note that Joomla 3.x does not use MD5 for hashing passwords. It uses Bcrypt. I also had the same issue a while back and wrote a solution: joomla.stackexchange.com/questions/4174/… – Lodder Jul 29 '15 at 20:55
  • When do you get that error, and what do you mean by "can't access". Does the admin login come up when you browse to the administrator section? Are you trying to login with Super Admin or another user? Did it ever work right after installation? – Lance Jul 30 '15 at 4:10
  • @Lodder I don't know about Bcrypt , I followed the steps of a video which was using MD5 to hash passwords . i checked to find Bcrypt , i didn't find it in functions. – Nadir Jul 30 '15 at 6:20
  • @Lodder When I pasted your code : link in localhost and executed it , I have got an error message : ' #1146 - Table 'joomla.jos_user_usergroup_map' doesn't exist' – Nadir Jul 30 '15 at 6:47
  • @Lance I got the error when I installed joomla 3.0.1 , i was trying to login as admin from backend .<br/> now I can't got the backend page I have only the frontend one and when i try to access the site admin I have the error message again . – Nadir Jul 30 '15 at 7:12
1

The error message in Joomla when the username/password don't match are: Warning | Username and password do not match or you do not have an account yet.

Your error seems to be related to the frontend, and the corresponding administrator section error would be:

You do not have access to the Administrator section of this site.

This is all caused during the "authorization" process after you login. Basically "authentication" completes successfully (in other words your username and password are correct) then the code looks to see what you're allowed, or authorized, to access.

The error is triggered here:

File: plugins/user/joomla/joomla.php
Function: onUserLogin
Line: (approx 198-207)
      // Check the user can login.
      $result = $instance->authorise($options['action']);

      if (!$result)
      {
           $this->app->enqueueMessage(JText::_('JERROR_LOGIN_DENIED'), 'warning');
           return false;
      }

What you need to do is either reinstall your site, or look up issues with the ACL tables. I would recommend reinstalling.

  • 1
    Ok Lance I will reinstall Joomla , thank you and to all guys for your help – Nadir Jul 30 '15 at 13:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.