Call-time pass-by-reference has been deprecated
| Project: | External Link Popularity |
| Version: | 6.x-1.1 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | critical |
| Assigned: | XStream83 |
| Status: | closed |
Jump to:
Just installed the Pop_Links to my site and i get this crazy error. I followed complete instruction while installing. Uploaded it to them modules area and everytime i click it to be enabled and hit the save button this below comes up.
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/r/a/c/raceside/html/modules/pop_links/pop_links.module on line 164
I went and enabled the Call-Time-Pass-Reference in my INI file and it still does the same thing.
Running theme Ability, PHP Version 5.25 and Web Server Apache
How can i fix this?

#1
Hi:
Which version of Votingapi are you using?
This error is associated with ELP's call to the votingapi function:
votingapi_set_votes(&$votes, $criteria = NULL)ELP passes the votes array by reference. If you have an older version of the Votingapi module, that could cause this problem.
--sicjoy
#2
have the newest version of the voting api 6.x-2.0-beta6 installed. also just tried it with the older version and still same thing. Switched to the Garland theme and still does it as well. Could it be something in my INI File? heres a look at it below. also could having the fivestar voting module installed be messing with it?
php.ini preview
register_globals = off
allow_url_fopen = off
memory_limit = 100M
post_max_size = 15M
file_uploads = On
upload_max_filesize = 15M
expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
[Zend]
zend_extension=/usr/local/zo/ZendExtensionManager.so
zend_extension=/usr/local/zo/4_3/ZendOptimizer.so
allow_call_time_pass_reference = true
rg_emulation=off
#3
Line 164 looks to be under the function pop_links_handle:
votingapi_set_votes(&$vote);. You shouldn't be passing the variable by reference because the function declaration in the 6.x version of VotingAPI is in factfunction votingapi_set_votes(&$votes, $criteria = NULL). There is no need to reference the variable parameter in the pop_links.module function call.#4
Right you are Dave Reid!
Will fix it immediately!
Thanks,
sicjoy
#5
#6
Automatically closed -- issue fixed for two weeks with no activity.