Closed (fixed)
Project:
Toolbar
Version:
6.x-2.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
25 Aug 2010 at 23:25 UTC
Updated:
23 Sep 2010 at 10:30 UTC
Loading admin/build/toolbar causes the following error:
Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of toolbar_edit_form_submit(). 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 [...]/toolbar/toolbar.admin.inc on line 366
* Drupal 6.17
* Apache/2.2.14 (Unix)
* PHP 5.2.12
Solution:
change line 366 from
toolbar_edit_form_submit(&$form, &$form_state);
to
toolbar_edit_form_submit($form, $form_state);
Comments
Comment #1
jwilson3forgot to change state. Also, dunno if this has already been fixed in dev, its a minor bug fix in a stable release, so hopefully you can get it in for a new stable release soon.
Comment #2
dankh commentedI can't reproduce this issue on multiple hosts. Pass by reference in function definition is ok what is actually deprecated is to call the function with referenced variable (http://www.php.net/manual/en/language.references.pass.php). In toolbar_edit_form_submit() there are no calls with reference.
Also consider upgrading to Drupal 6.19 due to http://drupal.org/node/360605 .
Comment #3
lpalgarvio commentedregarding my previous issue (duplicate):
PHP 5.2.14
Drupal 6.19
Comment #4
dankh commentedBug confirmed. Thanks both of you for the report.
Comment #5
dankh commentedFix committed in 6.x-2.x-dev . Release will follow.
http://drupal.org/cvs?commit=418392