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.
Unable to delete a custom publication type. Generated error is:
Notice: Undefined variable: ftdids in biblio_admin_types_delete_form_submit() (line 1670 of /etc/drupal7/www.example.com/modules/biblio/includes/biblio.admin.inc).
•Warning: Invalid argument supplied for foreach() in DatabaseCondition->compile() (line 1853 of /usr/share/drupal7/includes/database/query.inc).
•PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 1: DELETE FROM {biblio_field_type_data} WHERE (ftdid IN ()) ; Array ( ) in biblio_admin_types_delete_form_submit() (line 1671 of /etc/drupal7/www.example.com/modules/biblio/includes/biblio.admin.inc).
MySQL version is 5.1.
Comments
Comment #1
rupesh_jagtap CreditAttribution: rupesh_jagtap commentedHi,
I have created a patch for mentioned bug. Please review it.
Comment #2
gmaxwelled CreditAttribution: gmaxwelled commentedI can confirm that this patch fixes the issue.
Comment #3
joshuautley CreditAttribution: joshuautley commentedSame here. Patch resolves the error.
Comment #4
joshuautley CreditAttribution: joshuautley commentedComment #5
rupesh_jagtap CreditAttribution: rupesh_jagtap as a volunteer and commented@rjerome - Can you please merge the shared patch?
Comment #6
Liam MorlandRestoring status.
Comment #8
Liam MorlandThanks!