When the newsletter content type in 4.6 is set to unpublished by default you get this error when trying to create a newsletter:
in_array(): Wrong datatype for second argument in /home/httpd/drupal-4.6.6/modules/node.module on line 1319
It seems to me that simplenews can not be unpublished. Is this a bug or an intentional decision?
Comments
Comment #1
DriesK commentedsetting this to "won't fix", meaning: won't fix in simplenews.
This is a known bug in Drupal 4.6.x (there are several bug reports for this). It is definately not an intentional decision, it is a very annoying bug. However, the bug has nothing to do with simplenews: it occurs for any node type! (give it a try for page, book, story, ... It will happen there as well).
The bug is not necessarily related to the default publication status as such (published/unpublished). It happens when _none_ of the default options (Published, In moderation queue, Promoted to front page, Sticky at top of lists, Create new revision) are selected. As soon as you select at least one of them, there is no problem. A workaround for me was to select 'in moderation queue' by default.
Comment #2
acThanks for the answer DriesK