Hello,

To avoid the notice: "Notice : Only variables should be passed by reference",
I had to change the file "i18n_commerce_product.module" on ligne 221 like this:

form :

drupal_alter('commerce_cart_product_comparison_properties', $comparison_properties, clone($line_item));

to :

$line_item_clone = clone($line_item);
    drupal_alter('commerce_cart_product_comparison_properties', $comparison_properties, $line_item_clone);

Comments

steveoriol created an issue. See original summary.

kala4ek’s picture

Assigned: Unassigned » kala4ek

  • kala4ek committed 4ada27f on 7.x-1.x authored by steveoriol
    Issue #2852528 by steveoriol, kala4ek: PHP7 Notice: Only variables...
kala4ek’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Assigned: kala4ek » Unassigned
Status: Needs review » Fixed

Thanks, committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.