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

Comments

phaithful’s picture

I'm receiving the exact same error as well.

tomdeb’s picture

Assigned: Unassigned » tomdeb

Is 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

phaithful’s picture

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

darren.ferguson’s picture

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

effortlessfix’s picture

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

effortlessfix’s picture

Still no answers for this problem, I have two sites that I need to try and test.

Apollo610’s picture

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

effortlessfix’s picture

You 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 -->

sillygwailo’s picture

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

effortlessfix’s picture

Above posted worked

tomdeb’s picture

Component: Documentation » Code
Status: Active » Fixed

patch added to cvs.

tomdeb’s picture

Status: Fixed » Closed (fixed)