On submitting a new webform here node/add/webform I get:

( ! ) Fatal error: Call to undefined function uc_webform_form_node_submit() in form.inc on line 1432

I haven't looked at this yet, just reporting it as of now.

Comments

mgifford’s picture

I think function uc_webform_form_node_form_alter() is trying to call either the BASE_FORM_ID or FORM_ID but not doing so the way it's supposed to:

http://api.drupal.org/api/drupal/modules!system!system.api.php/function/...

mgifford’s picture

Priority: Normal » Critical
Issue tags: +fatal error

Changing priority.

mgifford’s picture

I think this can just be fixed by adding this function:

function uc_webform_form_node_submit(&$form, &$form_state) {
}

That's being called because of the last line here:

      $form['base']['uc_webform_submit'] = array(
          '#type'             => 'checkbox',
          '#title'            => t('Add this webform to cart on submission?'),
          '#default_value'    => isset($form['#node']->uc_webform_submit) ? $form['#node']->uc_webform_submit : FALSE,
      );
      $form['#submit'][] = 'uc_webform_form_node_submit';

The checkbox certainly now appears on the webform, but I'm not sure what's supposed to happen to the modified $form['#submit'][] here.

onepartscissors’s picture

Hi Mgifford

Any joy on this? I'm also getting this error - but i can't see how to get around it. if i add in the code you suggested, there's no error, but the module doesn't seem to work anyway.

mgifford’s picture

Sorry. It was too long ago. Not sure what work-around we adopted.

carlnewton’s picture

Waiting on anyone to resolve this one.

deja711’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

This should not be an issue in 7.x-2.x branch. Note 7.x-1-x branch is not supported and was one of initial (abandoned) attempts for porting this module from Drupal 6.
If this is an issue with 7.x-2.x please reopen the issue.