When blocks are loaded as droplets but the blocks themselves are later deleted, the entries in the database table mysite_content are not deleted. This results in the Droplet page at admin/settings/mysite/type/droplet refusing to load (it gives an error about how something is missing in droplet.inc on line 243--the line where blocks are loaded). This wouldn't normally be a problem, but blocks are sometimes deleted when modules are turned off, uninstalled, or deleted. Specifically, I experienced this problem after turning off Activity and Simple Karma.

The deleted blocks also still show up for users to choose on the Droplet selection page.

I apologize, but I won't be able to do any more testing on this. I'm very tight on time right now and I got everything working by manually deleting the offending database entries.

CommentFileSizeAuthor
#3 droplet.patch5.32 KBagentrickard
#2 droplet.patch3.97 KBagentrickard

Comments

agentrickard’s picture

Assigned: Unassigned » agentrickard

I understand. Thanks for the report. I suspect something similar may happen with Views.

agentrickard’s picture

StatusFileSize
new3.97 KB

Please test the following patch against 5.x.2.19. To apply, put the patch in your mysite > plugins > types folder.

This will prevent the errors and delete Droplets when you go to the Droplets administration page. Then, those items will be deleted from user pages on the next MySite cron run -- which is scheduled for once per day.

If we need a more robust fix, I'll consider it, but it is hard to react to module deactivation.

agentrickard’s picture

StatusFileSize
new5.32 KB

And a patch against 5.x.3.

agentrickard’s picture

Status: Active » Needs review
agentrickard’s picture

Status: Needs review » Fixed

Committed to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.