When an anonymous user tries to subscribe using the "Newsletters (All)" block, an error message is returned as follows:

Fatal error: Call to undefined function sunmailer_get_mailer() in mysitedirectory/sites/all/modules/sunmailer/sunmailer.subscribe.inc on line 588

I did mess around with the code a little in sunmailer.subscribe.inc - but only to add a 'size' attribute to the Email Address text input box.

This is from a fresh install of 6.x.2.0-beta2. I did previously have 1.7 installed, but removed it altogether (inc. using the uninstall module process) before installing 2.0-beta2. Happy to try that again if there's no other obvious solution.

Comments

moondrake75’s picture

Just an update. I disabled then uninstalled the module just in case there was a problem. Then reinstalled and setup my newsletters again but am still having this problem.

moondrake75’s picture

Had a dig around the code to see if this could be easily fixed. It is...

Just change lines 588 & 589 of sunmailer.subscribe.inc to read:

$mailer = new SunMailerMailer();
$mailer->sendMail(array($subscriber->getMail()), $subject, $body, FALSE);

Sorry, not on my usual PC otherwise I'd submit a patch.

Mike Wacker’s picture

Status: Active » Fixed
moondrake75’s picture

Status: Fixed » Closed (fixed)

Closing this issue. Fix as posted works fine.