Problem
When a user creates a group join request and then immediately deletes that join request we see the following error:

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 'WHERE nid = 0' at line 1 query: UPDATE mydb_og_statistics SET WHERE nid = 0 in /public_html/includes/common.inc on line 3467.

Steps to reproduce
1) Site admin creates a new group that requires join approval
2) User2 requests to join the group
3) User2 then selects to delete the join request
4) Join request is deleted, however the above error is thrown.

Comments

dawehner’s picture

Could you please try out the latest cvs version? I think i fixed the issue.

1) Site admin creates a new group that requires join approval

Thats not a feature of normal orgranic groups, or?

caschbre’s picture

Sure, I can help test the fix. Would it be possible for you to post what changes were made and I'll apply those directly? That way I won't have to worry about other changes that are in the dev version.

1) Site admin creates a new group that requires join approval = Membership requests: Moderated - membership requests must be approved.

dawehner’s picture

http://ftp.drupal.org/files/projects/og_statistics-6.x-1.x-dev.tar.gz

Thats the current version, which contains only fixes.

dawehner’s picture

Status: Active » Fixed

.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.