Notice: Trying to get property of non-object in include() (line 64 of /home/kitchena/public_html/sites/all/modules/htmlmail/htmlmail--simplenews.tpl.php).
Notice: Undefined index: context in include() (line 64 of /home/kitchena/public_html/sites/all/modules/htmlmail/htmlmail--simplenews.tpl.php).
I am using Simple News Mail System and SMTP Authentication to get around normal email throttle limit imposed by ISP. Sort of annoying as it fills log but no noticeable effects otherwise.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 1403924-5-simplenews-node.patch | 568 bytes | fenstrat |
Comments
Comment #1
berdirOur API changed. See http://drupal.org/node/1390222
Comment #2
Mike Shand commentedSo is there now a simple way to do the equivalent of
echo url('node/' . $params['context']['node']->nid, array('absolute' => TRUE)); ">
Click here to view this message on the web.
in htmlmail--simplenews.tpl.php
Comment #3
pillarsdotnet commentedA patch would be welcome, but I'm probably going to move all the templates to an unreferenced
/examplesdirectory. Will revisit this issue at that time.Comment #4
berdirBasically, instead of
$params['context']['node'], you now need to call$params['simplenews_source']->getNode(), see the link above for more details.Comment #5
pillarsdotnet commentedThanks; that helps a lot.
Comment #6
fenstratAttached implements #4 for those needing this fixed right now.
There's a lot of logic in this template, looks like it could be moved into a preprocess function?
Comment #7
fenstrat.
Comment #8
bjlewis2 commentedI haven't had a chance to test the patch, but I manually edited the file as suggested in #4 and it worked like a charm! Perfect!
Comment #9
geek-merlinworksforme.
Comment #10
pillarsdotnet commentedPushed patch.
Comment #11
pillarsdotnet commentedReleased 7.x-2.63.
Comment #12
fenstratThanks @pillarsdotnet.
While the release notes have handy info for those updating, the latest one for 7.x-2.63 is missing the most important bit: what changed?
Comment #13
pillarsdotnet commentedSorry; fixed.
I really need to move all the templates to an examples directory.
Comment #14
fenstratThanks @pillarsdotnet.