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.
The following line throws a Fatal Error.
1108 throw new FieldException("Attempt to purge a field, @field_name that still has instances.", array('@field_name' => $field['field_name']));
Comment | File | Size | Author |
---|---|---|---|
#5 | 813822.patch | 908 bytes | asimmonds |
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedWhich type of fatal error is thrown?
Comment #2
Meriial CreditAttribution: Meriial commentedFatal error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in /dev/d7/modules/field/field.crud.inc on line 1108
Comment #3
Meriial CreditAttribution: Meriial commentedComment #4
bjaspan CreditAttribution: bjaspan commentedAre fatal errors critical? This one luckily is quite trivial to fix. Let's please remove the incorrect comma along the way: "Attempt to purge field @field_name that still has instances."
Comment #5
asimmonds CreditAttribution: asimmonds commentedAdding t() and removing the , as stated in #4
Comment #6
bleen CreditAttribution: bleen commentedwish they were all this simple ... works fine :)
RTBC
Comment #7
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #8
moshe weitzman CreditAttribution: moshe weitzman commentedWe recently decided not to wrap exception messages in t(). Lets carry on with that work in #817160: Don't translate exceptions