Closed (fixed)
Project:
Simplenews
Version:
5.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2008 at 11:16 UTC
Updated:
5 Oct 2008 at 16:32 UTC
Hi.
I have already installed Simplenews 1.3 and this works fine for me. After the upgrade to version 1.4, the email-form in the simplenews subscription-block is not visible.
Drupal returns following Error-Message with every page-view:
call_user_func_array() [<a href='function.call-user-func-array'>function.call-user-func-array</a>]: First argument is expected to be a valid callback, 'simplenews_block_form_7' was given in /drupal/includes/form.inc in Zeile 218.
Many Thanks for Help.
Frank
Comments
Comment #1
sutharsan commentedDo your newsletters still have the usual 'Newsletter sending options'? Then goto the block admin page (/admin/build/block) and re-install the block.
If your newsletters do show the 'Newsletter sending options' than you need to disable and enable the module. This will reset the simplenews taxonomy. You will need to re-create your newsletter issue tags.Edit: If your newsletters do show the 'Newsletter sending options', please report or contact me on IRC.Edit: If your newsletters do NOT show the 'Newsletter sending options', please report or contact me on IRC.
Comment #2
jadymitchell commentedI have the same problem.
Comment #3
sutharsan commentedI have the same solution.
Comment #4
frank.dev commentedHi Sutharsan,
Excuse for the fact that now only I announce myself.
Yes, the 'Newsletter sending options' is visible.
Thanks and greetings
Frank
Comment #5
sutharsan commentedHave you tried the first part of my #1 comment? Remove the bock and re-enable it?
I've now corrected a typo in the second part of #1.
Comment #6
sgabe commentedI have the same problem. The subscription block displays only the block message, the subscription form is missing. I tried remove, and re-enable the block, but it doesn't work.
Comment #7
frank.dev commentedSorry, I forgot to mention it: yes, I remove and re-enable the Newsletter-Block on /admin/build/block .
Comment #8
sutharsan commentedI need some more information:
1. Any errors in the watchdog like "First argument is expected to be a valid callback, 'simplenews_block_form_7'"?
2. Do you have one or multiple vocabularies 'Newsletter' on the Category admin page (admin/content/taxonomy)?
3. Does the newsletter list on the simplenews admin pages (admin/content/newsletters/types) show your regular newsletters or none?
4. Edit the simplenews.module and replace the simplenews_forms() function (line 768 in 5.x-1.x-dev) with the folowing code:
On every page where the block is displayed this code will show:
newletter: newsletter name
or
simplews_vid is empty
or
vocabulary name (vid number)
or
(vid number)
Comment #9
sgabe commentedNo, I see just this one.
I have one 'Newsletter' vocabulary on the Category admin page.
The newsletter list shows my regular newsletter.
I replaced the code. With user number 1 I see the 'newletter: newsletter name' message on the top of the page, with a simply user I see the 'vocabulary name (vid number)' message.
In these points everything seems just fine, I think. But with user number 1, there is no error message, only if I log in with a simply user. I got this error message, and the subscription form in the block doesnt show, just the newsletter message. With user number 1 everything works just fine.
Comment #10
sutharsan commented@sgabe: you have a different problem than Frank.dev. I suspect you have some kind of access restriction in place for the 'simply user'. This user probably has no access to the newsletter vocabulary, which is required.
@Frank.dev: Please try #8. I plan to create a new issue shortly and want to include fixes for his.
Comment #11
sgabe commentedYou are right, I checked the anonymous and authenticated users permissions in the Taxonomy-Access module. In the 'Newsletter' category I set the View, and Update permissions to enabled for these users. It works fine now, thanks for your help.
I think Frank.dev have the same problem, it is worth a shoot. I only noticed it too when I upgraded the simplenews module from 1.3 to 1.4 there was no problem before that.
Comment #12
sutharsan commented@sgabe: View permission is enough. I will put a watchdog error message in to notify the admin of this configuration problem and possibly ad a line in the readme.
Comment #13
frank.dev commentedHi Sutharsan!
Many Thanks for your support!
Here now my answers to your questions:
It is always the same mistake him is announced and which I already described in my first post.
Yes, I have one vocabularies 'Newsletter'.
'Newsletter' is indicated in the list.
The following line is indicated (as anonymous user):
Greetings
Frank
Comment #14
frank.dev commentedTo information:
I also use the module "Taxonomy Access". But the authorisations settings are correctly put for the "anonymous user". In Simplenews 1.3 with the same settings has correctly worked.
Comment #15
sutharsan commentedThe difference between 1.3 and 1.4 is the way the newsletter block form gets its data. A change was made to enable multiple newsletter blocks on one page (see http://drupal.org/node/273218). As a side effect is, as I now see, that anyone access the page with the block need access to the newsletter vocabulary and its terms.
Your results tell me that vocabulary and taxonomies are correctly set and are known by simplenews.
Please check the taxonomy access permissions again. Not having access is the only explanation.
Does giving access have any unwanted effects?
Comment #16
frank.dev commentedHi,
I have checked the settings of the "Taxonomy Access" again. After I activated the option "List" for the category "Newsletter", the subscription form was indicated for the Newsletter block again.
Many Thanks for your Support
Frank
Comment #17
sutharsan commented@all: are there use cases where it is required to restrict access to view the newsletter taxonomy but still have the ability to subscribe to newsletters?
It is possible to realize this possibility but I have to divert from the normal 'route'. If the use cases are strong enough you can convince me.
Comment #18
sutharsan commentedNo response, closing the issue.
Comment #19
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.