Warning: Call-time pass-by-reference has been deprecated
tom-d - April 6, 2008 - 10:41
| Project: | DataBase File Manager |
| Version: | 5.x-3.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | rooey |
| Status: | closed |
Jump to:
Description
To my surprise after enabling this module it spits out before drupals header
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 /home/.oolong/polybonk/poly.osrcgamer.com/drupal5/sites/all/modules/dbfm/dbfm.module on line 2604

#1
Changed line 2604
$ret_val = dbfm_perm_recur($fkid, &$err_str);
to
$ret_val = dbfm_perm_recur($fkid, $err_str);
#2
Can you confirm that this was defiantly 5.x.3.0 ?
#3
#4
Yes this was with dbfm-5.x-3.0
#5
#6
This also happened to me with 5.x-3.1. tom-d's fix got rid of the error for me too.
#7
Grr. I don't know how this one snuck back in on 5.x.3.1 lol - we had fixed it!
#8
The error line in the current version is now: 2576 with the expression as reference by tom-d's fix and got a mess.
ie.,
Changed line 2574
$ret_val = dbfm_perm_recur($fkid, &$err_str);
to
$ret_val = dbfm_perm_recur($fkid, $err_str);
It now appears that the error isline 1555:
$js = 'function getIconDir(){return '.drupal_to_js($base_url."/".variable_get('dbfm_icon_dir','')).';} function getDbfmPath(){return '.drupal_to_js($dbfmpath).';} function getCleanUrl(){return '.drupal_to_js($clean_url).'; }';
#9
Thanks will add it to the list.
#10
#11
#12
Automatically closed -- issue fixed for two weeks with no activity.