I've been encountering this warning message frequently. Using the 7.x-2.x-dev version as there was some other issue I had which was resolved by upgrading from 7.x-2.0. This is NOT urgent but I figured I should just report it. Please feel free to let me know if you want any other information for this.

Error code:
Notice: Undefined index: #type in bh_bootstrap_form_element() (line 280 of /var/www/sites/all/themes/bh_bootstrap/includes/form.inc.php). =>

To help save debug time, this is what the section of form.inc.php contains on my site:

278 case 'none':
279 case 'attribute':
280 switch ($element['#type']) {
281 case 'checkbox':
282 case 'radio':
283 $output .= ' ' . $prefix . $element['#children'] . $suffix . "\n";
284 break;
285 default:
286 // Output no label and no required marker, only the children.
287 $output .= ' ' . $prefix . $element['#children'] . $suffix . "\n";
288 $output .= $description;
289 }
290 break;
291 }

Comments

bedlam’s picture

Component: User interface » Code
Assigned: Unassigned » bedlam

Thanks for the bug report!

This is just a PHP notice so, as you've already noticed, it's harmless. Nevertheless, it should be fixed (I just need to make sure the #type key exists in the element array before running the switch() function).

I'm going to release a point version this week, I think. I'd been holding out to solve a significant issue (more of a Drupal issue, but still something that really must be fixed), but there are several other fixes stacked up in the dev version and I'd like users to be able to use a stable release.

PS: Can you say more about the bug that drove you to upgrade to the dev version?

HypervisedEd’s picture

bedlam,

The bug that I encountered which resulted in my use of the dev version was discussed by yourself here: http://drupal.org/node/1706354

So thank you for both resolving my previously encountered bug in the dev version & for responding so quickly to me for this minor php notice.

bedlam’s picture

Status: Active » Closed (fixed)

Fixed in dev.

Thanks for reporting and sticking around to provide more information. Much appreciated.

Stable release should follow in a day or two.

bedlam’s picture

Status: Closed (fixed) » Active
bedlam’s picture