When a field is deleted the following error shows:
strict warning: Only variables should be passed by reference in cck/includes/content.crud.inc on line 550.

#1 cck-n2466551-1.patch769 bytesDamienMcKenna
Members fund testing for the Drupal project. Drupal Association Learn more


DamienMcKenna’s picture

Status: Active » Needs review
769 bytes

The problem was the return from content_field_instance_read() was being passed directly into array_pop(), whereas it needed to be stored in a variable first.

DamienMcKenna’s picture

Michelle’s picture

Status: Needs review » Reviewed & tested by the community

I confirmed this got rid of the error.

osopolar’s picture

I marked issue #2328963: On fields delete from content type shows "PHP Warning : Only variables should be passed by reference" as duplicate, as this one is already RTBC.

Please add credit to rohit.wadhwa too, as he fixed this first.