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

sutharsan’s picture

Status: Active » Postponed (maintainer needs more info)

When does this fault occur? What url is called? Is this with standard simplenews or custom code?

stalak’s picture

it 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

sutharsan’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Fixed

use module_load_include() to include simplenews.subscription.inc This is standard Drupal behaviour.

Status: Fixed » Closed (fixed)

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