A location node which represents a user does not get deleted when the associated user is deleted. This can cause a number of issues, but we found it when we received the following gmap error in our logs:

array_intersect() [function.array-intersect]: Argument #1 is not an array in /var/www/folkjam/html/sites/all/modules/gmap/gmap_location.module

(I'm placing the error message here in case anyone searches for the text)

The attached patch file adds a delete clause in hook_user for the location module and removes the location node associated with that user, if it exists.

-Shawn

CommentFileSizeAuthor
location_user_delete_fix.patch328 bytessmulkey

Comments

bdragon’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

Marking as duplicate of http://drupal.org/node/110334.