I installed this module and everything seemed to be working fine. But when I forwarded myself a node I got two links in the email. One for the node and one for the site. Both link the same url:

link: /forward/emailref?0=path%3Dnode/7117

with error:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'path' cannot be null: INSERT INTO {forward_log} (path, type, timestamp, uid, hostname) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => REF [:db_insert_placeholder_2] => 1294930676 [:db_insert_placeholder_3] => 1 [:db_insert_placeholder_4] => MY-IP-ADDRESS ) in forward_tracker() (line 463 of /modules/forward/forward.module).

btw, why does the email contain a link to the site, but it's actually the same link?

Comments

Cheek’s picture

Not sure if anybody is still maintaining this, but the code on line 858 in forward.module should be

array('path' => $returnurl)

not

array('path=' . $returnurl)

The eregi() on line 698 is giving me errors as well, so I disabled it..

john.oltman’s picture

Status: Active » Needs review

A fix for this has been incorporated in the new 7.x-1.0-rc1 release. Please download and test and submit any errors. Thanks!

john.oltman’s picture

Status: Needs review » Closed (fixed)