Closed (fixed)
Project:
OG Invite Restrict
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2011 at 16:23 UTC
Updated:
1 Mar 2011 at 01:19 UTC
Tried installing the module and received this error on the invite page.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY r.realname ASC LIMIT 0, 10' at line 1 query: SELECT u.uid, u.name, r.realname FROM users u INNER JOIN realname r USING(uid) LEFT JOIN users_roles ur ON u.uid = ur.uid WHERE u.status <> 0 AND LOWER(r.realname) LIKE LOWER('%test%') AND ur.rid IN () ORDER BY r.realname ASC LIMIT 0, 10 in C:\Work\Xampp\xampplite\htdocs\sites\all\modules\og_invite_restrict\og_invite_restrict.module on line 92
Comments
Comment #1
ultimikeThis is warning is due to the fact that you didn't have any roles on admin/user/permissions with the "can be invited to join groups" permission enabled. This effectively means that no users on your site have permission to join any groups.
I went ahead and added a check in the code that won't run the query if no roles are selected, I also updated the readme.txt info with this information.
This will be rolled into the next dev release later tonight, assuming I figure out how to do it with Git.
Thanks,
-mike