hello,

I've just enabled the simplenews module and tweaked the settings for it.
Access control has been set so that anonymous users can subscribe to newsletters.
The newsletter block has been enabled to display in one of the sidebars.

The problem...

Being logged in as Administrator I can see the block and can click on the 'subscribe'/'unsubscribe' buttons.
Checking the newsletter subscriptions list, I can see I was able to subscribe, remove and subscribe again.

Then logging out to test as an anonymous user, I can see the block with a text box for an email address with radio buttons for subscribe/subscribe. However, nothing appears in the subscription list. Besides that i got a blank screen with no code at all in the pagesource

Does anybody have an idea what causes this?

I use (for an older project) simplenews 5.1.5 and drupal 5

Thanks!
Maurice

Comments

Maurice0082’s picture

found another topic with almost the same problem, and this worked for me also:

adding this code to simplenews.modulle

<?php
function simplenews_template_init() {
  require_once _simplenews_template_path('simplenews_template.inc');
}
?>

How can i close this post/item?

asktusar’s picture

Hi. I am a newbie to use drupal 7 as a developer. I was searching for this solutions and have spent a lot of time for googling on this. But couldn't get any time. Can you please tell me in detail, where to place these 3-4 lines of code and how could it help me in subscribing the anonymous users. And also tell me how to send newsletter from the admin end. Please dear. Help me. Am desperately need ur help.

piyushsms91’s picture

I am also getting the same problem

Duarte Cancela’s picture

Same problem with Drupal 7, subscribe button doest appear on anonymous users,

*i have permissions on anonymous users.

purabdk’s picture

I found with new simplenewsletter -7.x-1.0 module there is no issue.

mcfilms’s picture

To anyone else that comes across this issue: There is a permission for "Subscribe to newsletters" and you have to grant it to anonymous users for them to be able to subscribe. If you do that it just works.

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com