When navigating to a create content page, I was getting the error screen with this log message:

Recoverable fatal error: Argument 1 passed to drupal_attributes() must be an array, null given, called in sites\all\themes\bh_bootstrap\includes\form.inc.php on line 426 and defined in drupal_attributes() (line 2301 of includes\common.inc).

This happens because the $wrapper_attributes may not have been initialized before it is passed to drupal_attributes(). Adding $wrapper_attributes = array(); just above the if statement on bh_bootstrap\includes\form.inc.php, line 419, solves the problem.

Comments

bedlam’s picture

Status: Active » Closed (fixed)

This issue was fixed in the dev branch in July.

Serves me right for not releasing a stable version in almost two months :)

There should be a stable version coming up in a couple of days.

Thanks for the bug report--much appreciated.

pierwaters’s picture

Issue summary: View changes

I am having the same issue using the last stable version of drupal 7.

Recoverable fatal error: Argument 1 passed to drupal_attributes() must be of the type array, null given, called in /home/jobsquebec/public_html/cell-phone/includes/theme.inc on line 1738 and defined in drupal_attributes() (line 2425 of /home/jobsquebec/public_html/cell-phone/includes/common.inc).

I can't upgrade to version 8 because I am planning to install the module stockunlocks witch is only compatible with version 7.x of drupal

Can someone keep it simple ? seriously, I need a fix asap, my deadline is approaching and it can give drupal a bad name if my manager finds out.