#2759 closed defect (bug) (fixed)
Call-time pass-by-reference has been deprecated
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | 1.2.6 | |
Component: | Core | Keywords: | |
Cc: |
Description
I’ve just installed buddypress1.2.6 on wordpress 3.0.1 and I’ve followed the instructions to activate NETWORK and multisite after that activated the BP theme and then as soon as i activate buddypress everything goes blank white screen, after enabling the debugging of wordpress I get this error only
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of apply_filters(). 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/www/sitename/wp-content/plugins/buddypress/bp-core.php on line 562
but like page full of the same warning on different php files from bp-core.php till bp-xprofile/bp-xprofile-templatetags.php on line 193.
I don’t have any other plugins installed or even uploaded
Change History (3)
#3
@
14 years ago
I imagine this was done to allow a callback to then modify more than just the variable returned, but also these additional variables passed by reference. (Any changes done to them would then be reflected in the calling code.)
For this, you'll want to consider do_action_ref_array, apply_filters_ref_array, or potentially a simple compact() then extract() to ensure that plugins can still change what they used to be able to change.
(In [3479]) Don't pass function arguments by reference, as deprecated in PHP 5.3. Fixes #2759.