On a fresh install of htmlbox on a brand new Drupal 6.4 site (only core modules installed), I get the following error when I install htmlbox. This error appears on the modules page after clicking, "save configuration."
* notice: Undefined index: any in /path/to/drupal/sites/all/modules/htmlbox/htmlbox.module on line 305.
* notice: Undefined variable: buttons in /path/to/drupal/sites/all/modules/htmlbox/htmlbox.module on line 393.
On the page /?q=admin/settings/htmlbox the following errors appear:
* notice: Undefined index: any in /path/to/drupal/sites/all/modules/htmlbox/htmlbox.module on line 305.
Please change the following:
line 305: add isset() around $other_forms['any']
line 393: change $buttons to 'buttons'
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 314527-htmlbox-D6.patch | 1.43 KB | dave reid |
| htmlbox.patch | 885 bytes | emmajane |
Comments
Comment #1
emmajane commentedpatch attached, updating the status
Comment #2
dave reidLooks good and fixed notices on my install.
Comment #3
dave reidActually, we probably want to use !empty() instead of isset() since we want to check that its a true value (unchecked it would be 'any' => 0, so it would still pass isset()).
Revised patch that also fixes all the
Notice: Undefined index: #post in form_builder() (line 897 of /home/dave/Projects/www/drupal6dev/includes/form.inc).PHP notices I get on nearly every form.Comment #4
Poetro commentedFixed in 6.x-1.0.