Get the following error when I attach a file:
warning: Parameter 2 to wysiwyg_form_alter() expected to be a reference, value given in /home/yancoko/public_html/example.com/includes/common.inc on line 2839.
The file is being uploaded through file attachments option.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | wysiwyg.module.patch | 432 bytes | Daniel Norton |
| #1 | wysiwyg.module.patch | 437 bytes | Daniel Norton |
Comments
Comment #1
Daniel Norton commented*** OBSOLETE PATCH ***
Comment #2
Daniel Norton commentedThe attached patch to the dev build removes the warning. There was no underlying error besides the warning, and that warning mechanism shouldn't be enabled on production sites, so I dropped this priority to "minor".
Comment #3
Daniel Norton commentedFor 7.x, see #908722: Wrong formal parameter type in wysiwyg_form_alter
Comment #4
twodThis is not a bug in Wysiwyg. Instead, fix the module calling drupal_alter() incorrectly (things passed by reference need special treatment, see comment in that function).
A similar issue caused by CCK mentioned in #613480-24: PHP 5.3 Support, which can be fixed using the patch in #705512-1: drupal_alter('form'... called from content_add_more_js needs to pass $form_state as a reference.
Comment #5
memcinto commentedAccording to a backtrace, the module calling drupal_alter() is includes/form.inc, and it is not calling it incorrectly.