crm icon indicating copy to clipboard operation
crm copied to clipboard

ChangeSetToAuditFieldsConverter.php line 127: Notice Array to string conversion

Open itsnotyoutoday opened this issue 3 years ago • 1 comments

I have the latest orocrm installed, and the message consumer is crashing when an email comes in...

[desertvalley@vegas crm]$ ./bin/console oro:message-queue:consume --memory-limit=700
2021-04-27 06:08:52 consumer.ERROR: Consuming interrupted by exception. "Notice: Array to string conversion" ["exception" => ErrorException { …}] ["processor" => "Oro\Bundle\DataAuditBundle\Async\AuditChangedEntitiesProcessor","message_id" => "oro.6087a843a697c0.35762047","message_body" =>...  bunchas of crapp about whats in the data structure]

In ChangeSetToAuditFieldsConverter.php line 127:
                                      
  Notice: Array to string conversion  
                                      

itsnotyoutoday avatar Apr 27 '21 06:04 itsnotyoutoday

Update.. I put the following debug code in.

            var_dump($new);
            var_dump($old);
            exit(1);
            $fields[$fieldName] = $this->createAuditFieldEntity(
                $auditFieldClass,
                $fieldName,
                AuditFieldTypeRegistry::TYPE_TEXT,
                (string)$new,
                (string)$old
            );

and this is the results.

@vegas crm]./bin/console oro:message-queue:consume --memory-limit=700
array(2) {
  ["entity_class"]=>
  string(28) "Extend\Entity\EV_Lead_Status"
  ["entity_id"]=>
  string(3) "new"
}
NULL

I tried changing the (string) $new to a serialize(), to a json_encode, while the error goes away with those, neither make it so the message reading code works.... Though honestly I have no clue what the other end is expecting... Any help would be greatly appreciated as I'd really like to get the email portion of the CRM working.

itsnotyoutoday avatar Apr 28 '21 05:04 itsnotyoutoday