Fatal error: Unsupported operand types in sites/all/modules/contributions/content_profile/content_profile.module on line 414
function content_profile_get_settings($type, $return = 'all') {
  $settings = variable_get('content_profile_'. $type, array());
  $settings += content_profile_settings_info();
...

You can't add integer to the empty array.
I don't know what it should do, but if it's array, try: $settings[] =

Comments

kenorb’s picture

In my case first $settings is set to 0
second one is an array:

array
  'weight' => int 0
  'user_display' => string 'full' (length=4)
  'edit_link' => int 0
  'edit_tab' => string 'sub' (length=3)
  'add_link' => int 1
  'registration_url' => null
  'registration_use' => boolean false
  'registration_hide' => 
    array
      empty
kenorb’s picture

When I backward my version from 1.1.2.32 to 1.1.2.17 it working fine.

hikey’s picture

Thanks very much! It seems your solution works for me EDIT>> At leaast on first sight...
I edited the code like this:

function content_profile_get_settings($type, $return = 'all') {
  $settings[] = variable_get('content_profile_'. $type, array());
  $settings += content_profile_settings_info();
  if ($return == 'all') {
    return $settings;
  }
  return $settings[$return];
}

-> error gone. BUT: settings can't be saved.

Any idea?
And of course: Thanks anyway for your time!
hikey

fago’s picture

Status: Active » Fixed

hm, this errors are the result of scrambled settings, which are probably the result of an old bug.
I've just added an update that fixes up those scrambled settings. run update.php after updating.

committed to 6.x.dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.