Comment 1 for bug 1401708

Aaron Wells (u-aaronw) wrote :

Right, so the problem is that new plugins get installed before core upgrades run. So what's happening is this:

1. The new "text" blocktype goes to install. It uses the method install_blocktype_categories_for_plugin() to fill in the plugin's categories. This method looks for the available categories in the "blocktype_category" table. It doesn't find "shortcut" there, so it skips that one, leaving the "text" blocktype in no categories.

2. The core upgrade runs and sets up the "shortcut" category type.

I'll have to do a little research to figure out the best way to resolve this. I'd like to think that it makes more sense to install new plugins *after* running core upgrades and maybe upgrades for existing plugins as well. But certainly before we make a change that big to the install process, we need to look at the code history and determine whether there's a reason why the new plugin installs come first.