Warning when user wants to create image node

anantagati - July 8, 2007 - 14:19
Project:Image Gallery Access
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

There is a warning message when user wants to create image node and image_gallery_access.module is on.

user warning: Unknown column 'aclu.uid' in 'where clause' query: SELECT DISTINCT(t.tid), t.*, parent FROM term_data t INNER JOIN term_hierarchy h ON t.tid = h.tid LEFT JOIN image_gallery_access iga ON t.tid = iga.tid LEFT JOIN acl acl_iga ON acl_iga.name = t.tid AND acl_iga.module = 'image_gallery_access' LEFT JOIN acl_user aclu_iga ON aclu_iga.acl_id = acl_iga.acl_id AND aclu_iga.uid = 0 WHERE ((iga.grant_view >= 1 AND iga.rid IN (1)) OR iga.tid IS NULL OR aclu.uid = 0) AND ( t.vid = 1 ) ORDER BY weight, name in /var/www/test1/includes/database.mysqli.inc on line 151.

#1

anantagati - July 8, 2007 - 14:23
Status:active» needs review
AttachmentSize
image_gallery_access_sql_warning.patch 1.08 KB

#2

JohnColeman - July 13, 2007 - 21:34

Patch looks good to me, brilliant -thanks a lot.

#3

salvis - July 14, 2007 - 23:17
Status:needs review» fixed

Thank you for the report and patch — great catch! I didn't notice this because I also had forum_access installed, which masked the error.

I've committed the fix to CVS and it will show up as new 5.x-1.x-dev as soon as the packaging script has run.

#4

Anonymous - July 28, 2007 - 23:19
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.