Skip to content

'volunteer_project_relationship' is not a valid option for field option_group_id" #628

@vasyugan

Description

@vasyugan

This is what I get when I try to install the extension in civicrm 6.2.2:

2025-10-04 08:17:46-0100  [error] 
$Fatal Error Details = array:3 [
  "message" => "One of the parameters  (value: NULL) is not of the type Integer"
  "code" => null
  "exception" => CRM_Core_Exception {#23197
    #message: "One of the parameters  (value: NULL) is not of the type Integer"
    #code: 0
    #file: "/var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Utils/Type.php"
    #line: 474
    #cause: null
    -_trace: null
    -errorData: array:1 [
      "error_code" => 0
    ]
    trace: {
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Utils/Type.php:474 {
        CRM_Utils_Type::validate($data, $type, $abort = true, $name = '…18')
        ›   $data = htmlentities($data ?? 'NULL');
        ›   throw new CRM_Core_Exception("$name (value: $data) is not of the type $type");
        › }
      }
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Core/DAO.php:1959 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Core/DAO.php:1849 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Profile/Form/Edit.php:110 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php:756 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Display.php:76 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php:203 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php:103 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php:356 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Utils/Wrapper.php:98 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Profile/Page/Router.php:95 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:280 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:73 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:38 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm.php:1316 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/includes/civicrm.shortcodes.php:484 { …}
      /var/www/html/*****.eu/wp-includes/shortcodes.php:434 { …}
      do_shortcode_tag() {}
      /var/www/html/*****.eu/wp-includes/shortcodes.php:273 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/includes/civicrm.shortcodes.php:250 { …}
      /var/www/html/*****.eu/wp-includes/class-wp-hook.php:324 { …}
      /var/www/html/*****.eu/wp-includes/class-wp-hook.php:348 { …}
    #code: 2001
    #file: "/var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/api/api.php"
    #line: 149
    #cause: null
    -_trace: null
    -errorData: array:6 [
      "error_field" => "option_group_id"
      "error_code" => 2001
      "entity" => "OptionValue"
      "action" => "get"
      "is_error" => 1
      "error_message" => "'volunteer_project_relationship' is not a valid option for field option_group_id"
    ]
    trace: {
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/api/api.php:149 {
        civicrm_api3(string $entity, string $action, array $params = [])
        › if (is_array($result) && !empty($result['is_error'])) {
        ›   throw new CRM_Core_Exception($result['error_message'], $result['error_code'] ?? 'undefined', $result);
        › }
      }
      /var/www/html/*****.eu/wp-content/uploads/civicrm/ext/org.civicrm.volunteer/CRM/Volunteer/Form/Settings.php:417 { …}
      /var/www/html/*****.eu/wp-content/uploads/civicrm/ext/org.civicrm.volunteer/CRM/Volunteer/Form/Settings.php:169 { …}
      /var/www/html/*****.eu/wp-content/uploads/civicrm/ext/org.civicrm.volunteer/CRM/Volunteer/Form/Settings.php:109 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php:777 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Display.php:76 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php:203 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php:103 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php:356 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Utils/Wrapper.php:98 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:243 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:73 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:38 { …}
      /var/www/html/*****.eu/wp-content/plugins/civicrm/civicrm.php:1316 { …}
      /var/www/html/*****.eu/wp-includes/class-wp-hook.php:324 { …}
      /var/www/html/*****.eu/wp-includes/class-wp-hook.php:348 { …}
      /var/www/html/*****.eu/wp-includes/plugin.php:517 { …}
      /var/www/html/*****.eu/wp-admin/admin.php:260 { …}
    }
  }
]


Not sure if it is safe to just add the missing field manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions