Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | cck-n2466551-1.patch | 769 bytes | DamienMcKenna |
Comments
Comment #1
DamienMcKennaThe 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.
Comment #2
DamienMcKennaComment #3
MichelleI confirmed this got rid of the error.
Comment #4
osopolarI 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.