I came across an error with the latest dev version*:

Object of class stdClass could not be converted to string in /var/www/d6/sites/all/modules/authorcontact/authorcontact.module on line 127

Here's the fix and a typo correction (referer, not referer**), change this on line 127:

watchdog('mail', 'Author Contact: %name-to was sent an e-mail from %name-from using the form on %page', array('%name-to' => $pageAuthor . " <$to>", '%name-from' => $from, '%page' => $params['referrer']));

to this:

watchdog('mail', 'Author Contact: %name-to was sent an e-mail from %name-from using the form on %page', array('%name-to' => $pageAuthor->name . " <$to>", '%name-from' => $from, '%page' => $params['referer']));

* please sort out your use of cvs, I hope I have the most recent 6.x-dev code but it's hard to tell when you don't use the correct procedure and branches.
** Yes, referrer is the correct spelling, but not the name of the http header or your array key :)

Comments

JmsCrk’s picture

Status: Active » Fixed

Thanks adrinux, error now fixed.

I'm using tortoiseCVS and I have only wrapped my head around CVS enough to just get it working, I know it's messy back there but it works for the module page on drupal.org -- I will find a good tute and sort it out when I have a spare moment.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.