I have this error when I click to save the edit.

Fatal error: Unsupported operand types in /home/******/drupeal-6.4/includes/common.inc on line 1275

Let me what to fixed this one. Thanks

Comments

quicksketch’s picture

It's hard to say where this is coming from, since common.inc could be called from anywhere. Also, line 1275 in common.inc is literally

);

Meaning you're probably not running a clean version of 6.4, since there's no way this line could be causing that error. You'll need to both upgrade to clean versions of core (6.6) and Webform (2.3) before I'll be able to help. This could be caused by any module you have installed that is affecting nodes, not necessarily Webform itself.

robertgarrigos’s picture

I'm having the same error with a clean drupal 6.6 and webform 2.3. Looking into it.

robertgarrigos’s picture

Got the problem, at least in my case: there is a problem with the akismet module (http://drupal.org/node/344258) which prevents to post any type of content set, by default, as unpublished. Thus, I resolved the problem by deactivating the akismet module (version 6.x-1.0-beta1)

To see the problem, having akismet activated, comment line 1000 and 1003 of the webform.module, which set the webform as unpublished initially, and you'll see how your webform works again.

function webform_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'webform_node_form' && empty($form['nid']['#value'])) {
    $form['buttons']['submit']['#submit'][] = 'webform_form_submit';
    // Force webforms to be unpublished initially.
    if (user_access('administer nodes')) {
      //$form['options']['status']['#default_value'] = FALSE; //<------commented line
    }
    else {
      //$form['status']['#value'] = FALSE; //<------commented line
    }
  }
}
quicksketch’s picture

Title: Error when click save button after editing some info » Conflict with Akismet
Category: bug » support

Great, I'm moving this to a support request, since it seems like a sort of bug with Akismet rather than Webform. This way other users will be able to find the same problem in the Webform queue.

quicksketch’s picture

Status: Active » Closed (fixed)

Closing after lack of activity.