I think I've installed everything correctly, but I'm getting this error when I put the emogrifier file in the enews module folder:

Notice: Trying to get property of non-object in theme_enews_emogrify() (line 259 of C:\wamp\www\theming\sites\all\modules\enews\enews.module).
Notice: Trying to get property of non-object in theme_enews_emogrify() (line 264 of C:\wamp\www\theming\sites\all\modules\enews\enews.module).
Notice: Trying to get property of non-object in theme_enews_emogrify() (line 277 of C:\wamp\www\theming\sites\all\modules\enews\enews.module).

Is there a fix for this?

Thanks for the help.

Comments

cyxair’s picture

Status: Active » Needs review

I also get this errors.

Here is the modifications I made to theme_enews_emogrify in enews.module to make emogrifier actually do something :

function theme_enews_emogrify($array) {
  $node = $array['node'];
  // Convert style sheets to inline styles
  $html = theme('enews', $array);

I Don't know if this is the best way to fix it, but it now does the job.

anou’s picture

Thanks cyxair ;-)
Added $node = $array['node']; after line 251 and did the trick.

AaronBauman’s picture

Status: Needs review » Fixed

Fixes to theme later and many d7 issues included in latest 7.x-1.x-dev
http://drupalcode.org/project/enews.git/commit/daff3d171ed846bfcbca24ce9...

Status: Fixed » Closed (fixed)

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