From 2c38ffa98cd6bae76af292a9e83f4026aaa963bf Mon Sep 17 00:00:00 2001 From: Md Rashedul Islam Date: Wed, 2 Mar 2022 12:03:33 +0600 Subject: [PATCH] Call to undefined function civicrm_api3_create_error() in civicrm/civicrm/CRM/Core/Page/AJAX/Attachment.php:65 --- CRM/Core/Page/AJAX/Attachment.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Core/Page/AJAX/Attachment.php b/CRM/Core/Page/AJAX/Attachment.php index d178a0d877..151b726de8 100644 --- a/CRM/Core/Page/AJAX/Attachment.php +++ b/CRM/Core/Page/AJAX/Attachment.php @@ -62,6 +62,7 @@ class CRM_Core_Page_AJAX_Attachment { ); } elseif ($file['error']) { + require_once 'api/v3/utils.php'; $results[$key] = civicrm_api3_create_error("Upload failed (code=" . $file['error'] . ")"); } else { -- 2.25.1