Drupal 6.19, Stylistics 6.x-1.0, File attachment utils 6.x-1.4.
"Notice: Undefined index: #stylistics_processed in _stylistics_pre_render() (line 25 of /drupal/sites/all/modules/stylistics/stylistics.module)." appears after patch command was run using D6-core-simpletest.patch.
The Stylistics module is required by the File Attachment Utilities module.
Following lines are from the
stylistics.module
Line 11 /**
Line 12 * Implementation of hook_form_alter().
Line 13 *
Line 14 * We don't know where we are in the order of module list, so throw in the
Line 15 * pre_render callback on every form and we'll check the form at that point.
Line 16 */
Line 17 function stylistics_form_alter(&$form, $form_state, $form_id) {
Line 18 $form['#pre_render'][] = '_stylistics_pre_render';
Line 19 }
Line 20
Line 21 /**
Line 22 * Implements hook_pre_render().
Line 23 */
Line 24 function _stylistics_pre_render($form) {
Line 25 if (!$form['#stylistics_processed']) {
Line 26 _stylistics_scan($form);
Line 27 $form['#stylistics_processed'] = TRUE;
Line 28 }
Line 29 return $form;
Line 30 }
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | stylistics-notice-fix-959318-3.patch | 496 bytes | bcmiller0 |
| D6-core-simpletest.patch | 16.26 KB | stevecory |
Comments
Comment #1
dave reidPHP notices have to be fixed in the module responsible for them.
Comment #2
Anonymous (not verified) commentedsubscribe
Comment #3
bcmiller0 commentedadding patch in this module to fix notice problem.