Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of taxonomy_form_alter(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in ..\sites\all\modules\imagefield_import\imagefield_import.module on line 87
I've seen "Warning: Call-time pass-by-reference has been deprecated" issues posted for other modules. I'm not sure what to modify to resolve this.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | imagefield_import-348550-6.patch | 771 bytes | smsearcy |
| #4 | pass_by_ref.patch | 745 bytes | vordude |
Comments
Comment #1
SeedTreeLLC commentedI set allow_call_time_pass_reference to true in my php.ini it works now.
allow_call_time_pass_reference = On
Comment #2
sodome commentedFor those of us without the option to modify php.ini, this warning makes the module unusable on a production site. I'd eagerly implement & test any patches to the module itself.
Comment #3
jonesui commentedAdd this to your .htaccess file (in your Drupal root directory):
php_flag allow_call_time_pass_reference on
It did the trick for my Drupal 6.8 install.
-mordaga
(I agree that this should not be needed though)
Comment #4
vordude commentedHere's a patch,
Adjust line 87 to read
instead of
should square that away...
Comment #5
socialnicheguru commentedI am getting this error still once the patch was applied
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /var/www/vhosts/mysite.com/httpdocs/drupal6/sites/all/modules/imagefield_import/imagefield_import.module on line 88
The line at 88 reads:
taxonomy_form_alter(&$form, &$form_state, $form_id);
should it be
taxonomy_form_alter($form, $form_state, $form_id);
since both form and form_state are being passed by reference
Comment #6
smsearcy commentedHere is a patch that changes both parameters to no longer be passed by reference. I no longer get the error message in PHP 5.2.9.
Comment #7
vordude commentedIncluded in latest commit, release forthcoming.
Comment #8
vordude commented