Hi. I am tying to set up Simplenews. I have a couple of newsletters published but am not able to send them. On the Create Newsletter Issue page it says, "Send a newsletter or a test newsletter by selecting the appropriate radio button and submitting the node." However thee are no radio buttons, or any place to submit the node!

Please can someone advise? Rob

Comments

roblog’s picture

Assigned: roblog » Unassigned
sutharsan’s picture

Below the body text field you should have a fieldset 'Newsletter sending options' there you find the radio buttons.

roblog’s picture

Hi. No the fieldset is not there! This is very problematic because it means that although I can generate newsletters, I have no way of sending them. Have you got any ideas why the fieldset is not there? (Drupal is very new to me). Rob

sutharsan’s picture

It may be an other module that interferes with Simplenews. Thy to disable all non-core modules. If that solves the problem, enable them one by one. Its crude but it may work.

Access permission should have no effect on the sending options fieldset, but who knows. Do you experience this problem as user/1 or as a user with limited Simplenews permissions?

roblog’s picture

I've disabled everything possible, and uninstalled every module that I loaded. No luck, still no sending options. The problem is occurring as user/1. Just enabled permissions for an anonymous user, but this didn't work either.

I get the following message on the Status Report, might it have anything to do with it do you think?:

PHP register globals Enabled ('1')
register_globals is enabled. Drupal requires this configuration directive to be disabled. Your site may not be secure when register_globals is enabled. The PHP manual has instructions for how to change configuration settings.

sutharsan’s picture

Status: Active » Postponed (maintainer needs more info)

register_globals does not give this effect (I tested this) but should be dealt with. The standard drupal .htaccess file does take care of this, but that's a different subject.

I can not reproduce your problem in my test enviroments. Please describe all steps, starting with a clean install (!), to reproduce and I am more than happy to investigate.

roblog’s picture

Ok but I need to ask my friend to make the clean install, and this may take a bit of time. Will get back to you when this is done. Thanks.

roblog’s picture

Hi again. I've just downloaded the latest release, and installed it in a clean install of Drupal 6. I enabled the module, and set all permissions (including taxonomy). Configured a newsletter, and subscribed my email address to it. Configured the block, and unsubscibed, then resubscribed from it, no problem. Then when I go to create the content, the radio buttons are still not there.

The newsletter is visible in admin>content management>newsletters>drafts as a draft. However, there are no check boxes. When I refresh the page, the check boxes appear momentarily,then disappear. This happened a few days ago when I first installed the module (previous version), but then after a while of messing around the check boxes appeared, with a tick in published and a cross in sent. I thought this was strange, but put it down to me not knowing the module very well, and not having it configured properly. I am now very familiar with the module, and am convinced this is part of the problem.

Also there seems to be a problem with newsletters>subscriptions: the same thing happens with the check box for status, which appears momentarily when I refresh the page, then vanishes.

Also there is something weird with the check boxes in edit subscriptions. With this installation they are fine. However in the previous installation, there were no ticks in the checkboxes, whatever I did.

Please can you advise what I should do next?

sutharsan’s picture

In the latest version I fixed a bug in the subscription form. That explains your last observation.

When check boxes appear and disapear I expect it to be a browser thing. Try switching off the javascript (used to fold-in and -out the fieldsets). Look into the (browser) source code of the page if the checkboxes are there and not on the screen. Try different browsers.

roblog’s picture

Hi. I've tried Mozilla Firefox and Internet Explorer, on two PCs with both the original and fresh installation.

I also tried turning of java, and java script, and both of them, on Mozilla. No change.

I get the following warning in the Mozilla error console for the Home >> Create content >> newsletter issue:
Warning: Error in parsing value for property 'display'. Declaration dropped.
Source File: http://creativelocalsolutions.co.uk/robtest/modules/system/defaults.css?B
Line: 43

I looked through the source code for the page, but couldn't see anything that wasn't on the screen.

At the top of the page it says, "Send a newsletter or a test newsletter by selecting the appropriate radio button and submitting the node." Please can you confirm that I am not overlooking something totally obvious, by telling me what the radio buttons are called that this sentence refers to, and where they are located on the page? (I have the following configuration options: menu settings, input format, revission information, comment settings, authoring information, and publishing options.)

roblog’s picture

Hi again, please can you tell me, are their any specific or unusual requirements / settings that need to be in place on the server side, in order for the module to work?

sutharsan’s picture

Re. #10 inline-block is not a valid css2 value for display. Not something to worry about.
Have you tried to turn off css to see if it is the cause of the problem?

Re. #11 as far as I know not.

toceguera’s picture

Hello ,

I am experiencing the same issue and until I read this thread thought it was my inexperience with this module. I can see all that roblog can see .

I can create newsletters and issues
My check boxes all stay where they are supposed to
I see no radio buttons of any kind that allows me to send the issue.

This is a fresh install of Drupal Core 6.2 and the last version of SimpleNews.
I have no other modules enabled at all.

I will keep watch on this thread to see what comes of it.

Thanks for all your work.

sutharsan’s picture

StatusFileSize
new43.58 KB

The people how experience the problem are the key to the solution. I made a new install of Drupal 6.2 and the current Simpelnews 6.x-1.x-dev version. This time on an external server and not in my usual environment. No problems what so ever. I can subscribe, create and save a newsletter.
Attached is a screenshot of the newsletter creation for as it should look.

Drupal 6.2
Only default core modules, nothing else enabled.
Simplenews 1.76.2.8 Tue Apr 15 09:17:29 2008 UTC
MySQL database 4.1.22
PHP 5.2.5
Web server Apache/2.0.61 (Unix) mod_ssl/2.0.61 OpenSSL/0.9.7a mod_auth_passthrough/2.1 FrontPage/5.0.2.2635 mod_bwlimited/1.4
Using anonymous user with permission for 'access content' and 'create newsletter' and 'subscribe to newsletters' (no more)

Testing and searching are the only things that can bring a solution closer.

roblog’s picture

I've just worked out how to remove the style, with Mozilla Firefox. This didn't have the desired effect either.

sutharsan’s picture

If the checkboxes are not on in the page source (#10) and this is confirmed by removing the style (#15) and disabling javascript (#10) It sure looks like a problem on the server side.

Only this line (from #8) puzzles me: "When I refresh the page, the check boxes appear momentarily,then disappear."

You talk about check-boxes, but what exactly is missing from the page?
Do you have any abnormal behaviour of any other node edit forms?

roblog’s picture

I've only been using Drupal about two weeks, but all the other node editing forms appear to be ok.

Apart from the fieldset 'Newsletter sending options' that you refer to in #2, and the disappearing check boxes in the newsletter>>drafts page, I have no way of knowing what else might be missing.

The fact that I have this problem on two PCs, with different versions of windows, with two different browsers, suggests to me that the problem is not at this end.

I'm tempted to see what happens with a Drupal 5 installation.

sutharsan’s picture

Look at #14 for what might be missing.

sentinel69’s picture

StatusFileSize
new74.46 KB

Hi,

same problem here with a fresh drupal v6.2 installation, running on debian 4 (lamp), nothing changed apart from installing/activating the simplenews module. I've tested creating newsletter issues with different clients on different platforms - same result. Doesn't seem like a client issue...
Please find the screenshot attached.

Any idea?

sutharsan’s picture

@ all who have this problem: What PHP version are you using? (Administer > Reports > Status report)

sentinel69’s picture

Hi.
my installation is running on:
PHP 5.2.0-8+etch10
PHP memory limit 16M
PHP register globals Disabled

roblog’s picture

The entire newsletter sending options section is missing.

roblog’s picture

PHP 4.4.4
PHP memory limit 40M
PHP register globals Enabled ('1')
register_globals is enabled. Drupal requires this configuration directive to be disabled. Your site may not be secure when register_globals is enabled. The PHP manual has instructions for how to change configuration settings.

sutharsan’s picture

Status: Postponed (maintainer needs more info) » Active

This now looks as a server related problem, not for all installations of simplenews but also not exceptionally. It can only be found through debugging on a server where the fault occurs. If someone can give me full access (user/1, ftp and database) to a clean drupal 6 and simplenews in stall on a server like this, I am willing to investigate the problem further. You can contact me by mail.

roblog’s picture

I´m with a commercial host, so this will not be possible. I can upgrade to PHP 5.x though, so will see if this makes any difference. Looking at #21 though I doubt if it will.

Eduard Grebe’s picture

I am also experiencing this issue. The whole section is missing.

sutharsan’s picture

Eduard has been so kind enough to grant me access to his server.
I'll keep you all informed.

sutharsan’s picture

Status: Active » Fixed

To all who have experience this problem: Please read the README.txt in /sites/all and follow the instructions.

Move ALL your contrib modules out of /modules and into /sites/all/modules. The problems you experience is caused by the wrong location of your simplenews module.

Four your convience, the content of README:

This directory should be used to place downloaded and custom modules
and themes which are common to all sites. This will allow you to
more easily update Drupal core files. These modules and themes should
be placed in subdirectories called modules and themes as follows:

sites/all/modules
sites/all/themes
/blockquote>

roblog’s picture

Thanks Sutharsan, problem solved :-) Rob

Garuda’s picture

By following the README and putting "simplenews" module alone in /sites/all/modules directory, my admin does not reconizes it.
If I put it in the modules directory, I can see it in my admin and I can manage it but I don't have the radio buttons.
So I have some difficulty to understand why...

Have a nice day
Pierre

sutharsan’s picture

Since the transfer of Drupal 4.7 to Drupal 5 this is the way a Drupal system should be build. ALL contrib modules live in /sites/all/modules.
See instruction no. 3 here: http://drupal.org/node/70151

Garuda’s picture

You are right! "the contrib" modules should be set in sites directory. Now it works.
It is important to say, if we run 1 site with Drupal 6.2, the simplenews module should be set in sites/default/ directory. If we run several sites, it should be set in sites/all/ directory or sites/www.exemple.com/ directory.
Thanks for your help.
Pierre

sentinel69’s picture

Hi,

It's also working for my site, so i don't need to prepare a vmware image... Thanks a lot!

The RTFM storry continues ;-)

Michael

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

royerd’s picture

I just wanted to confirm that if simplenews is not placed in sites/all/modules (i.e., if instead you put it in the module folder with other core modules) it will not "send" when you save the newsletter. This is apparently how it's supposed to work, so if you have trouble with the newsletter sending, then make sure it's in the correct module folder.

Dan

goodwillhinton’s picture

Status: Closed (fixed) » Active

This is still not working for me.....my modules are all in /sites/default/modules. But I am still not seeing the Newsletter sending options. Any other ideas?

Thanks!

sutharsan’s picture

Status: Active » Postponed (maintainer needs more info)

Yes, another idea. Are you using the newsletter taxonomy as 'tags' (formerly knows as 'free tagging')? or Multi select?

goodwillhinton’s picture

Nope. I am not using the taxonomy as tags or multiselect. When I create a newsletter issue, I have a dropdown to pick one of my two newsletters.

charafantah’s picture

i am having the same problem too.. using drupal 6.2
i tried with simple news in: /modules/ & /sites/all/modules/ & /sites/default/modules/
and they all don't work, i can save the newsletter, but i cant sent it.

thanks

sutharsan’s picture

I need some details before I can fix it. Please follow the steps to supply me these details:

1. Add debug code to simplenews.module

Original:

<?php
/**
 * Implementation of hook_form_alter().
 */
function simplenews_form_alter(&$form, $form_state, $form_id) {

  $vid = variable_get('simplenews_vid', '');
?>

Debug code added:

<?php
/**
 * Implementation of hook_form_alter().
 */
function simplenews_form_alter(&$form, $form_state, $form_id) {
// ----- debug code start -----
  drupal_set_message($form_id);
  drupal_set_message(print_r($form['taxonomy'], true));
// ----- debug code end -----

  $vid = variable_get('simplenews_vid', '');
?>

2. Create a newsletter node
Go to Create content > Newsletter issue (or path: /node/add/simplenews)

3. File debug message
A debug message is now displayed. Something like:

* simplenews_node_form
* Array ( [tags] => Array ( [1] => Array   ...
...
=> [#weight] => -3 [#tree] => 1 )

Copy the debug message into a comment to this issue.

4. Restore the code
Restore the simplenews.module code back to its original state.

goodwillhinton’s picture

That doesn't look at all like what I got. I added the debug code and here is what I get:

* search_theme_form
* simplenews_node_form
* simplenews_block_form
* simplenews_block_form

sutharsan’s picture

Then you have found your problem ;) Check your newsletter taxonomy and make sure the right node type is checked ('Newsletter issue' by default).

goodwillhinton’s picture

StatusFileSize
new61.33 KB

It appears fine though. I have attached a screen shot of this admin section. What am I doing wrong?

Thanks for your help.

sutharsan’s picture

I looks fine indeed. We need to dig deeper.
The fact that there is no debug message "Array ( ... )" following the "simplenews_node_form" tells me that your newsletter node seems to have no taxonomy assigned.
Can you explain this?

Please change de debug code to:

/**
* Implementation of hook_form_alter().
*/
function simplenews_form_alter(&$form, $form_state, $form_id) {
// ----- debug code start -----
  drupal_set_message($form_id);
  drupal_set_message(print_r($form, true));
// ----- debug code end -----

  $vid = variable_get('simplenews_vid', '');

Copy de debug message to a text file. Remove sensitive information (email address, etc.) and attach the file to the issue.

goodwillhinton’s picture

StatusFileSize
new18.53 KB

Here is the debug msg attached.

Thanks again for your help with this. This sort of assistance is why I chose to use Drupal over all other options.

sutharsan’s picture

StatusFileSize
new9.41 KB

Tanks for the compliment.

I can not find any clue in this data. It confirms that the node is a simplenews node and that there is NO taxonomy assigned to it. No select box for taxonomy terms exists on the form.

I start to think that this is not caused by Simplenews.
Do you have this problem (not appearing taxonomy select box) with other taxonomies and other node types too?
Do you use taxonomy access or some module that can restrict (based on) taxonomies?
Can you disable modules one by one to see if the problem disapears?

I have attached a patch I just committed to improve the check for assigned newsletter taxonomy. It is meant to solve most of the above cases.
@Dignan: It may solve your problem, but I don't expect so.

goodwillhinton’s picture

Maybe I a confused about the taxonomy for simplenews. When I create a newsletter node, I get a drop-down asking which newsletter (I have two) that I want to assign this node to. Is that not the newsletter taxonomy? If not, is there some other taxonomy that I should create?

Should I perhaps start fresh and remove the module and accompanying tables?

Thanks again for your help!

Anonymous’s picture

Hello

I confirm that I had the same problem.

The problem came out after upgrading to one release at the beginning of May, the one which contained the split between simplenews and simplenews_action.

After that I also had to move the simplenews module to /sites/default/modules to enable again, but no radio buttons.

By reading this support request, I came to the taxonomy term issue.
It is required that you list the "newsletter" content type as part of the taxonomy vucabolary "newsletter", after that the radio buttons come out.

Still, newsletter doesn't send and lists as "sending" forever, but this is another issue...

Anyway, I consider that the update.php should take care of updating the taxonomy term too.

Bye

sutharsan’s picture

Status: Postponed (maintainer needs more info) » Fixed
StatusFileSize
new8.62 KB

The upgrade function does take care of this. I can not explain the problem you experienced.

I further improved the usability of taxonomy and content types in Simplenews.
The attached patch gives the option to choose taxonomy and content type from the Simplenews settings menu. It solves the original issue in a more fundamental way and takes away the indirect use of the taxonomy.

drupallfm’s picture

I also can't make them appear.

I'm using d6.2, php5, and latest 6.x-1.x-dev of simplenwews.

I install it in /sites/all/modules as described, but can't send any newsletter.

When click in "add newsletter" it appears:

a message:

You can create different newsletters (or subjects) to categorize your news (e.g. Cats news, Dogs news, ...).

and the following fields:

Newsletter name:
Description:
weight:

and the button to save

in #2 it is said: "Below the body text field you should have a fieldset 'Newsletter sending options' there you find the radio buttons"
Bellow the body text field is mean for the Descriprion field?

in #14, the printscreen doesn't resemble with the one that appears to me, as i descrived above.

so, it's really weird...

in send issues and draft, all empty, even i ran the cron,

sutharsan’s picture

The original issue is when newsletter nodes are created (url node/add/simplenews) and not about adding newsletter series (url: admin/content/newsletters/types/add). This issue is not about sending empty newsletters. If that is your problem please create an new issue in the queue.

drupallfm’s picture

My mistake, in the node/add/simplenews the radio buttons exist, and it seems they are working.
Thks

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.