Hello chaps,
I had some really fierce errors with Microdata, so I disabled the module and deleted the files from the /sites/all/modules directory and then cleared my caches. After attempting to reinstall - I get this message:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'thetenor_tenor.dr_microdata_mapping' doesn't exist: SELECT mapping AS mapping FROM {microdata_mapping} microdata_mapping WHERE (type = :db_condition_placeholder_0) AND (bundle = :db_condition_placeholder_1) ; Array ( [:db_condition_placeholder_0] => comment [:db_condition_placeholder_1] => comment_node_page ) in _microdata_load_mapping() (line 864 of /home/thetenor/public_html/sites/all/modules/microdata/microdata.module).
Looking in the database I can't find any tables with 'micro', 'data' or 'microdata' in their names.
Comments
Comment #1
daemonchrist commentedUnable to reproduce. Sounds like the module might not have been completely uninstalled...
Comment #2
arpieb commentedYeah, I'm seeing the same thing on a fresh install of the module from the 7.x-1.x branch, commit 0a6b2d9244c0b735c567ae3fa09e4be1789daa7b:
I'm guessing there's something wrong with the schema defined in microdata_schema as neither that table nor cache_microdata_vocabulary gets created. I'll see if I can find the error and create a patch for it.
Comment #3
arpieb commentedOK, this is interesting - dropped my database, re-installed my site from scratch again and enabled the module, and now the tables get created properly. Maybe there's some race condition between hook_schema and hook_entity_info_alter...?