Hi
We're building an install profile that includes sarnia.
We're hitting some timing issues with the way sarnia uses the {sarnia_entity_type} table to store entity types.
Basically hook_entity_info is being called and sarnia_entity_info is running before drupal_install_schema('sarnia') is getting a chance to run.
What this leads to is an exception being thrown because the table doesn't exist.
The error is something like:

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.sarnia_entity_type' doesn't exist: SELECT label, machine_name,               [error]
search_api_server, search_api_index, id_field FROM {sarnia_entity_type};

Patch to follow once I've got an nid.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

larowlan’s picture

Status: Active » Needs review
FileSize
768 bytes
larowlan’s picture

Ignore that patch, its malformed, this one is correct

gaele’s picture

Status: Needs review » Reviewed & tested by the community

Works for me.

jmdeleon’s picture

Issue summary: View changes
FileSize
579 bytes

Re-rolled this patch against a more recent dev version (2015-Jun-11). A good check to put in, as previous patches were working fine for me.

  • jmdeleon committed 3d24ed0 on 7.x-1.x authored by larowlan
    Issue #1779762 by larowlan, jmdeleon: Issue with sarnia_entity_type not...
jmdeleon’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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