Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
vegardjo CreditAttribution: vegardjo commentedBTW, I found that adding this
$wrapper_attributes = array();
(without php start and end tag) on the line above line 426 fixed itComment #2
bedlamHi 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:
Comment #3
bedlamAlternatively, please test with the latest dev version and see if it resolves your issue.
Comment #4
vegardjo CreditAttribution: vegardjo commentedHi, 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
Comment #5
bedlamPlease test with the latest dev version. Thanks for the extra info.
Comment #6
bedlamBump.
vegardjo, please test latest dev version and let me know if it resolves your issue.
Comment #7
vegardjo CreditAttribution: vegardjo commentedHi 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.
Comment #8
nd987 CreditAttribution: nd987 commentedDev 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.
Comment #9
bedlamThans vegardjo and nd987. Testing much appreciated.
Fixed in latest dev version.
Comment #10
bedlam