首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CiviCRM on Wordpress - CiviCase将不启用

CiviCRM on Wordpress - CiviCase将不启用
EN

Stack Overflow用户
提问于 2014-08-27 18:11:13
回答 1查看 360关注 0票数 1

我试图在我的CiviCRM + Wordpress安装中启用CiviCRM(我似乎找不到CiviCRM的独立安装)。但是,当我在Administer > Administration Console > Configuration Checklist > Enable components中查看启用过程时,它告诉我:

代码语言:javascript
复制
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。

编辑

以下是我收到的完整错误消息(调试已启用):

代码语言:javascript
复制
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']"]
)

我需要手动插入这些信息吗?

EN

回答 1

Stack Overflow用户

发布于 2014-10-01 15:07:53

我不知道如何从civicrm_option_value表中丢失"label“字段。我所能猜到的是,您可能在没有运行数据库升级步骤的情况下尝试过从以前的版本进行升级。

缺少列的直接问题可以通过runnint解决如下:

代码语言:javascript
复制
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.';

但是,如果这一切都搞砸了,那么您的数据库很有可能会出现其他问题,所以您应该先检查一下。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25534234

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档