Closed (fixed)
Project:
Author Contact
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 May 2009 at 11:29 UTC
Updated:
15 Jun 2009 at 03:30 UTC
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
Comment #1
JmsCrk commentedThanks 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.