Answers.Body: <p>It turns out this is actually to do with the base page url - it should <strong>not</strong> have a trailing slash. @massetto knows this I think, because he created the <a href="https://github.com/veda-consulting-company/uk.co.vedaconsulting.mosaico/issues/398" rel="nofollow noreferrer">GitHub issue where this is explained</a> so this answer is really for anyone else looking at this later.</p>
  <p>From Matt Wire of Veda:</p>
  <blockquote>
  <p>Check your CiviCRM paths/resource URLs and make sure that you are not overriding them if you don't need to.</p>
  <p>In CiviCRM make sure that &quot;Wordpress Base Page&quot; is setup as &quot;civicrm&quot; with no &quot;/&quot; - see civicrm/civicrm-core#18332 so this will be fixed in 5.29.</p>
  <p>In Wordpress make sure you have a CiviCRM base page (should be at <a href="https://yoursite.com/civicrm" rel="nofollow noreferrer">https://yoursite.com/civicrm</a>).
  Important: Go to Settings -&gt; Permalinks and click &quot;Save Changes&quot;.</p>
  <p>Now Mosaico images should work and navigating to <a href="https://yoursite.com/civicrm/mosaico/img" rel="nofollow noreferrer">https://yoursite.com/civicrm/mosaico/img</a> should give a 200 OK and a blank page.</p>
  </blockquote>
  <p>v5.29 is available now, so sounds like upgrading to that should resolve the problem.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-04T08:04:36.153Z
Answers.LastActivityDate: 2020-09-04T08:04:36.153Z
Answers.UserDisplayName: Hugh
Answers.Body: <p>This is likely to be a permissions error in your <code>wp-content/uploads/civicrm/ext</code> directory. You can probably resolve this by assigning ownership to <code>www-data</code>.</p>
  <p>e.g. if your site is installed at <code>/var/www/html</code> then you can fix this with:</p>
  <pre><code>chown -R www-data:www-data /var/www/html/wp-content/uploads/civicrm
  </code></pre>
  <p>I've often thought it would be easier if Mosaico stored images in the WordPress image library but presumably this isn't possible with a multi-CMS extension.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-15T14:38:57.303Z
Answers.Text: It doesn't depend on permission.  
  Unfortunately I had not read this [Important Notice](https://civicrm.org/blog/kcristiano/civicrm-526-and-wordpress-important-notice) and the installed version of Wordpress was 5.4.  
  Now I have updated wordpress to 5.5 and the image has this _src_: `https://mydomain.com/mosaico/img/?method=placeholder&params=534,200`.  
  I think normally it should be `https://mydomain.com/civicrm/mosaico/img/?method=placeholder&params=534,200`,but both these url give me "401 not found" and `CIVICRM_CLEANURL` is enabled.
Answers.UserDisplayName: masetto
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-24T00:36:56.333Z
Answers.Text: Huh, you're totally right. Now I have the same problem...
Answers.UserDisplayName: Hugh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-12T10:27:01.650Z
Answers.LastActivityDate: 2020-08-12T10:27:01.650Z
Answers.UserDisplayName: Hugh
Body: <p>in Mosaico templates the images the images can't be seen.
  I don't understand why they are uploaded through this link:</p>
  <pre><code>GET https://mydomain.com/mosaico/img/?method=placeholder&amp;params=534,200
  
  [HTTP/1.1 401 not found]
  </code></pre>
  <p>I think normally it should be <code>https://mydomain.com/civicrm/mosaico/img/?method=placeholder&amp;params=534,200</code>, but both these url give me &quot;401 not found&quot; and CIVICRM_CLEANURL is enabled.</p>
  <p>This is my configuration:</p>
  <p>CiviCRM Version: 5.28.0 on Wordpress<br />
  Mosaico 2.4.1592820024<br />
  Wordpress: 5.5</p>
  <p>Thank you for your answers.</p>
  
Tags: <mosaico>
Title: Getting templates images on Mosaico
ThreadText: # Getting templates images on Mosaico
  
  (Asked by: username_0 on 2020-08-11)
  
  in Mosaico templates the images the images can't be seen.
  I don't understand why they are uploaded through this link:
  
  ```
  GET https://mydomain.com/mosaico/img/?method=placeholder&params=534,200
  
  [HTTP/1.1 401 not found]
  
  ```
  
  I think normally it should be `https://mydomain.com/civicrm/mosaico/img/?method=placeholder&params=534,200`, but both these url give me "401 not found" and CIVICRM\_CLEANURL is enabled.
  
  This is my configuration:
  
  CiviCRM Version: 5.28.0 on Wordpress  
  Mosaico 2.4.1592820024  
  Wordpress: 5.5
  
  Thank you for your answers.
  
  **Tags:** mosaico
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2020-09-04. Score: 1 | Accepted answer
  
  It turns out this is actually to do with the base page url - it should **not** have a trailing slash. @massetto knows this I think, because he created the [GitHub issue where this is explained](https://github.com/veda-consulting-company/uk.co.vedaconsulting.mosaico/issues/398) so this answer is really for anyone else looking at this later.
  
  From Matt Wire of Veda:
  
  > Check your CiviCRM paths/resource URLs and make sure that you are not overriding them if you don't need to.
  >
  > In CiviCRM make sure that "Wordpress Base Page" is setup as "civicrm" with no "/" - see civicrm/civicrm-core#18332 so this will be fixed in 5.29.
  >
  > In Wordpress make sure you have a CiviCRM base page (should be at <https://yoursite.com/civicrm>).
  > Important: Go to Settings -> Permalinks and click "Save Changes".
  >
  > Now Mosaico images should work and navigating to <https://yoursite.com/civicrm/mosaico/img> should give a 200 OK and a blank page.
  
  v5.29 is available now, so sounds like upgrading to that should resolve the problem.
  
  
  ---
  
  ### Answer by username_1 on 2020-08-12. Score: 0
  
  This is likely to be a permissions error in your `wp-content/uploads/civicrm/ext` directory. You can probably resolve this by assigning ownership to `www-data`.
  
  e.g. if your site is installed at `/var/www/html` then you can fix this with:
  
  ```
  chown -R www-data:www-data /var/www/html/wp-content/uploads/civicrm
  
  ```
  
  I've often thought it would be easier if Mosaico stored images in the WordPress image library but presumably this isn't possible with a multi-CMS extension.
  
  > **Comments:**
  > **username_0**: It doesn't depend on permission.   Unfortunately I had not read this [Important Notice](https://civicrm.org/blog/kcristiano/civicrm-526-and-wordpress-important-notice) and the installed version of Wordpress was 5.4.   Now I have updated wordpress to 5.5 and the image has this _src_: `https://mydomain.com/mosaico/img/?method=placeholder&params=534,200`.   I think normally it should be `https://mydomain.com/civicrm/mosaico/img/?method=placeholder&params=534,200`,but both these url give me "401 not found" and `CIVICRM_CLEANURL` is enabled.  
  > **username_1**: Huh, you're totally right. Now I have the same problem...  
  
  ---
  
  