From 1d50349b0f05d70a33cbb542d160be1adb868f62 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Mon, 4 Jan 2021 16:12:30 -0500 Subject: [PATCH] Mailing default domain error: force a backend URL for WP --- CRM/Mailing/BAO/Mailing.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index bd71534bae..b2484335d6 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -2749,8 +2749,9 @@ WHERE civicrm_mailing_job.id = %1 $config = CRM_Core_Config::singleton(); if ($mode == NULL && CRM_Core_BAO_MailSettings::defaultDomain() == "EXAMPLE.ORG") { + // Using forceBackend=TRUE because WordPress sometimes fails to detect cron throw new CRM_Core_Exception(ts('The default mailbox has not been configured. You will find more info in the online system administrator guide', [ - 1 => CRM_Utils_System::url('civicrm/admin/mailSettings', 'reset=1'), + 1 => CRM_Utils_System::url('civicrm/admin/mailSettings', 'reset=1', FALSE, NULL, TRUE, FALSE, TRUE), 2 => "https://docs.civicrm.org/sysadmin/en/latest/setup/civimail/", ])); } -- 2.25.1