Closed (fixed)
Project:
Content Profile
Version:
6.x-1.x-dev
Component:
Base module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2009 at 11:00 UTC
Updated:
23 Jan 2009 at 16:00 UTC
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
Comment #1
kenorb commentedIn my case first $settings is set to 0
second one is an array:
Comment #2
kenorb commentedWhen I backward my version from 1.1.2.32 to 1.1.2.17 it working fine.
Comment #3
hikey commentedThanks very much! It seems your solution works for me EDIT>> At leaast on first sight...
I edited the code like this:
-> error gone. BUT: settings can't be saved.
Any idea?
And of course: Thanks anyway for your time!
hikey
Comment #4
fagohm, 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.