Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Drupal 7 Drupal功能提供错误PDOException:SQLSTATE[42000]:语法错误或访问冲突:1072键列不存在_Drupal 7_Drupal Modules - Fatal编程技术网

Drupal 7 Drupal功能提供错误PDOException:SQLSTATE[42000]:语法错误或访问冲突:1072键列不存在

Drupal 7 Drupal功能提供错误PDOException:SQLSTATE[42000]:语法错误或访问冲突:1072键列不存在,drupal-7,drupal-modules,Drupal 7,Drupal Modules,当我试图在Drupal中恢复或重新创建一个特性时,它会给我这个错误“PDOException:SQLSTATE[42000]:语法错误或访问冲突:1072键列'field_xyz_shared_contact_target_type'在表中不存在:ALTER table{field_data_field_shared_contact}ADD INDEXfield_xyz_shared_contact_target_entity(field\u xyz\u shared\u contact\u t

当我试图在Drupal中恢复或重新创建一个特性时,它会给我这个错误<代码>“PDOException:SQLSTATE[42000]:语法错误或访问冲突:1072键列'field_xyz_shared_contact_target_type'在表中不存在:ALTER table{field_data_field_shared_contact}ADD INDEXfield_xyz_shared_contact_target_entity
field\u xyz\u shared\u contact\u target\u type
field\u xyz\u shared\u contact\u target\u id
);db\u add\u index()中的数组()


我如何修复它?谢谢您的帮助。

在使用该功能之前,您是否尝试过更新数据库?看起来某个hook\u update\N函数试图添加索引,功能模块调用该函数。

谢谢您的回复。是的,我尝试过更新数据库,但它说找不到数据库更新。