On line 391 there is a += operand
$settings += content_profile_settings_info();
The same operand is used in content_profile_registration.module on line 16 and 25.
I changed this operands to .= and the module "works".
But now I'm not able to change the default display to anythink but the default ('Display the content teaser').
See also:http://drupal.org/node/340937 for this issue
Comments
Comment #1
mdroste commentedNo one else?
I cannot believe that I'm the only one with this error. Come on guys I've got the same source code as you. Or do you have a PHP Version which knows the += operand ;-)
Comment #2
fagoAll supported php versions know this operand.. ;) Try disabling + uninstalling the module - after re-enabling it should work. If not please reopen.
Comment #3
mdroste commentedYou are joking? Please ...
I've got PHP errors (unsupported operand)
Comment #4
fagoI'm not joking.
Try disabling + uninstalling the module - after re-enabling it should work. If not please reopen.
Comment #5
mdroste commentedok. I will try this tomorrow. But please, could you explain why it would work with += ?
Comment #6
fagotry
print_r(array('one' => 'foo',) + array('two' => 'bar'));
Comment #7
mdroste commentedOK, now it works and - blame on me - PHP knows the plus equals operator. But why I've got the "unsupported operand" error before?
Comment #8
fagoThis was probably the result of an elder bug.