We have a custom install profile. We have our wysiwyg profiles in a feature.
We found recently that when installing the site with Drush, after the installation is complete, the wysiwyg profiles are not enabled. The wysiwyg table is empty. If we clear the cache, the profiles are restored and it works. This only occurs when installing via Drush, installing via browser works fine.
We tried adding in a features_revert at the end of our hook_install, but it did not fix the issue.
Some things I noted from investigating:
- During the installation I can see that the imported wysiwyg profiles are inserted into the database correctly.
- At some point later, the table is emptied. Also the cache item for wysiwyg_profiles is empty.
- I noted that wysiwyg implements its own static cache and at some point it is returning nothing from entity load. It seems like possibly its returning nothing, this is being written to the database and clearing the profiles.
I was wondering if someone with more knowledge of the module might be able to point us in the right direction. I understand that this could be related to something other than wysiwyg, but if there is something obvious for me to look at please let me know.