Closed (fixed)
Project:
Invite
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2008 at 15:50 UTC
Updated:
3 May 2009 at 21:00 UTC
Jump to comment: Most recent file
When I send an invite and the invited email already belongs to a user on my site, the invite module catches it. This is good! However, it puts up a really scary looking warning message that reads like this:
* The following recipient is already a member:
Bling Bling (bling@pmail.com)
* warning: array_fill() [function.array-fill]: Number of elements must be positive in /home/mrsriley/mrsriley/includes/database.inc on line 240.
* warning: implode() [function.implode]: Bad arguments. in /home/mrsriley/mrsriley/includes/database.inc on line 240.
* 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 ') AND uid = 6054 AND canceled = 0' at line 1 query: SELECT email FROM invite WHERE email IN () AND uid = 6054 AND canceled = 0 in /home/mrsriley/mrsriley/sites/all/modules/invite/invite.module on line 997.
Has anyone encountered this? Do I have the verbosity of warnings set too high or is this legitimately not handling this case properly?
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | invite_form_validate.patch | 1.08 KB | barrett |
Comments
Comment #1
kenorb commentedI can confirm this bug.
Comment #2
that0n3guy commentedI can also confirm this bug :)
Comment #3
geraldito commentedsame error message here
Comment #4
ckidowSame thing here!
Comment #5
bensemmel commentedSame for me
Comment #6
saturnin commentedI confirm
Comment #7
zmove commentedconfirmed too.
Is the module still maintained ? the issue queue seems empty of solutions and no new release were posted since a long time.
Comment #8
barrett commentedI think I've gotten this fixed. The issue seems to be that the check to see if users had already been invited occurred whether or not all the emails had been pulled out as already belonging to members.
The attached patch works on my system. Let me know what you think.
Barrett
Comment #9
neokrish commentedYes, this patch works. Can this be commited?
Comment #10
skizzo commentedI am getting the error reported in OP using today's build 6.x-1.x-dev (packaging script on 2009-04-17).
Proposed patch works for me too. Changing status to "needs review" (hoping that I do understand the protocol)
Comment #11
avpadernoComment #12
sunWhoever considered this patch as RTBC has no idea of Drupal's coding standards.
I've fixed up the necessary/remaining things and committed this fix to all 2.x branches.
Thanks.