Hi,

When I setup this module to my localhost, it gives me an error below:

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 C:\wamp\www\nemtree\sites\all\modules\ubercart_marketplace\mp_products\mp_products.module on line 219

      case 'submit':
        $commission_rate = mp_products_get_commission_rate($node->type);
        // auto calc commission if enabled and needed
        if (variable_get('mp_products_auto_calc', FALSE) && !(user_access('administer products') && variable_get('mp_products_admin_override', FALSE))) {
          if (variable_get('mp_products_auto_calc_field', 'sell_price') == 'list_price') {
            $node->cost = $node->list_price * $commission_rate;
          }
          else {
            $node->cost = $node->sell_price * $commission_rate;
          }
        }
        // invoke hook_list_product()
        module_invoke_all('list_product', &$node); //NOTE: This is the line 219.

Please advise...

Comments

Turgrid’s picture

Status: Active » Closed (duplicate)

Duplicate: please see http://drupal.org/node/299460#comment-1012622

On a side note, thanks for including actual code snippet with line numbered. That would have made it easier for me to checkout.