warning: Cannot use a scalar value as an array in /srv/www/htdocs/drupal/sites/all/modules/support_fields/support_fields.module on line 309.

It only appears when an anonymous user is going to post a support ticket.

Comments

span’s picture

Thanks, will look into this.

andoresu’s picture

I found a solution for this. In this loop, add this condition (it's about line 318):

foreach ($form['buttons'] as $name => &$button) {
        if (is_array($button)) {
          $button['#submit'][] = 'support_fields_real_submit';
        }
      }
span’s picture

Cool thanks, I was just looking at this and I was unable to recreate. I'm sure it can be setup specific . I'll add into the dev version and create a new RC if more reports of this come in. :)

span’s picture

Status: Active » Postponed (maintainer needs more info)

Setting as need more info since I can't recreate it. Your fix is pushed to dev though but I don't want to create a release with the fix until we know why the problem arises for you.