In Drupal 6.20 site, login to the site as administrator, create content of one Page or one Story, but when click on the link of this content, there is below error message displayed in the page.

"Access Denied
You are not authorized to access this page."

It is much appreciated if anyone can help with this.

Comments

dhroople’s picture

Create a role as admin & give acess to create content of page & story. Edit your account & assign the admin role. Then recheck it by creating content. This may solve the problem.

mediaformat’s picture

I have the same issue on a 4.7 installation.

Logging in as user/1, login appears to be successful, admin menu is visible, but as soon as I try to access any admin pages, I am effectively logged out with the message described above.

It is therefore impossible to attribute any role.

I have tried clearing the browser cache.
and fixing/dropping the session table from mysql
...the problem persists.

I am really hoping not to have to redo this whole site :-(

mediaformat’s picture

I found this post to be helpful.

It describes updating the session.inc file.
I'm not sure which version of 4.7 I was using, but I downloaded 4.7.11 and used the session.inc from there and it solved my problem. :-)

jomesili’s picture

I had been battling this problem for a while, yeah I had two drupal instal in one folder, it was niether a base url or a domain cookie thing. PLS check your sessions table, my sessions table was corrupted and the number of fields i had were two pid, uid, meanwhile a valid table have five pid, uid hostname and all.

This problem cost me over 8 weeks with no body beign able to sort it out.

cheers people, drupal still rocks!

madddidley’s picture

you've had a problem with the Drupal software for over 8 weeks and you still say drupal rocks?

i'm sorry but that is stupid.

Swapnil_Mohile’s picture

Thanks John Omesili,

Your post saved my day...