Call-time pass-by-reference error?
fmesco - August 24, 2008 - 21:45
| Project: | Ubercart Marketplace |
| Version: | 5.x-1.0-beta4 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi, downloaded this mod to test it out and received the following error upon install:
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of module_invoke_all(). 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 /modules/ubercart_marketplace/mp_products/mp_products.module on line 219
Thanks!

#1
I have never seen this error before. Not sure what to tell you or do. I will take a look at the code in that vicinity, anyways. I guess one quick solution would be to set allow_call_time_pass_reference to true in your php.ini file.
#2
I'm getting the exact same error.
#3
If your php config does not allow pass by reference (and/or you do not wish to enable in php.ini), you can safely remove line 219 from mp_products.module. This is a hook that has a potential future use to some individuals and its quality and removal will be assessed for the next Marketplace release.
#4
I too am getting this error:
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of module_invoke_all(). 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/.testaroser/userinternal/drupalsite/sites/all/modules/contribs/_ubercart/ubercart/contrib/ubercart_marketplace/mp_products/mp_products.module on line 219Is this related to PHP version?
#5
The solution has already been posted (See #3):
"You can safely remove line 219 from mp_products.module. This is a hook that has a potential future use to some individuals and its quality and removal will be assessed for the next Marketplace release."
It is a PHP5 issue that will be corrected next release. For now remove the hook_invoke_all line 219.