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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

citlacom’s picture

SocialNicheGuru’s picture

should property[timestamp] be added back in at some point? should there be a check for it being null before it is added?

andyg5000’s picture

I've seen the same issue though not consistently. Casting the $properties['timestamp'] to an array prevents the error.

    $properties['timestamp'] = array(
      'type' => 'date',
      'setter callback' => 'entity_property_verbatim_set',
      'description' => t('The time the message has been logged.'),
    ) + (array) $properties['timestamp'];
bradjones1’s picture

Status: Active » Needs review
FileSize
560 bytes

Here is #3 as a patch.

DamienMcKenna’s picture

Status: Needs review » Reviewed & tested by the community

Short & sweet.

areynolds’s picture

Version: 7.x-1.9 » 7.x-1.x-dev

Patch applies cleanly to dev and seems to solve the issue, should be good to move into dev!

maxplus’s picture

Thanks,
patch solved this issue after upgrading from 7.x-1.10 to 7.x-1.12

bluegeek9’s picture

Status: Reviewed & tested by the community » Closed (outdated)