The usage of drupal_alter()

  // Allow modules to add or alter the data sent to payment network.
  drupal_alter('commerce_payment_network_data', &$data, $order, $settings);

in the function commerce_payment_network_build_redirect_form() in the module file are wrong and produce the error

Deprecated function: Call-time pass-by-reference has been deprecated in drupal_load() (line 1128 of /var/www/commerce/includes/bootstrap.inc).

Fix

Fix the bug with following code:

  // Allow modules to add or alter the data sent to payment network.
  drupal_alter('commerce_payment_network_data', $data, $order, $settings);

To reproduce the bug

The error occurs with PHP 5.3.10 (Ubuntu 12.04).

 

Thanks for this DC module.

Comments

forward-media’s picture

Status: Active » Fixed

Thank you!

forward-media’s picture

Status: Fixed » Closed (fixed)