Hello,
I just made a test site to experiment with Drupal upgrades, but the permissions are all broken. This is what I did:
1) I made a new database. I copied every table from the old database to the new database.
2) I copied the Drupal directory of the old site to a new directory. I changed settings.php to point to the new database. I uploaded the directory.
That is all.
So I point my browser to the test site, Drupal seems to work except for the fact that all nodes give me an "access denied" error. I can see the side bars, the header, etc. It is as if someone had changed all the permissions from all the nodes to deny access. Strangely, I can still go to the login page, so I login as administrator. Drupal recognizes my login and I can navigate through all the *Administration* pages, but I still cannot access any nodes. I go to the home page, or any other page and I get "access denied". I tried creating a new page, and I was able to create the page successfully and access it later. The only nodes that give me "access denied" are the ones that come from the old database.
This is really strange. I did not change the Drupal version, I did not touch anything other than what I described in (1) and (2). What could have changed that would make all pages inaccessible even for the admin?
I did have one problem when copying the database. For some reason I couldn't copy all the tables at once. I exported the old DB tables with phpMyAdmin and re-uploaded it into the new DB but only the first 80 tables were copied. I had to do two more uploads before everything got copied. So I wonder if maybe there was an error during the copying process.
Any ideas?
This is just a test site and I'm happy to dump it all and start again. But at some point I'll need to make a functional copy of my Drupal site where I can perform the upgrade to Drupal 5.
Thanks for the help.
I just made a test site to experiment with Drupal upgrades, but the permissions are all broken. This is what I did:
Try this
http://www.tech4him.com/content/drupal-access-denied-permission-are-correct
and see if it helps.
Fred
Fred Jones wrote:
Try this
http://www.tech4him.com/content/drupal-access-denied-permission-are-correct
and see if it helps.
Thanks! That did it.
At first I thought that it hadn't worked, but it turned out to be the stupid cache. I cleared the cache table and now I can access the pages. Thanks a lot.
Cheers, Daniel.
I'm a idiot. No, the solution did not help at all. When I was trying different pages I clicked on an absolute link which took me out of the test site and back to the old site. Because they look the same except for the URL, I did not notice. So I mistakenly thought that the problem was fixed.
Grrr...
Daniel Carrera wrote:
Fred Jones wrote:
Try this
http://www.tech4him.com/content/drupal-access-denied-permission-are-correct
and see if it helps.
Thanks! That did it.
At first I thought that it hadn't worked, but it turned out to be the stupid cache. I cleared the cache table and now I can access the pages. Thanks a lot.
Cheers, Daniel.