My pages are only accessable by admin. Please help.

cgantt - May 26, 2009 - 02:09

I built some galleries and they were working fine. I installed the Image Gallery Access Module because I thought it would allow me to add passwords to certain galleries. Well it locked every anonymous user out. I disabled the module and API and rebuilt the permissions, but the galleries are still in accessible to anyone other than the admin account. I need these galleries to be available to the public because thats what my site is all about. Does anyone know why they are still being blocked to anonymous users?

Site is http://cjganttphotography.com/drupal/index.php

Ok just realized that the

cgantt - May 26, 2009 - 02:27

Ok just realized that the problem is site wide. No anonymous user can view any page on my site. What did I do?

does anyone have an idea what

cgantt - May 26, 2009 - 04:31

does anyone have an idea what is causing this?

I'd start by backing up your

mtsanford - May 26, 2009 - 04:36

I'd start by backing up your database.

I don't know this module, but did you also do an "uninstall" of the modules, which is supposed to wipe all traces the module from the database?

admin/build/modules/uninstall

If you don't need it for anything else, I'd also disable the ACL module and see what happens.

Yea I uninstalled it along

cgantt - May 26, 2009 - 04:53

Yea I uninstalled it along with acl and the problem is still there.

Can you look at your

mtsanford - May 26, 2009 - 05:18

Can you look at your node_access table in your database?

You could delete all records in node_access, and then all a single record that is the same as drupal 6 fresh install:

nid = 0, gid = 0, realm = all, grant_view = 1, grant_update = 0, grant_delete = 0

But I'd back up the DB before that. And if that table is already empty with just that record, I have no idea what is going on.

I'm guessing you double checked your permissions for "access content", and any other modules that effect node access are disabled and uninstalled?

how would I access the

cgantt - May 26, 2009 - 05:29

how would I access the database? I am only familiar with accessing my server via ftp. I know the database is there but have no idea how to access it.

most servers will have

mtsanford - May 26, 2009 - 05:46

most servers will have phpmyadmin, which lets you access the database through the web. There should be some way to access it through your administration pages where you set up the database for drupal in the first place. You'll need the database username password too.

Once you're there, clicking on "node_access" in the left column should show that table, and clicking "browse" should show all the entries. You can delete them there, then click the "insert" tab to add the single entry I mentioned before which would be equivalent to resetting the access table for nodes.

I'm just guessing that the module somehow left this table dirty, because that's the table the ACL module works with. It could be something else though. Might be something much simpler which I just don't know about.

I figured out how to access

cgantt - May 26, 2009 - 05:46

I figured out how to access the database. The settings are exactly what you said they should be.

Sorry, beats me then. You've

mtsanford - May 26, 2009 - 05:58

Sorry, beats me then. You've tried clearing the cache at admin/settings/performance? I've solved several problems that way without ever knowing the 'real' reason.

That fixed it. I cleared the

cgantt - May 26, 2009 - 06:05

That fixed it. I cleared the cache and the problem is gone. Thanks for all the help guys.

Quick hints

dddave - May 26, 2009 - 05:51

1. Node_Gallery is still in alpha-stage and especially the access module seems to be still buggy.
2. You should file an issue there to help the developers to sort this out. A detailed discription might help development.
3. Good luck with your problem.

The galleries and pages were

cgantt - May 26, 2009 - 06:02

The galleries and pages were working fine until I installed the Image Gallery Access module this morning. I am not using Node_gallery. I am using the Image module which has a gallery feature built in.

.

dddave - May 26, 2009 - 06:29

Ok, just misread the your posting.

 
 

Drupal is a registered trademark of Dries Buytaert.