Got this error message when trying to uninstall this module.

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dev7.hode_node_links' doesn't exist: DELETE FROM {hode_node_links} WHERE (type = :db_condition_placeholder_0) AND (subtype = :db_condition_placeholder_1) ; Array ( [:db_condition_placeholder_0] => node [:db_condition_placeholder_1] => article ) in hide_node_links_link_delete_multiple() (line 428 of /web/dev7/sites/all/modules/hide_node_links/hide_node_links.module).

// hide_node_links.module:423
  $query = db_delete('hode_node_links'); // Misspelled table name, should be 'hide_node_links'.
CommentFileSizeAuthor
#1 misspelled_table_name-1301232-1.patch528 bytesScyther

Comments

Scyther’s picture

Status: Active » Needs review
StatusFileSize
new528 bytes

Here is a patch.

Scyther’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
jamsilver’s picture

Status: Needs review » Reviewed & tested by the community

Patch is good.

jawad.shah’s picture

Good Patch works!!!

mrfelton’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

elliotttt’s picture

This is still happening.

2pha’s picture

Issue summary: View changes

Going to push a release with this patch applied?

Also, there is a function named 'hode_node_links_link_delete'.

Here is a part of hide_node_links.module from line 398, notice 3 instances of 'hode'

/**
 * Delete a specific hide node link setting from the database.
 *
 * @param $entity_type
 *   A string with the entity type.
 * @param $entity_id
 *   An integer with the entity ID.
 * @return
 *   The number of links that were deleted.
 */
function hode_node_links_link_delete($entity_type, $entity_id) {
  $conditions = array('type' => $entity_type, 'id' => $entity_id);
  return hide_node_links_link_delete_multiple($conditions);
}

/**
 * Delete multiple hide node link settings from the database.
 *
 * @param $conditions
 *   An array of conditions on the {hode_node_links} table in the form
 *   'field' => $value.
 * @return
 *   The number of links that were deleted.
 */
function hide_node_links_link_delete_multiple(array $conditions) {
  $query = db_delete('hode_node_links');
  foreach ($conditions as $field => $value) {
    $query->condition($field, $value);
  }

  return $query->execute();
}