|
You should not be accessing the db in any filetype callback other than postimport and postadd. The other callbacks can be called in contexts where the db is unavailable/locked.
If you need to store some config options that you need in those callbacks use a config file, dont store them in the db.
|