Closed (fixed)
Project:
Weight
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2012 at 00:40 UTC
Updated:
5 Feb 2013 at 04:49 UTC
Hi,
I have clicked 'remove instances' from /admin/config/content/weight per http://drupal.org/node/1415488.
It returned the following errors that refer to conditional fields.
Notice: Undefined index: id in conditional_fields_field_delete_instance() (line 1180 of var/www/d7/sites/all/modules/conditional_fields/conditional_fields.module).
Notice: Undefined index: id in conditional_fields_field_delete_instance() (line 1181 of /var/www/d7/sites/all/modules/conditional_fields/conditional_fields.module).
I then proceeded to disable the module, but it then does not appear in the module uninstall list and the weight_settings table still exists in the db.
Any help would be appreciated. Thanks, Jason.
Comments
Comment #1
julien.reulos commentedHi,
Did you complete all the required steps ?
1. Go to /admin/structure/types/manage/[your_content_type] > Weight > Enable: No
2. Go to /admin/config/content/weight to remove instances. This action delete the field_data_weight and field_revision_weight tables (and create 2 new ones: field_delete_data_[some_id] and field_delete_revision_[some_id]).
3. Go to /admin/modules/list > Weight and check that the description is now "Required by: Drupal (Fields pending deletion)". It means that Drupal queued the deletion of the field_delete_data_[some_id] and field_delete_revision_[some_id] tables rows. This task can be activated by running cron. If your table has many rows, it is possible that you need several cron runs, as cron only delete 10 rows each time you execute it.
4. Go to /admin/config/system/cron and run cron.
5. When all the records in field_delete_data_[some_id] and field_delete_revision_[some_id] ara deleted by cron, you go back to /admin/modules/list > Weight. This time the module can be desactivated.
6. Finally you go to /admin/modules/uninstall, mark Weight and click Uninstall button. The weight module is now completely removed, as the weight_settings table.
If you still have problems with the Conditionnal Fields module, try disable it first and then repeat these steps.
You can have a look at this radical solution also: http://drupal.org/node/1284358#comment-5317670.
Comment #2
davisbenI'm not familiar with the Conditional Fields module, but I'll set it up and see if I can reproduce this.
Comment #3
cigotete commentedI have tested the #1 steps with success (80 times of cron)
Comment #4
lsolesen commentedI could not get #1 to work. I've checked my content types. None has weight enabled. Then I Removed instances. However, it still says a field is using the module.
Maybe the module should be able to report exactly which content types and fields that are the problem, so it isn't so hard to disable and uninstall the module again.
Comment #5
predde commentedI am seeing the same issue in 7.x-2.0-beta3. Have tried #1 without success. Weight is not enabled in any content type. Tried removing instances, but the module list still indicates the field type as in use by drupal.
Update
After enabling and then disabling Weight on a single content type, I was able uninstall using #1. So, for what it's worth, I only saw the issue before I had enabled Weight on any content type.
Comment #6
davisbenI just committed a major overhaul to the weight field system that should eliminate this problem.
Comment #8
vacho commentedI've solved Cron running.
Thank you!