Closed (fixed)
Project:
Simplenews
Version:
5.x-1.5
Component:
Miscellaneous
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2008 at 21:39 UTC
Updated:
14 Apr 2009 at 08:36 UTC
Hi,
When I want to look at the list of my subscriptions I get the following message:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'simplenews_admin_list' was given in .../includes/form.inc on line 218.
And no subscriptions are displayed!
I looked up the function in form.inc and it has something to do with the subscription form, but I have no idea what is wrong with that form.
Anybody has a clue?
Comments
Comment #1
thomas74 commentedcleaning up cache solved the problem.
Comment #2
aschiwi commentedFor me it's this message:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'simplenews_block_form_18' was given in /srv/www/vhosts/humanagement.de/httpdocs/includes/form.inc on line 218.
And clearing cache does not solve the problem. It concerns pages with subscriptions blocks on them and the error is only visible for anonymous users.
Comment #3
sutharsan commentedSimplenews 5.x-1.2 is not supported. please update to the latest (stable) version.
Comment #4
aschiwi commentedSorry, I am running the latest version, forgot to change that in the issue settings. Any ideas?
Comment #5
aschiwi commentedI really can't figure out the problem here. Since 5.x-1.5 has been out since June of last year, I have been using it without any problems. Now on a page with the the newsletter subscribe block, anonymous user gets the following error and no email field is displayed.
I'm not too sure when this happened, since I don't surf my site as anonymous that much. I do think it happened with my last upgrading procedure. I upgraded to Drupal 5.15 and I updated Simplenews Template. I do have a custom module extension which shows me the number of subscribers per newsletter and sends me an email when somebody subscribed or unsubscribed. But I still get the error after uninstalling that module.
Hope you can help,
Anja
Comment #6
sutharsan commented@aschiwi: the original issue is about 'simplenews_admin_list' not 'simplenews_block_form_...'. It may look the same, but it is a different thing.
You may have changed the taxonomy term of your newsletter. simplenews_block_form_28 expects the newsletter term id to be '28'.
You can try to re-install (disable + enable) the subscription block.
Comment #7
aschiwi commented@Sutharsan, okay sorry.
I already disabled and enabled the subscription blocks. I did not change the name for the term either... I guess I'm just not gonna provide a subscription block then.
Thanks for trying to help :-)
Comment #8
aschiwi commentedI tried to tackle this issue again and found the solution. Within one of the subscription blocks I un-checked the "Display subscription form" and got a link to newsletter/subscriptions for anonymous user and it turned out that were 2 newsletters available for subscription but I actually have 5. I tried the subscription block on those two and it worked on there without an error message.
Since simplenews doesn't provide a way to choose whether a newsletter should be subscribable or not, I had my trace. Turns out this was a problem with another module - Taxonomy Access. Anonymous didn't have the "show all" box checked for those newsletters that didn't work. Since the content was visible anyway, I had a real hard time finding this.
Comment #9
aschiwi commentedComment #10
avpadernoComment #11
avpaderno