- πΊπΈUnited States TomTech
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.
Error message:
WD php: FieldException: Attempt to create field name commerce_license[error] which already exists, although it is inactive.
The problem is in commerce_license_configure_line_item_types. field_info_field returns nothing if the field is inactive. Attempt to create then fails.
Not sure exactly how to get the inactive field. In my case it was after restoring the site from backup.
Maybe prior to create, the code needs to call
field_read_fields(array('field_name' => $field_name), array('include_inactive' => TRUE))
and if this succeeds, set active to TRUE and call field_update_field instead of creating.
I was rather in a hurry when I hit this last time :-) so didn't have time to make and test a fix. The problem seems to go away if you "fiddle around with things". I think maybe I ran the restore from backup again.
Closed: outdated
1.3
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed because Drupal 7 security and bugfix support has ended β as of 5 January 2025. If the issue verifiably applies β to later versions, please reopen with details and update the version.