Module trying to access non-existent table: cache_entity_tmgmt_translator when saving Microsoft translator with API key.

If it is still too early to report issues, please just close this issue. No explanation required.

I'm reporting it because there is an alpha and the readme says the MS translator is working.

If you have time and it's a yes/no answer ... Can I create this table by just duplicating the structure of table cache_tmgmt?

Comments

berdir’s picture

Category: support » bug

That sounds like an issue with entitycache. That's a table maintained by that module. I assumed it's created automatically but it doesn't look like it. Will need to investigate. For now, you should be able to disable entity cache until we have fixed this.

Yes, the module should be ready for testing but there will of course be bugs :)

berdir’s picture

Looking at the code, it should also work when you re-install (disable, uninstall, install) the entity cache module while tmgmt is installed. That should create the table.

We will need to look into who needs to create the table when.

tebb’s picture

Berdir,

I already did the following which seems to have worked.

Since all the tables cache_* I looked at have the same structure, I created a table in SQL with the same structure, with name: cache_entity_tmgmt_translator.

Went back in and saved the MS translator with the MS API key.

Did some node translations as per your readme instructions.

All worked as expected.

Wow! This is great!

Again, thank you for your excellent work.

GDrupal’s picture

Component: Code » Core
Status: Active » Fixed

This issue is fixed in the dev branch.
This line in the tmgmt.install file creates the table needed by the entitycache module.


// Clone the schema for our cache table from Drupal core.
 $schema['cache_tmgmt'] = drupal_get_schema_unprocessed('system', 'cache');

berdir’s picture

Status: Fixed » Active

That's a different cache table, this isn't fixed.

GDrupal’s picture

@Berdir : My bad! totally right about that... sorry! I will review it further and create a patch if necessary.

GDrupal’s picture

Status: Active » Needs review
StatusFileSize
new541 bytes

The entity cache module states:

There is no automated support for contrib entities, to use entitycache for a contrib or custom entity:

  • Create a cache_entity_$myentity table/bin.

For support installing the the tmgmt module when entity cache is enabled this patch provides the fix.

GDrupal’s picture

Sorry for the trailing spaces!

berdir’s picture

Status: Needs review » Fixed

Thanks, commited.

I'm wondering if there is a conflict potential if for some reason both entitycache and tmgmt end up trying to create the table, but I think we're good because we only do if entitycache is already installed and entitycache only does if tmgmt is already installed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Corrected spelling.