diff --git a/islandora_fits.install b/islandora_fits.install index 7ef59491..9e0da0b7 100644 --- a/islandora_fits.install +++ b/islandora_fits.install @@ -64,6 +64,13 @@ function islandora_fits_requirements($phase) : array { * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException */ function _islandora_fits_term_exists() { + $table_exists = \Drupal::database()->schema()->tableExists('taxonomy_term__field_external_uri'); + if (!$table_exists) { + // XXX: If the table does not exist, then avoid attempting to make a query + // making use of the non-existent table. + return FALSE; + } + $query = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->getQuery() ->condition('vid', 'islandora_media_use') ->condition('field_external_uri.uri', 'https://projects.iq.harvard.edu/fits')