Frontend login error:“You cannot access the private section"

Need help upgrading your Joomla! website or converting to Joomla! 3.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
ypdmd
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sun Jul 27, 2008 7:34 pm

Re: Frontend login error:“You cannot access the private sect

Post by ypdmd » Wed Sep 11, 2013 9:20 pm

I just upgraded three sites from 2.5.x to 2.5.14 and my users no longer have front end access. I tried assetfix, which ran successfully in a few seconds, but did not solve the problem.
All help is appreciated. (and yes I believe they were jupgraded)

 
tmoberg
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Sep 18, 2013 2:38 pm
Contact:

Re: Frontend login error:“You cannot access the private sect

Post by tmoberg » Wed Sep 18, 2013 2:48 pm

This issue has taken me down for a month, and I finally got it fixed. So for the benefit of others I am posting my solution.

I patched to 2.5.14 and then my users could not log into the backend or to the private section of the frontend. It seemed odd that the Asset table had anything to do with this, but I ran the AssetFix code and that did not help. The trick was to sort the Asset table by Parent ID, then I noticed that there were indeed other entries with a value of 0, specifically for JEvent categories. Apparently during the upgrade from 1.5.x to 2.5.x this had not been changed (I used JUpgrade for that). It all worked fine until the 2.5.14 patch, which then did not like the other 0-value Parent IDs. I changed them to a value of 1, and now everything works.

Who knows what will break next!

User avatar
WebJIVE
Joomla! Explorer
Joomla! Explorer
Posts: 356
Joined: Thu Sep 15, 2005 6:04 pm
Location: Little Rock, Arkansas
Contact:

Re: Frontend login error:“You cannot access the private sect

Post by WebJIVE » Wed Sep 18, 2013 5:46 pm

Yep, 2.5.14 needed more testing.. Broke one of our sites with the 0 value in the parent as well. ACLManager doesn't detect those either and fix.
Web Design, Hosting, Flash Development, Graphics & Logo Design
"The Web Made Easy"
http://www.web-jive.com

User avatar
Chacapamac
Joomla! Guru
Joomla! Guru
Posts: 967
Joined: Wed Feb 20, 2008 6:50 am
Location: Canada, Montreal
Contact:

Re: Frontend login error:“You cannot access the private sect

Post by Chacapamac » Fri Oct 04, 2013 6:20 pm

Everything work on a newly install site. Administration and all.

I get the dreaded login component 1 crap in the admin and take out the error by trashing manually the cache and adding cache 0 in the configuration, but I cannot login anymore.

Run the asset.php and nothing, I enter my login, click, refresh to login. I basically can’t reach the administration anymore.. Next step ... Not to sure...


What should I try

My core login seem to be the only asset table at 0

1 0 1 119 0 root.1 Root Asset {"core.login.site":{"6":1,"2":1},"core.login.admin...


Lot of Parent ID to 1 ??????

Don’t know what to do next?
Can God help us?
Marketing, SEO, Web development - Powered by Joomla!
http://www.grafcomm.ca/

TheDani
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 108
Joined: Sat May 12, 2012 4:48 pm

Re: Frontend login error:“You cannot access the private sect

Post by TheDani » Sat Oct 05, 2013 10:47 pm

Same problem here. Running J!2.5
  • I have tried Extension Manager -> Database -> Fix.
  • I have tried running (an unmodified) assetfix.php. Took a second. Gave a warning at the bottom

    Code: Select all

    Warning: mysqli_ping() [function.mysqli-ping]: Couldn't fetch mysqli in /path/to/mysite/libraries/joomla/database/database/mysqli.php on line 190
  • Code: Select all

    SELECT count(*) FROM `j_assets` WHERE parent_id = 0
    Result: 1. So I have 1 record in asset table where parent_id = 0, 34 records where parent_id = 1 and 704 with other numbers. Should I change all those others to 1?
  • I have tried rebuild categories in Category Manager even though I dont use Joomla's native category manager. I could not find any rebuild buttons in K2.
  • I have tried rebuild categories in JEvents.
Any more suggestions?
Last edited by TheDani on Fri Oct 11, 2013 9:08 pm, edited 1 time in total.

User avatar
Chacapamac
Joomla! Guru
Joomla! Guru
Posts: 967
Joined: Wed Feb 20, 2008 6:50 am
Location: Canada, Montreal
Contact:

Re: Frontend login error:“You cannot access the private sect

Post by Chacapamac » Sun Oct 06, 2013 11:25 am

Where that problem come from?
how to get rid of it?
How to not get it at all?
Can God help us?
Marketing, SEO, Web development - Powered by Joomla!
http://www.grafcomm.ca/

TheDani
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 108
Joined: Sat May 12, 2012 4:48 pm

Re: Frontend login error:“You cannot access the private sect

Post by TheDani » Fri Oct 11, 2013 4:46 pm

I have upgraded from 2.5.11 to 3.1.5.

Same login error. I wen through the procedure in my last post. assetfix.php did not throw any error this time, but did also not fix the issue.

User avatar
Chacapamac
Joomla! Guru
Joomla! Guru
Posts: 967
Joined: Wed Feb 20, 2008 6:50 am
Location: Canada, Montreal
Contact:

Re: Frontend login error:“You cannot access the private sect

Post by Chacapamac » Fri Oct 11, 2013 8:27 pm

Really annoying, Somebody now what to do
• Can we have some information on what migration tools cause that ?
• How to bypass ?
• How to fix ?
Can God help us?
Marketing, SEO, Web development - Powered by Joomla!
http://www.grafcomm.ca/

TheDani
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 108
Joined: Sat May 12, 2012 4:48 pm

Re: Frontend login error:“You cannot access the private sect

Post by TheDani » Sat Oct 12, 2013 2:34 pm

I have it solved.

Verify your settings in:
* Users -> User Manager
* Users -> Groups
* Users -> Options
* The group your user is in
* System -> Global Configuration -> Permissions
* If you have K2, also check K2's user settings.

User avatar
C0nw0nk
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 248
Joined: Tue Jun 15, 2010 1:12 am
Location: United Kingdom, London
Contact:

Re: Frontend login error:“You cannot access the private sect

Post by C0nw0nk » Wed Oct 16, 2013 3:36 pm

sovainfo wrote:
carsten888 wrote:So use this code to just fix those rows which are broken.

Code: Select all

UPDATE `prefix_assets` SET `parent_id`=1 WHERE `parent_id`=0
No, should be:

Code: Select all

UPDATE `prefix_assets` SET `parent_id`=1 WHERE `parent_id`=0 AND id>1

Thanks sova allot of people keep posting to drop the assets table and re-instal just run this sql command and fix the issue so easly

User avatar
roadsider
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Thu Jan 17, 2013 7:13 pm

Re: Frontend login error:“You cannot access the private sect

Post by roadsider » Thu Feb 20, 2014 8:57 pm

Not for me, unfortunately. I have a fresh Joomla 3 install, no migration, and I'm getting the 403 error. I get to the admin area, but nothing shows up and I can't log out. I've tried the assetfix.php script and I've run the SQL queries. Nothing.

Really need some guidance with this.

lintila
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Mar 12, 2014 3:18 pm

Re: Frontend login error:“You cannot access the private sect

Post by lintila » Wed Mar 12, 2014 3:39 pm

Hello,

I have read the entire thread and tried the solutions offered here, however none of them have worked.

My situation is a little different. First of all, I did not upgrade from 2.5 -> 3.x

I started with a brand new database and install of Joomla 3.2.2. It has been running fine for about a month and I have 117 users that registered and logged in at various times.

Starting yesterday, I started getting emails from users that can no longer log in. They get the dreaded "You cannot access the private section of this site."

It seems only super users can login.

Not sure what happened to cause this as it has been fine for a month.

In trying the solutions listed here, I did not have any Assets with ID=0, they all look fine. I also updated my Joomla to 3.2.3.

Any other ideas?

Thanks
ANdy

lintila
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Mar 12, 2014 3:18 pm

Re: Frontend login error:“You cannot access the private sect

Post by lintila » Wed Mar 12, 2014 4:58 pm

I have found my problem. Another admin, in trying to send a site-wide email, has deleted the user group "Registered" which had all 116 users in it.

stantaylor
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Mon Nov 27, 2006 4:19 am

Re: Frontend login error:“You cannot access the private sect

Post by stantaylor » Wed Apr 16, 2014 7:38 pm

This problem suddenly arose for me in Joomla 2.5. I looked at the assets table in the database and found several JEvents rows with a parent_id of 0. I changed them all to 1 and the problem was gone. I suspect a JEvents update was the culprit. I see there is an update available for it now and wonder if that may fix the issue, too.

yl56661
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Apr 28, 2014 5:16 pm

Re: Frontend login error:“You cannot access the private sect

Post by yl56661 » Mon Apr 28, 2014 5:45 pm

Hi,
Here are my system details:
System Information
Setting Value

PHP Built On Linux euro1.accesstochina.com 2.6.32-042stab085.20 #1 SMP Fri Mar 21 19:07:05 MSK 2014 x86_64
Database Version 5.5.30
Database Collation utf8_general_ci
PHP Version 5.3.3
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.2.3 Stable [ Ember ] 6-March-2014 14:30 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 6.2; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0

I have the issue with registered user cannot login, the message is:
"Warning

You cannot access the private section of this site."

I have update asset with parent_id=1 except one to 0 for title='Root Asset'

Anyone could advise me.

Thanks

Yuwan

krcroteau
Joomla! Intern
Joomla! Intern
Posts: 77
Joined: Wed Nov 16, 2011 3:20 am

Re: Frontend login error:“You cannot access the private sect

Post by krcroteau » Tue Apr 29, 2014 3:19 am

I am experiencing the same problem, but I don't know how or where to run sql queries.

Can I simply change the default value for the Parent ID from 0 to 1 in the picture below. I would do this for all 3 assets tables.

Thanks.
You do not have the required permissions to view the files attached to this post.

stantaylor
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Mon Nov 27, 2006 4:19 am

Re: Frontend login error:“You cannot access the private sect

Post by stantaylor » Tue Apr 29, 2014 4:02 am

krcroteau, you have a different look than my hosting service. It uses cPanel and the editing is done with phpMyAdmin. Anyway, looking at your screen, I think that should fix the problem. I had never done that before either, so I made a note of all the changes, just in case it messed things up and I had to undo the changes. I suggest you do that, too.
krcroteau wrote: Can I simply change the default value for the Parent ID from 0 to 1 in the picture below. I would do this for all 3 assets tables.

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Frontend login error:“You cannot access the private sect

Post by sovainfo » Tue Apr 29, 2014 6:57 am

@kroteau: Yes, that is ok

There is a SQL tab in the toolbar that allows you to enter the statements. Below the statements there are options to generate and clear the statement. Clear it first and paste the statement you want. Then edit the prefix and press GO.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

yl56661
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Apr 28, 2014 5:16 pm

Re: Frontend login error:“You cannot access the private sect

Post by yl56661 » Wed Apr 30, 2014 2:30 pm

Hi

I use Joomla! 3.2.3 Stable, I have the above issue. I tried to update parent_id as suggested. But I have no success.

Can anyone give me advise.

Thanks

Yuwan

sor
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Sep 29, 2006 2:46 am

Re: Frontend login error:“You cannot access the private sect

Post by sor » Wed Sep 03, 2014 2:12 am

Thank you very much. Much appreciated fixed that goddamn weird error.

Thank you again

phuonker
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Sun Apr 03, 2011 4:17 pm

Re: Frontend login error:“You cannot access the private section"

Post by phuonker » Wed Apr 05, 2017 7:48 pm

Hello everybody, I know it is a pretty old threat, but it is the only useful source I found about my problem. So its all about Frontend login error:“You cannot access the private section"
I tried now all the recommended stuff, which was mentionned in this threat, but unfortunately without any success at the moment.
I can access as superuser, but when I create an own user, I got this error message.
Some background information. I am running Joomla 3.6.5. I am also having Jevent as an extension. I now wanted to give some people restricted access to some articles (not Jevent) and this is not working. I can only apply general access levels like editor or superuser etc, which I do not want. I transferred the Jevent entries from a original 1.5 version. I just read, that this also might have some influence. But the Joomla installation itself is pretty new.
I also went into my DB and checked xxx-assets. There is one entry where the parent ID is 0 (root), but when I change it to 1, the Jevent is not working anymore properly, so it must stay 0.
I also analysed the DB for any damages, but there was nothing. I would be very happy, if there is someone who could give me a hint, how to solve this issue.
Thank you
Peter

sha3rawy
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Oct 09, 2017 9:55 pm

Re: Frontend login error:“You cannot access the private section"

Post by sha3rawy » Wed Oct 11, 2017 11:56 am

phuonker wrote:Hello everybody, I know it is a pretty old threat, but it is the only useful source I found about my problem. So its all about Frontend login error:“You cannot access the private section"
I tried now all the recommended stuff, which was mentionned in this threat, but unfortunately without any success at the moment.
I can access as superuser, but when I create an own user, I got this error message.
Some background information. I am running Joomla 3.6.5. I am also having Jevent as an extension. I now wanted to give some people restricted access to some articles (not Jevent) and this is not working. I can only apply general access levels like editor or superuser etc, which I do not want. I transferred the Jevent entries from a original 1.5 version. I just read, that this also might have some influence. But the Joomla installation itself is pretty new.
I also went into my DB and checked xxx-assets. There is one entry where the parent ID is 0 (root), but when I change it to 1, the Jevent is not working anymore properly, so it must stay 0.
I also analysed the DB for any damages, but there was nothing. I would be very happy, if there is someone who could give me a hint, how to solve this issue.
Thank you
Peter

I am having the same problem,I am running Joomla 3.8 though. did you solve your problem ? please let me know!

 

Locked

Return to “Migrating and Upgrading to Joomla! 3.x”