Body: <p>civicrm = 5.42.1
  wordpress = 5.8.1
  php = 7.4.24</p>
  <p>With a contact selected, I can start an action to 'send an email', the pop-up appears and I can open the drop down list and select a template.</p>
  <p>When I go via Mailings - New Mailing, I go to a new webpage e.g. /wp-admin/admin.php?page=CiviCRM&amp;q=civicrm%2Fa%2F#/mailing/347 where I can open the drop down list but I get 'Loading failed' with a nice pink background highlight, but no indication why loading failed.</p>
  <p>I can save a template from the bulk email editor, and it shows up in my list of message templates.</p>
  <p>I'm tried disabling CKEditor, but that was't the issue. All the directories are default from installation. I've tried resetting caches and updating paths, to no avail.</p>
  <p>It's mainly an annoyance, since I can cut'n'paste the raw html from the message templates into a bulk email, but something isn't right. I've tried to use the smartydebug but nothing obvious is showing up, there are two empty arrays but don't know if they're relevant:</p>
  <p>assigned config file variables (outer template scope)<br/>
  {#files#}   Array (0)<br/>
  {#vars#}    Array (0)</p>
  <p>Do I just bite the bullet and accept the cut'n'paste method, or is there a setting / php anomaly that I can correct?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-25T12:55:59.590Z
Comments.Text: You'll need to debug the ajax call, e.g. using the browser dev console on the network tab. When you then click the dropdown, there should be a place you can see the ajax response and it might have more info. Otherwise if it's returning error 500 look in the web server error log (e.g. apache error log) and you should see a more detailed error message there.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-26T08:14:12.117Z
Comments.Text: Thanks - just tried that and getting a 403 error Access Forbidden? Which is weird as I haven't changed my account or login on WP / Civi
Comments.UserDisplayName: John Bradford
Tags: <message-templates>
Title: inconsistent message template loading
ThreadText: # inconsistent message template loading
  
  (Asked by: username_0 on 2021-10-24)
  
  civicrm = 5.42.1
  wordpress = 5.8.1
  php = 7.4.24
  
  With a contact selected, I can start an action to 'send an email', the pop-up appears and I can open the drop down list and select a template.
  
  When I go via Mailings - New Mailing, I go to a new webpage e.g. /wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fa%2F#/mailing/347 where I can open the drop down list but I get 'Loading failed' with a nice pink background highlight, but no indication why loading failed.
  
  I can save a template from the bulk email editor, and it shows up in my list of message templates.
  
  I'm tried disabling CKEditor, but that was't the issue. All the directories are default from installation. I've tried resetting caches and updating paths, to no avail.
  
  It's mainly an annoyance, since I can cut'n'paste the raw html from the message templates into a bulk email, but something isn't right. I've tried to use the smartydebug but nothing obvious is showing up, there are two empty arrays but don't know if they're relevant:
  
  assigned config file variables (outer template scope)  
  {#files#} Array (0)  
  {#vars#} Array (0)
  
  Do I just bite the bullet and accept the cut'n'paste method, or is there a setting / php anomaly that I can correct?
  
  **Tags:** message-templates
  
  > **Comments:**
  > **username_1**: You'll need to debug the ajax call, e.g. using the browser dev console on the network tab. When you then click the dropdown, there should be a place you can see the ajax response and it might have more info. Otherwise if it's returning error 500 look in the web server error log (e.g. apache error log) and you should see a more detailed error message there.  
  > **username_0**: Thanks - just tried that and getting a 403 error Access Forbidden? Which is weird as I haven't changed my account or login on WP / Civi  
  
  ---
  
  ## 0 answers
  
  