-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Ensure api/v3/utils.php required before civicrm_api3_create_error #28068
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
@civicrm-builder add to whitelist |
Thanks @chriscant this fix looks good! |
@chriscant I'm pretty sure you tagged this as a regression - in which case we should try to merge to 5.68 - are you able to switch branch or put up a separate PR against 5.68? |
It was jaapjansma that tagged it as a regression. I'll try to do a separate PR against 5.68. |
Hopefully done correctly here: #28079 |
Yes, and that will get forward-merged to |
Overview
Ensure api/v3/utils.php required before civicrm_api3_create_error called in scheduled job
Before
An error in a scheduled job attempts to call civicrm_api3_create_error() within the createError() method in Civi\API\Kernel.
However in this instance, this call is not available and so an exception is thrown.
See: https://lab.civicrm.org/dev/core/-/issues/4751
After
The change adds in a single line to bring in the definition of civicrm_api3_create_error() so the call can proceed as expected.
require_once "api/v3/utils.php";
Technical Details
Comments