Closed (fixed)
Project:
Simplenews
Version:
6.x-1.0-rc5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2009 at 17:36 UTC
Updated:
17 Mar 2009 at 19:00 UTC
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'simplenews_subscription_manager_form' was given in /usr/share/drupal6/includes/form.inc on line 366.
when calling drupal_get_form('simplenews_subscription_manager_form');
it seems simplenews.subscription.inc is not included because it works when i copy-paste it in simplenews.module
it displays on multi-site install on linux and also on single install on windows
Comments
Comment #1
sutharsan commentedWhen does this fault occur? What url is called? Is this with standard simplenews or custom code?
Comment #2
stalak commentedit occurs when calling the function in a custom block or directly in page.tpl.php with standard simplenews on every pages.
but it works normally with the single newsletter blocks provided by the module
Comment #3
sutharsan commenteduse module_load_include() to include simplenews.subscription.inc This is standard Drupal behaviour.