You receive the following errors when clicking the "view invitations" link on any event-enabled node:

    * warning: Invalid argument supplied for foreach() in /modules/node.module on line 359.
    * warning: implode() [function.implode]: Bad arguments. in /modules/node.module on line 363.
    * 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 '' at line 1 query: SELECT DISTINCT(n.nid), n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /includes/database.mysql.inc on line 120.

The problem is this path points to rsvp/invites/node/$node->nid where the calling function (rsvp_view_invites) is expecting a node ID as its first parameter. Trying to node_load a node object never ends well. ;)

CommentFileSizeAuthor
rsvp.module_1.patch874 byteswebchick

Comments

Peter Zwarich’s picture

Category: bug » support
Priority: Critical » Normal

I am having a similar error occur. I found your patch.

I am just not sure where to specifically apply the code?

Many Thanks.

Peter.

flaxter’s picture

To apply the patch use the patch command:

Download rsvp.module_1.patch to /drupalroot/modules/rsvp and cd there:

$ cd /drupalroot/modules/rsvp
$ patch -p0 < rsvp.module_1.patch

Did the trick for me! Thanks webchick.

smikey’s picture

Version: master » 4.7.x-1.x-dev

Howdy folks;

My hosting service does not allow shell access, so I'm kinda in trouble. Would any of you know where I can implement this code w/o running a patch or diff command? Thanks

smikey’s picture

ok -

I found the spot where to fix it, but now the "view invitation" button shows up twice. Any suggestions? Thanks again

owahab’s picture

Status: Reviewed & tested by the community » Fixed

Thanks webchick.

Anonymous’s picture

Status: Fixed » Closed (fixed)