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

PHP Warning: Invalid argument supplied for foreach() in civicrm/CRM/Core/Action.php on line 379 #875

Open
bastienho opened this issue Sep 30, 2022 · 1 comment

Comments

@bastienho
Copy link

When the activity tab of a contact is open, PHP warns for each activity:

PHP Warning:  Invalid argument supplied for foreach() in civicrm/CRM/Core/Action.php on line 379

It corresponds to the CRM_Core_Action::replace method.

@bastienho
Copy link
Author

After investigating, I found that it occurs when it is called by _civicrm_api3_activity_GetActionLinks_processLinks()

It seems that the $values variables passed to replace() is not set.
https://github.com/compucorp/uk.co.compucorp.civicase/blob/master/api/v3/Activity/Getactionlinks.php#L111

but I can't figure which data should be passed here

bastienho added a commit to agencenous/uk.co.compucorp.civicase that referenced this issue Sep 30, 2022
Correctly populate URL, also remove PHP Warnings compucorp#875
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