Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
After clear cache using drush cc all I get the error:
Error: Unsupported operand types in sites/all/modules/contrib/message/message.info.inc, line 42
Looks that the problem is line:
$properties['timestamp'] = array(
'type' => 'date',
'setter callback' => 'entity_property_verbatim_set',
'description' => t('The time the message has been logged.'),
) + $properties['timestamp'];
$properties['timestamp'] is empty when is merged so this causes the error.
Comment | File | Size | Author |
---|---|---|---|
#4 | message-bad_operand-3.patch | 560 bytes | bradjones1 |
#1 | 2166155-unsupported-operand-types-error-messages-info-inc.patch | 677 bytes | citlacom |
Comments
Comment #1
citlacom CreditAttribution: citlacom commentedComment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedshould property[timestamp] be added back in at some point? should there be a check for it being null before it is added?
Comment #3
andyg5000I've seen the same issue though not consistently. Casting the $properties['timestamp'] to an array prevents the error.
Comment #4
bradjones1Here is #3 as a patch.
Comment #5
DamienMcKennaShort & sweet.
Comment #7
areynolds CreditAttribution: areynolds at Kalamuna commentedPatch applies cleanly to dev and seems to solve the issue, should be good to move into dev!
Comment #8
maxplus CreditAttribution: maxplus commentedThanks,
patch solved this issue after upgrading from 7.x-1.10 to 7.x-1.12
Comment #9
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commented