Regardless of whether an item has its price overwritten or whether there is a value in its Custom Price Calculation php text box, I receive a warning message when adding any item to the cart and navigating to the view cart screen:
Warning: Parameter 2 to uc_custom_price_uc_cart_item() expected to be a reference, value given in module_invoke_all() (line 817 of C:\wamp\www\drupal\includes\module.inc).
I should note that I am not using product classes or configuring the default line of code in admin/store/settings/custom-price. Thanks for your help and for the port to 7!
Comments
Comment #1
tr commentedAre you using PHP 5.3 ?
Comment #2
Dylanotron commentedYes, PHP 5.3.5.
Comment #3
Dylanotron commentedI fixed this warning from occurring by following the directions in #4 here: http://drupal.org/node/738494#comment-2815988. I removed the ampersand reference to uc_custom_price_cart_item($op, &$item). Will this have a negative impact on anything else?
Comment #4
tr commentedThanks. That seems like the right fix. Committed.