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

Array to string conversion error #194

Open
shaneonabike opened this issue Dec 17, 2020 · 0 comments
Open

Array to string conversion error #194

shaneonabike opened this issue Dec 17, 2020 · 0 comments

Comments

@shaneonabike
Copy link

Describe the bug
When saving Caldera forms there is quite a few notices relating to the following:

PHP Notice: Array to string conversion in /wp-content/plugins/cf-civicrm/includes/class-civicrm-caldera-forms-forms.php on line 317

To Reproduce
Steps to reproduce the behavior:

  1. Setup a form
  2. Add a CiviCRM Contact 1, Contact 2, Relationship, and two Address processors
  3. Save the form
  4. See error

Expected behavior
I looked into it a bit more and it's a result of your call of A clear and concise description of what you expected to happen.

array_diff_assoc( $form['processors'], $contacts )

Apparently, when you have multidimensional arrays and perform a diff this issue will happen as a result, because it is not capable of performing the operation.

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

No branches or pull requests

1 participant