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.

Comments

SeedTreeLLC’s picture

I set allow_call_time_pass_reference to true in my php.ini it works now.

allow_call_time_pass_reference = On

sodome’s picture

For 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.

jonesui’s picture

Add 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)

vordude’s picture

Status: Active » Needs review
StatusFileSize
new745 bytes

Here's a patch,

Adjust line 87 to read

      taxonomy_form_alter(&$form, $form_state, $form_id);

instead of

      taxonomy_form_alter(&$form, &$form_state, $form_id);

should square that away...

socialnicheguru’s picture

I 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

smsearcy’s picture

StatusFileSize
new771 bytes

Here 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.

vordude’s picture

Status: Needs review » Closed (fixed)

Included in latest commit, release forthcoming.

vordude’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.