Closed (duplicate)
Project:
Simplenews Template
Version:
5.x-1.4
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2009 at 01:28 UTC
Updated:
3 Sep 2009 at 14:42 UTC
Hi,
I'm getting the following fatal error when a user sign up for a newsletter at site_name/newsletter/subscription
Fatal error: Call to undefined function _simplenews_template_message() in .../simplenews_template.module ... on line 183
I can add users manually and send out a test newsletter without any problem. It's only when they try to sign up for a newsletter that it bombs out.
Drupal 5.13
PHP 5.2.5
MySQL 5.0.67.d7
Mime-Mail 5.x-1.0
Simplenews 5.x-1.5
Simplenews Template 5.x-1.4 (not RC1)
Is there something I can do? Let me know if additional information is needed. Thanks and keep up the great work!
Comments
Comment #1
twirlingsky commentedI'm having the same problem with Drupal 5.15
Comment #2
faulkner161 commentedHello,
I am also experiencing this problem! Any help on this issue would be much appreciated!
Comment #3
tobiass commentedSame problem here
Comment #4
joanpc commentedu can fix it adding a:
in simplenews_template.module
Comment #5
faulkner161 commentedIt's weird, because we fixed fixed, simply turning off the option which requires mimemail to send html emails. Am I assuming that if you want this function to work and do want mimemail to send all of your emails, that you would then include this function, as mentioned above?
Comment #6
pharoz commentedSweet. Adding that function seem to do the trick. Thanks!
Comment #7
tobiass commented#4 worked for me. Thank you!!
Comment #8
digidoo commentedIf problems still occur, especially when caching is on, have a look at: http://drupal.org/node/383562
Comment #9
marcus_clements commentedThis worked for me too...
Comment #11
jju commentedI make a new solutions witch work also cached mode. THe original patch not work in cached mode.
rewrite theme_mimemail_message functio in simplenews_template.module
The code was tested in caced and uncached mode, and its work.
Comment #12
hanoiiIsn't this a dupe of #393218: Call to undefined function _simplenews_template_message()? Also, by looking again at the patch there in #1 which I submitted quite some time ago there are another function that the .inc has to be put.
@jju: My patch does pretty much the same as yours, although it makes no sense to query for the existence of the function, a require_once() just work.