I had installed Fast Gallery successfully but recently added the 'Node Privacy By Role' module and now I get this error when viewing as an anonymous or authenticated user (only admin works).
* user warning: Unknown column 'n.nid' in 'on clause' query: SELECT COUNT(*) FROM fast_gallery INNER JOIN node_access na ON na.nid = n.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 1 AND na.realm = 'node_privacy_byrole_role') OR (na.gid = 0 AND na.realm = 'node_privacy_byrole_user'))) AND ( folder = 'pictures') in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\drupal6\sites\all\modules\fast_gallery\fast_gallery.inc on line 56.
* user warning: Unknown column 'n.nid' in 'on clause' query: SELECT path,folder FROM fast_gallery INNER JOIN node_access na ON na.nid = n.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 1 AND na.realm = 'node_privacy_byrole_role') OR (na.gid = 0 AND na.realm = 'node_privacy_byrole_user'))) AND ( folder = 'pictures') LIMIT 0, 10 in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\drupal6\sites\all\modules\fast_gallery\fast_gallery.inc on line 56.
All roles have Fast Gallery access enabled. For any other page on my site I have the option to edit->View/Edit Permissions but not for the image gallery. Is there a simple way to work around this?
Comments
Comment #1
rapsli commentedI have never used this Module. I though doesn't make sense to to have edit permissions for the fast gallery, because you can only upload images by FTP. I though agree that it would be a nice feature for the view part.
Let me have a look at this and see how it behaves here. I'll get back to you and see if I can fix this issue.
Comment #2
rapsli commentedCouldn't reproduce the error. Though from my understanding of the module, Node Privacy By Role it's not possible to support fast gallery. In Fast Gallery the images aren't nodes! Is it possible that you are not using the latest beta1 version?
Comment #3
bmeier commentedI was using beta 6.x.1.1 not the newest one. After upgrading all users can see the gallery but I get this warning (for each gid):
Also there are 11 pages even though I only have 26 pictures (set at 15 to a page). This may be a problem causes by installing the newer fast gallery over an existing one?
Comment #4
rapsli commented... try to completely uninstall the fast gallery module and install it again. There are still some problem with updating.
Comment #5
bmeier commentededit: next post has comment and "active -> fixed"
Comment #6
bmeier commentedThis worked I uninstalled fast gallery and imagecache as well then reinstalled them both and was able to configure everything as necessary. The new admin options for folders are great too.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.