New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UX] Solve the "Fields pending deletion" problem #82
Comments
This hack was introduced to work around one of the many issues of disabled modules. Also note that this behavior doesn't happen for modules that provide fields, but for modules that provide field types that have fields of those types created. |
This does not work for me. I have installed the Field Formatter Module, used it once, I think in a Field Collection. Deleted the Field Collection and now I can NOT Remove this damn module. I ran Cron a million times. Even tried removing the directory field_formatter_settings and ran Cron again, a thousand times, put the folder back and it still does not work. |
Hi @SoLoGHoST, I think if you're having this problem on an existing site, the best place to get help would be from the module's issue queue: https://drupal.org/project/issues/field_formatter_settings. This project (Backdrop) is for a new fork of Drupal that hasn't yet been released. Though you're reaffirming exactly what @jenlampton has pointed out: this is a really annoying problem for end-users. |
This blog article may be helpful: http://www.bluespark.com/blog/uninstalling-and-purging-field-modules-all-once |
Yeah, I'd love to see a Batch API process for both module uninstall and field deletion. This would probably mean converting hook_uninstall() from just a dumb hook to being one that had a |
please please please I would love love love it if someone were to work on this! I hate this about D7 and want people not to have to suffer in this way in backdrop-land :) major kudos to anyone who works on it! |
We fixed some issues with field deletion in the conversion to CMI:
This should mitigate the not-deleted-field problem significantly, but we still have work to do here to truly always delete the field immediately via a batch operation. |
The remaining work to be done is to batch the operation so that it all gets done in the first pass. |
In Drupal 7, after you delete a field from a content type, you are prevented from uninstalling the module that provided that field for some arbitrary period of time.
When you return to the modules page, that module is disabled, and stays that it's "required by Drupal" and the reason is "Fields pending deletion".
As it turns out, you can cause the fields to be deleted by running cron... an arbitrary number of times - even if there are no values in the field (it never works the first time, don't ask me why).
It would be nice if we could find a way to delete the fields when the user hits the "confirm" button on the confirm form after deleting the field. Or, if we do need a batch process to run, run it the first time cron is initiated after the field has been deleted.
This is a painful end-user WTF, and we should find a better solution to the field deletion problem.
The text was updated successfully, but these errors were encountered: