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

Comments

charles gantt’s picture

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

charles gantt’s picture

does anyone have an idea what is causing this?

mtsanford’s picture

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.

charles gantt’s picture

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

mtsanford’s picture

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?

charles gantt’s picture

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.

mtsanford’s picture

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.

charles gantt’s picture

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

mtsanford’s picture

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.

charles gantt’s picture

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

dddave’s picture

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.

charles gantt’s picture

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’s picture

Ok, just misread the your posting.