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. ;)
| Comment | File | Size | Author |
|---|---|---|---|
| rsvp.module_1.patch | 874 bytes | webchick |
Comments
Comment #1
Peter Zwarich commentedI am having a similar error occur. I found your patch.
I am just not sure where to specifically apply the code?
Many Thanks.
Peter.
Comment #2
flaxter commentedTo 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.
Comment #3
smikey commentedHowdy 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
Comment #4
smikey commentedok -
I found the spot where to fix it, but now the "view invitation" button shows up twice. Any suggestions? Thanks again
Comment #5
owahab commentedThanks webchick.
Comment #6
(not verified) commented