I am playing with this greate module,trying different things and see that can not delete feed_item content type which created by the feeds. All related modules are fully uninstalled.

Comments

alex_b’s picture

Did you clear all caches?

alex_b’s picture

Status: Active » Closed (fixed)

Closed due to inactivity.

jkrane’s picture

Also cannot delete the node types for this module after uninstalling. I did try flushing the cache.

dflitner’s picture

I disabled then uninstalled the Feeds module, cleared the cache with devel, and these content types remain.

If I install Feeds again, it does not overwrite the old Feed and Feed-item content types with new default versions.

Jackinloadup’s picture

I also have this issue. Clearing cache does not help. I installed the devel module and used the empty cache feature with no avail

Jackinloadup’s picture

Status: Closed (fixed) » Active

Making as active. Feel free to change again if I am incorrect.

dflitner’s picture

Using version alpha9, btw.

What I finally had to do was go in the database and delete the content types from the node_type table. That seemed to work, but I dislike mucking about in the database.

alex_b’s picture

This is a Drupal issue btw. Under some circumstances, a module-supplied content type is not removed when the module is uninstalled.

2faroffroad’s picture

Ok, well any clue how to take them off the content list?

alex_b’s picture

To solve this issue, delete the content type in question from the node_type table and clear all your caches on admin/settings/performance.

OTOH - the content type is copied into the node_type table when it is modified by the user (not 100 % sure).

So as long as the node type is not touched, it will uninstall with Feed Defaults module. If it has been altered by the user, it will stay even if Feeds Defaults is uninstalled. While there is no UI to control this behavior (i. e. remove a content type intentionally even if it has been changed) it makes some sense as it protects site builder's changes.

alex_b’s picture

Status: Active » Closed (won't fix)
Jackinloadup’s picture

Yeah it makes sense to protect admin changes by keeping the content type. I agree with that.

Its just unfortunate that the content type doesnt get "unlocked" or deletable when feeds is uninstalled. I wonder if there is a core issue for this problem.

Anyway, Thanks for the insight!

marcushenningsen’s picture

Category: support » feature
Status: Closed (won't fix) » Active

I experienced the same problem. May I suggest that the node types get unlocked when uninstalling? It seems that the columns 'modified' and 'locked' in the nodetype table must both be set to '0' in order to be able to delete the content type from within Drupal.

Feel free to close the issue again, if this is not doable. And thanks for the help.

Marcus

alex_b’s picture

Status: Active » Closed (won't fix)

This remains won't fix as it won't be enough to just set locked back to 0. A user might actually loose changes that were done very intentionally.

While there is no UI to control this behavior (i. e. remove a content type intentionally even if it has been changed) it makes some sense as it protects site builder's changes.

What's really required is a Views-like UI on the node module level for rolling back changes on node types to code and deleting node types if there is no representation in code.

CobraMP’s picture

resurrecting this a bit as my issue is related I believe. Somewhere along the line I set the feed to forum and now on my forum pages I have a link for "post new feed" that I don't want anymore. I have disabled and uninstalled feeds and all submods and think that deleting the content types would get rid of the "post new feed" link.

yeeloon’s picture

subscribing

mlammerts’s picture

Same issue here

danoprey’s picture

I had the same issue.

To solve it I had to download my database, do a find for all references of the content type and then go back in to the database and delete them manually.

Not ideal, but it didn't actually take too long.

KMethe1087’s picture

dogmatix's tip definitely works. I just had to do the same thing and I went in to my database under node_types and deleted the ones related to the feeds module. :)

japanitrat’s picture

Hm, I want to use the Feeds module, but without the feed_item content type. It seems that if I delete the content type in the database, it just gets respawned after clearing the cache ...

subscribing

attheshow’s picture

Wow, this is messy. Not sure why we couldn't just include a database query to do this within hook_uninstall inside of feeds.install.

sgwood’s picture

This problem still has not been resolved..Drupal 6.22.

soulfroys’s picture

+1 for #21

tecjam’s picture

#21:

I fully agree.
This should have been added a long time ago to be fair.