hello,
i have a drupal site, with basicly the support module, as an internal organisation tool. when posting a comment on a support ticket, there is an option to notify via emails. those email, are going encrypted, but drupal keeps giving us this error:
pdt1: recoverable fatal error: Object of class stdClass could not be converted to string in PATH/to/DRUPAL/modules/openpgp/openpgp_gpg/openpgp_gpg.inc on line 217.
any ideas?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | openpgp-1024360-6.patch | 554 bytes | smscotten |
Comments
Comment #1
olak commentedupdate: just got the hang of it. the error occurs if someone from the subscribed-to-be-notified users doesnt have a valid pgp key
Comment #2
fonant commentedI still get this, it isn't fixed in 6.x-1.0-beta1 if the recipient has an empty PGP key.
Comment #3
fonant commentedThe problem appears to be fixed by changing:
to this:
The code seems to be expecting "recipient" to have a value that can be cast to a string, when in my case it's an object with the recipient email address as its mail attribute.
Comment #4
fonant commentedThis code in openpgp_mail_parse_recipients() sets a recipient to be either a user object, or an email address.
Do we need the whole user $account? Why are we loading a user if one matches an email address? Ah, of course, so we can look for their PGP key data in their profile later.
Comment #5
smscotten commented#3 fixed it for me in the 7.x port as well.
Comment #6
smscotten commentedFor what it is worth, here's fonant's fix in a patch for d6.
Comment #7
smscotten commented