Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChangeSetToAuditFieldsConverter.php line 127: Notice Array to string conversion #363

Open
itsnotyoutoday opened this issue Apr 27, 2021 · 1 comment

Comments

@itsnotyoutoday
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant