Closed (fixed)
Project:
SunMailer Newsletter
Version:
6.x-2.0-beta2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Nov 2011 at 04:27 UTC
Updated:
4 Jan 2012 at 05:59 UTC
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
Comment #1
moondrake75 commentedJust 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.
Comment #2
moondrake75 commentedHad 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:
Sorry, not on my usual PC otherwise I'd submit a patch.
Comment #3
Mike Wacker commentedThat does the trick, thanks!
http://drupalcode.org/project/sunmailer.git/commit/b77eac7
Comment #4
moondrake75 commentedClosing this issue. Fix as posted works fine.