Mailing default domain error: force a backend URL for WP
authorMathieu Lutfy <mathieu@symbiotic.coop>
Mon, 4 Jan 2021 21:12:30 +0000 (16:12 -0500)
committerMathieu Lutfy <mathieu@bidon.ca>
Mon, 4 Jan 2021 21:12:30 +0000 (16:12 -0500)
CRM/Mailing/BAO/Mailing.php

index bd71534baed11cb01fafec88cc5b8f09195fc69c..b2484335d681dacd8f1f6a0e1ed3051040905b61 100644 (file)
@@ -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 <a href="%1">default mailbox</a> has not been configured. You will find <a href="%2">more info in the online system administrator guide</a>', [
-        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/",
       ]));
     }