Hi, just noticed that using this theme breaks forms made with the Webform module, all I get is the title of the webform, and the tabs (view / edit / webform ...), then this:

Error

Notice: Undefined variable: wrapper_attributes in bh_bootstrap_textarea() (line 426 of /opt/local/apache2/htdocs/d714-platform/sites/gotime.d7.local/themes/bh_bootstrap/includes/form.inc.php).
Recoverable fatal error: Argument 1 passed to drupal_attributes() must be an array, null given, called in /opt/local/apache2/htdocs/d714-platform/sites/gotime.d7.local/themes/bh_bootstrap/includes/form.inc.php on line 426 and defined in drupal_attributes() (line 2296 of /opt/local/apache2/htdocs/d714-platform/includes/common.inc).

The website encountered an unexpected error. Please try again later.

I can edit the form just fine, but not view it.

Comments

vegardjo’s picture

BTW, I found that adding this

$wrapper_attributes = array(); (without php start and end tag) on the line above line 426 fixed it

bedlam’s picture

Assigned: Unassigned » bedlam

Hi there,

Thanks for the bug report and (especially!) for identifying a fix.

Unfortunately, I can't reproduce the problem here. Could you please update the issue with:

  • description of the steps required to reproduce the problem
  • a screenshot of the webform components you're using (feel free to blank out the names if need be, I'd just like to see the types of components in use
bedlam’s picture

Alternatively, please test with the latest dev version and see if it resolves your issue.

vegardjo’s picture

Hi, I had the webforms from before, and this happened when I enabled the theme. Choosing a different theme made it go away again. There were two webforms and both were broken, one had:

fieldset
select options
textfield
number
e-mail
textarea

the other had all the same + date

bedlam’s picture

Status: Active » Needs review

Please test with the latest dev version. Thanks for the extra info.

bedlam’s picture

Bump.

vegardjo, please test latest dev version and let me know if it resolves your issue.

vegardjo’s picture

Status: Needs review » Postponed (maintainer needs more info)

Hi Bedlam, really sorry for not following up! On this particular site we ended up switching both developer and theme (for other reasons than this issue), so I don't have an install where I can test this again at the moment.. If I get the time I will try it on a fresh site, but for now I'm just marking it postponed. My bad.

nd987’s picture

Dev release fixes the issue for me. For me, I was getting a recoverable fatal error due to this, which was pages with forms (webform or otherwise) from loading. Seems to be fixed.

bedlam’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thans vegardjo and nd987. Testing much appreciated.

Fixed in latest dev version.

bedlam’s picture

Status: Fixed » Closed (fixed)