I know this has been asked before, but in that case the problem was fixed without identifying the problem or the solution.

I'm trying to send mails using CiviMail, but when I try to select mailing group in the include group or exclude groups, an error "Loading failed" appears. The browser console shows a 500 error, which makes me think the problem may be with the server, not the CiviCRM installation, but I'm not sure what to try. The problem started happening a couple of months ago. I've tried different php versions, different browsers, restarting the server, rebuilding the cache. I can't see anything relevant in the system log or the CiviCRM log. Any suggestions what else I could try to find the problem? Thank you.

CiviCRM version 5.65.2 (but i think it began several versions ago). CMS is WP. Php 8.1 or 7.4.

  • Is the problem consistent or intermittent? Can you verify that the civi_mail extension (not just the component but also the extension) is enabled? Also verify that search_kit is enabled.
    – Coleman
    Sep 25, 2023 at 11:47
  • Thanks. It's consistent. Yes, civi_mail extension and search_kit are both enabled. I don't know if it's relevant, but search_kit and flexmailer are both marked as Required, so can't be disabled.
    – Jern
    Sep 25, 2023 at 11:54
  • Just noticed that there's a 500 error showing in the console when I open the mailing: POST domain.co.uk/wp-admin/admin.php?page=CiviCRM&q=civicrm/ajax/…
    – Jern
    Sep 25, 2023 at 15:46
  • And an "Uncaught error (in promise) from /wp-admin/admin.php?…a/#/mailing/630:1
    – Jern
    Sep 25, 2023 at 15:46
  • We had something similar - the autocomplete for the group search was trying to fetch the data with non-https hence the failure. Maybe worth looking into? Sep 26, 2023 at 7:52


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.