Hello, i have the forward module in my website (http://www.conlamochila.com) , when you send a blog or a book or a page, the module works good, but when you try send a comment, the module send an email, whose apear with a invalid URL (http://www.conlamochila.com/forward//email_ref), and the web site show this error:

* warning: Invalid argument supplied for foreach() in /home/userID/public_html/modules/node.module on line 359.
* warning: implode() [function.implode]: Bad arguments. in /home/userID/public_html/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 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 /home/userID/public_html/includes/database.mysql.inc on line 122.

May i disable forward for comments? do you know how resolve it.

And, may something explain how i can send a postcard?

Thankyou

Comments

marmota@drupal.org.es’s picture

Hello, i have been cheching code in forward.module file, i think the problem is in a query or a request url generated when you send the comment, i think that the problem is the "cid" variable but i don't understand all code.

If you replace line 636:
$links[] = l(t("email this %type", array('%type' => $forward_link_type)), "forward/$node->nid&cid=$node->cid", array('title' => t('Forward this page to a friend'), 'class' => 'forward-page'));

for

$links[] = l(t("email this %type", array('%type' => $forward_link_type)), "forward/$node->nid", array('title' => t('Forward this page to a friend'), 'class' => 'forward-page'));

the page and the email generated work properly.

This is the reason whose i think the problem is in cid variable or in a Query.

I hope something can help with this issue.

Thankyou again

seanr’s picture

Status: Active » Closed (won't fix)

4.7 version is no longer being maintained except for critical bugs and security issues.