我试图在我的CiviCRM + Wordpress安装中启用CiviCRM(我似乎找不到CiviCRM的独立安装)。但是,当我在Administer > Administration Console > Configuration Checklist > Enable components中查看启用过程时,它告诉我:
Sorry but we are not able to provide this at the moment.
DB Error: no such field谁能告诉我怎么纠正这个问题吗?我是否需要在我的MySQL数据库中手动创建表/字段?如果是这样,我需要创建哪些字段?我使用的是CiviCRM 4.4.6和Wordpress 3.9.2。
编辑
以下是我收到的完整错误消息(调试已启用):
Array
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => handle
)
[code] => -19
[message] => DB Error: no such field
[mode] => 16
[debug_info] => INSERT INTO `civicrm_option_value` ( `option_group_id`, `label`, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `description`, `is_optgroup`, `is_reserved`, `is_active`)
(SELECT @option_group_id_case_type, 'Housing Support', @max_val + 1, 'housing_support', NULL, 0, 0, @max_wt + 1, 'Help homeless individuals obtain temporary and long-term housing', 0, 0, 1
FROM dual WHERE NOT EXISTS (SELECT * FROM `civicrm_option_value` WHERE `name` = 'housing_support')) [nativecode=1054 ** Unknown column 'label' in 'field list']
[type] => DB_Error
[user_info] => INSERT INTO `civicrm_option_value` ( `option_group_id`, `label`, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `description`, `is_optgroup`, `is_reserved`, `is_active`)
(SELECT @option_group_id_case_type, 'Housing Support', @max_val + 1, 'housing_support', NULL, 0, 0, @max_wt + 1, 'Help homeless individuals obtain temporary and long-term housing', 0, 0, 1
FROM dual WHERE NOT EXISTS (SELECT * FROM `civicrm_option_value` WHERE `name` = 'housing_support')) [nativecode=1054 ** Unknown column 'label' in 'field list']
[to_string] => [db_error: message="DB Error: no such field" code=-19 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO `civicrm_option_value` ( `option_group_id`, `label`, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `description`, `is_optgroup`, `is_reserved`, `is_active`)
(SELECT @option_group_id_case_type, 'Housing Support', @max_val + 1, 'housing_support', NULL, 0, 0, @max_wt + 1, 'Help homeless individuals obtain temporary and long-term housing', 0, 0, 1
FROM dual WHERE NOT EXISTS (SELECT * FROM `civicrm_option_value` WHERE `name` = 'housing_support')) [nativecode=1054 ** Unknown column 'label' in 'field list']"]
)我需要手动插入这些信息吗?
发布于 2014-10-01 15:07:53
我不知道如何从civicrm_option_value表中丢失"label“字段。我所能猜到的是,您可能在没有运行数据库升级步骤的情况下尝试过从以前的版本进行升级。
缺少列的直接问题可以通过runnint解决如下:
ALTER TABLE `civicrm_option_value`
ADD `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL
COMMENT 'Option string as displayed to users - e.g. the label in an HTML OPTION tag.';但是,如果这一切都搞砸了,那么您的数据库很有可能会出现其他问题,所以您应该先检查一下。
https://stackoverflow.com/questions/25534234
复制相似问题