【问题标题】:Drupal is looking for a field that no longer existsDrupal 正在寻找一个不再存在的领域
【发布时间】:2011-09-09 10:01:32
【问题描述】:
Warning: Cannot modify header information - headers already sent by (output started at /home/sites/superallan.com/public_html/includes/common.inc:2561) in drupal_send_headers() (line 1040 of /home/sites/superallan.com/public_html/includes/bootstrap.inc).
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'web247-sa_admin.field_data_field_embedcode' doesn't exist: SELECT field_data_field_embedcode0.entity_type AS entity_type, field_data_field_embedcode0.entity_id AS entity_id, field_data_field_embedcode0.revision_id AS revision_id, field_data_field_embedcode0.bundle AS bundle FROM {field_data_field_embedcode} field_data_field_embedcode0 WHERE (field_data_field_embedcode0.deleted = :db_condition_placeholder_0) AND (field_data_field_embedcode0.bundle = :db_condition_placeholder_1) LIMIT 10 OFFSET 0; Array ( [:db_condition_placeholder_0] => 1 [:db_condition_placeholder_1] => blog ) in field_sql_storage_field_storage_query() (line 569 of /home/sites/superallan.com/public_html/modules/field/modules/field_sql_storage/field_sql_storage.module).

据我了解,Drupal 正在寻找我删除的数据字段。我想也许它已经损坏了,Drupal 找不到它来正确删除它。在 phpMyAdmin 中它不存在,所以我怎样才能让 Drupal 识别它不再存在并阻止它在每个页面底部显示此错误?

您可以在此页面上看到它:http://superallan.com/404

【问题讨论】:

  • 你最初是如何“删除”该字段的?
  • 我将它添加到内容类型中 - 放入一个小文本字段,对其设置巨大的字符限制,drupal 给我一个错误,所以我将其从内容类型中删除。

标签: sql database drupal phpmyadmin


【解决方案1】:

您是否尝试过清除站点缓存或卸载提供该字段的模块?看起来对该字段的 SQL 数据的引用一直存在于您的数据库中,这当然会导致您发布的错误。

【讨论】:

    【解决方案2】:

    这对我有用: 从field_config 删除deleted = 1; 从field_config_instance 中删除deleted = 1;

    删除所有已删除的内容对我没有任何不利影响。

    来源: http://digcms.com/remove-field_deleted_data-drupal-database/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-06-06
      • 2014-05-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-30
      • 1970-01-01
      相关资源
      最近更新 更多