I have got following error message while updating my newsletter.

Missing argument 1 for theme_simplenews_template_mimemail_message() in /home/kseauk.org/public_html/sig-p/modules/simplenews_template/simplenews_template.module on line 95.

Is this something I need to worry about?

Comments

Sutharsan’s picture

Project: Simplenews » Simplenews Template
Version: 5.x-1.x-dev » 5.x-1.0
Category: support » bug
jarea’s picture

Getting this when I change my newsletter from html to plain and then submit.

polar-bear’s picture

Priority: Normal » Critical

I am getting the same error message each time I mark a posting onto my website as a spam (with Spam Module).

I don't know why Spam Module is using Simplenews Template Module though.

TBarregren’s picture

Assigned: Unassigned » TBarregren

I'm sorry that I haven't respond earlier. I will look into and hopefully fix this bug later this week. Thank you all for your patience.

jarea’s picture

In addition to getting this message in Simplenews, I am also getting the message when attempting to post comments to forums.

TBarregren’s picture

Status: Active » Fixed

I believe I have fixed the bug. Please, download version 1.1, and test it.

jarea’s picture

Seems to fix the problem when I set the message type to plain, but still getting the message when I update a reply (though not the original post) in forum.

polar-bear’s picture

By the way, I don't know whether this will help you or not but our server is running very old version (3.23.49) of MySQL.

jarea’s picture

I am going to cross post this message with http://drupal.org/node/134945 in Subscriptions issues because this problem involves bad behavior between Subscriptions and Simplenews.

Symptoms: When I have Subscriptions activated and post a forum comment (problem does not occur when I post the original forum message) that I am subscribed to, two things happen.

First, I get the following message:
warning: Missing argument 1 for theme_simplenews_template_mimemail_message() in /home/virtual/site610/fst/var/www/html/sfn/modules/simplenews_template/simplenews_template.module on line 95.

Second, the Subscription notification email that I receive has a blank body. The subject appears to be correct but the message body is empty.

When I disable the Simplenews module the message goes away and the email is correctly built with the proper message.

This is the devel backtrace for the error message

function	file: line	arguments
warning: Missing argument 1 for theme_simplenews_template_mimemail_message() in /home/virtual/site610/fst/var/www/html/sfn/modules/simplenews_template/simplenews_template.module on line 95.
theme_simplenews_template_mimemail_message	/home/virtual/site610/fst/var/www/html/sfn/modules/simplenews_template/simplenews_template.module: 95	theme_simplenews_template_mimemail_message		
call_user_func_array	/home/virtual/site610/fst/var/www/html/sfn/includes/theme.inc: 170	
theme	/home/virtual/site610/fst/var/www/html/sfn/modules/simplenews_template/simplenews_template.module: 133	
phptemplate_mimemail_message		call_user_func_array	/home/virtual/site610/fst/var/www/html/sfn/includes/theme.inc: 170	
theme	/home/virtual/site610/fst/var/www/html/sfn/modules/mimemail/mimemail.module: 158	
mimemail_prepare	/home/virtual/site610/fst/var/www/html/sfn/modules/mimemail/mimemail.module: 173	
mimemail	/home/virtual/site610/fst/var/www/html/sfn/modules/mimemail/mimemail.module: 251	
drupal_mail_wrapper	/home/virtual/site610/fst/var/www/html/sfn/includes/common.inc: 1938	
drupal_mail	/home/virtual/site610/fst/var/www/html/sfn/modules/subscriptions/subscriptions.module: 475	
subscriptions_sendmail	/home/virtual/site610/fst/var/www/html/sfn/modules/subscriptions/subscriptions.module: 583	
subscriptions_mailvars	/home/virtual/site610/fst/var/www/html/sfn/modules/subscriptions/subscriptions.module: 760	
subscriptions_comment	/home/virtual/site610/fst/var/www/html/sfn/modules/comment/comment.module: 1974	
comment_invoke_comment	/home/virtual/site610/fst/var/www/html/sfn/modules/comment/comment.module: 792	
comment_save	/home/virtual/site610/fst/var/www/html/sfn/modules/comment/comment.module: 1667	
comment_form_submit		
call_user_func_array	/home/virtual/site610/fst/var/www/html/sfn/includes/form.inc: 428	
drupal_submit_form	/home/virtual/site610/fst/var/www/html/sfn/includes/form.inc: 258	
drupal_process_form	/home/virtual/site610/fst/var/www/html/sfn/includes/form.inc: 80	
drupal_get_form	/home/virtual/site610/fst/var/www/html/sfn/modules/comment/comment.module: 1575	
comment_form_box	/home/virtual/site610/fst/var/www/html/sfn/modules/comment/comment.module: 675	
comment_reply		call_user_func_array	/home/virtual/site610/fst/var/www/html/sfn/includes/menu.inc: 418	
menu_execute_active_handler	/home/virtual/site610/fst/var/www/html/sfn/index.php: 15
function
jarea’s picture

Clarification - bad behavior between subscriptions and simplenews template

jarea’s picture

I think 1.1 clears the problem for me. Thanks

TBarregren’s picture

Excellent!

Just to clarify, your comments #9 and #10 are referring to version 1.0 and not version 1.1.

jarea’s picture

That is correct - I moved from 1.0 to 1.1

Anonymous’s picture

Status: Fixed » Closed (fixed)