Closed (fixed)
Project:
Woopra
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Sep 2008 at 20:31 UTC
Updated:
21 Apr 2009 at 08:33 UTC
Jump to comment: Most recent file
I have two different web sites running Drupal and I get this error on both installs when I try to enable the module:
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/content/t/u/c/tuckernet/html/modules/woopra/woopra.module on line 197
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | woopra-call-time-pass-by-reference-313535.patch.txt | 439 bytes | sillygwailo |
Comments
Comment #1
phaithful commentedI'm receiving the exact same error as well.
Comment #2
tomdeb commentedIs it possible for you to set the value of "allow_call_time_pass_reference" to 1 in you php.ini as advised by the error message?
thanks
Comment #3
phaithful commentedhmm... I'd rather not use deprecated code. Probably not in this case, but many times I find that deprecated code can lead to security vulnerabilities that I'd rather not deal with.
I'll see if I can find a different work around. Thanks
Comment #4
darren.ferguson commentedThe function that is being passed the value i.e.
function test($id) {
// do something
}
calling the function
test(&$id);
It is saying that the above is no longer valid you should do the following:
function test(&$id) {
// do something
}
calling the function
test($id);
So the line where you are getting the message check which function it is and then you can change the declaration and supply a patch to the module maintainer.
Comment #5
effortlessfix commentedI too just installed and got;
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/content/e/f/f/effortlessfix/html/modules/woopra/woopra.module on line 197
Skip to Content
How would I resolve this.
Comment #6
effortlessfix commentedStill no answers for this problem, I have two sites that I need to try and test.
Comment #7
Apollo610 commentedHas anyone gotten Woopra to work on 6.x & PHP5 yet?
I attempted to plugin Woopra today and was rudely smacked down with the same error everyone else is getting related to deprecated code.
Comment #8
effortlessfix commentedYou can install the woopra script in the simple ads block in the footer if you run simple ads, you can tell the block to not show the woorpa code to admin pages, it really works well.
You could also create a block and install your woorpa script to have it disturbed around your site.
Sight adjustments to the woorpa code must be done,,
Take out these tags;
<-- Woopra Code Start -->
<-- Woopra Code End -->
Comment #9
sillygwailoFrom php.net: "Note that there's no reference sign on a function call - only on function definitions. Function definitions alone are enough to correctly pass the argument by reference."
So the attached patch removes the "&" in the profile_load_profile() function call, since it's included in the function declaration already.
Comment #10
effortlessfix commentedAbove posted worked
Comment #11
tomdeb commentedpatch added to cvs.
Comment #12
tomdeb commented