2
I can't say how it got there, but it seems that a template is referencing a module that no longer exists.
It will be a bit of work to clear out, but try looking at the tpl_modid (if I recall correctly) column in the {prefix}_tplfile table and note down the ids. Then look in the {prefix}_modules table for ids that are in the tplfile, but not in the modules table.
with PHPMyAdmin, something like this:
SELECT distinct tpl_modid FROM {prefix}_tplfile;
and
SELECT mid FROM {prefix}_modules
and compare the two lists.
If you find one or more tpl_modid's that are not in the modules list, search the tplfile table for templates with that module id and delete them and the tplsource entry.
Something like this should work:
DELETE FROM {prefix}_tplfile f, {prefix}_tplsource s WHERE f.tpl_id=s.tpl_id AND f.tpl_modid=XX;
(replace XX with the module id, you've found)
I'm not 100% on the column names, so please doublecheck :)
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."
Cusix Software