Answers.Body: <p>If you are on Drupal10 would suggest to use the CKeditor5 extension as there is a bug with KCFinder in d10, if you still want to use KCFinder will need to fix the files manually.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-28T03:36:36.183Z
Answers.Text: switching the editor fixed this specific issue.  It has not however, fixed the  biggest issue, all my other images throughout CiviCRM are not lading.  I think the issue is what is coming in for [civicrm.files].  I now have files in the editor but nowhere else.  Any help is greatly appreciated.  Thanks!
Answers.UserDisplayName: Steve
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-06-02T21:15:46.033Z
Answers.Text: Switching the editor works but the images do not show after being uploaded.  However if I go to version 4 again I see that https://crm.chasethemusic.org/sites/default/files/civicrm/persist/contribute/images/steve_test.png is there and is visable.  Any thoughts on using CKedtior 5 for this.  Thanks!
Answers.UserDisplayName: Steve
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-05-20T08:57:23.943Z
Answers.LastActivityDate: 2024-05-20T08:57:23.943Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I recently migrated a CiviCRM install from WordPress to Drupal. I am having two problems with images that I am hoping someone can help me with.</p>
  <p>First, since migrating over nom images display.  This includes contact images and images in emails.  I have checked that all the paths match another CiviCRM install I volunteer with and that all the paths are correct in the civicrm.settings.php.</p>
  <p><a href="https://i.sstatic.net/9QNq8OIK.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9QNq8OIK.png" alt="Image of missing file in contact/edit interface" /></a></p>
  <p>When I inspect the missing image with Dev Tools the the file URL does not appear to be correct.  I see: <code>&lt;img src=&quot;/civicrm/file?reset=1&amp;amp;filename=Screenshot_2016_06_21_15_36_30_58504175373eec0750cd5f02234c3c4f.png&amp;amp;mime-type=image/png&quot; width=&quot;100&quot; height=&quot;100/&quot;&gt;</code></p>
  <p>The second thing is that I tried to upload an image and I got a page not found when trying to select an image.</p>
  <p><a href="https://i.sstatic.net/A2NaT7n8.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/A2NaT7n8.png" alt="Page Not Found When Adding Image" /></a></p>
  <p>The page being loaded is <a href="https://crm.chasethemusic.org/libraries/civicrm/packages/kcfinder/browse.php?cms=civicrm&amp;type=images&amp;CKEditor=crmUiId_1&amp;CKEditorFuncNum=0&amp;langCode=en" rel="nofollow noreferrer">https://crm.chasethemusic.org/libraries/civicrm/packages/kcfinder/browse.php?cms=civicrm&amp;type=images&amp;CKEditor=crmUiId_1&amp;CKEditorFuncNum=0&amp;langCode=en</a> which is not a valid file in my install.</p>
  <p>Any help trying to figure these out is greatly appreciated.  I am volunteer with limited time on this project but the org needs to be able to send out mail as soon as possible and we cannot go back to Wordpress (long story).</p>
  <p>Thanks,</p>
  <p>Steve</p>
  
Tags: <drupal><images><kcfinder><paths>
Title: Images Do Not Work After Transfer
ThreadText: # Images Do Not Work After Transfer
  
  (Asked by: username_0 on 2024-05-18)
  
  I recently migrated a CiviCRM install from WordPress to Drupal. I am having two problems with images that I am hoping someone can help me with.
  
  First, since migrating over nom images display. This includes contact images and images in emails. I have checked that all the paths match another CiviCRM install I volunteer with and that all the paths are correct in the civicrm.settings.php.
  
  [![Image of missing file in contact/edit interface](https://i.sstatic.net/9QNq8OIK.png)](https://i.sstatic.net/9QNq8OIK.png)
  
  When I inspect the missing image with Dev Tools the the file URL does not appear to be correct. I see: `![](/civicrm/file?reset=1&filename=Screenshot_2016_06_21_15_36_30_58504175373eec0750cd5f02234c3c4f.png&mime-type=image/png)`
  
  The second thing is that I tried to upload an image and I got a page not found when trying to select an image.
  
  [![Page Not Found When Adding Image](https://i.sstatic.net/A2NaT7n8.png)](https://i.sstatic.net/A2NaT7n8.png)
  
  The page being loaded is <https://crm.chasethemusic.org/libraries/civicrm/packages/kcfinder/browse.php?cms=civicrm&type=images&CKEditor=crmUiId_1&CKEditorFuncNum=0&langCode=en> which is not a valid file in my install.
  
  Any help trying to figure these out is greatly appreciated. I am volunteer with limited time on this project but the org needs to be able to send out mail as soon as possible and we cannot go back to Wordpress (long story).
  
  Thanks,
  
  username_0
  
  **Tags:** drupal, images, kcfinder, paths
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-05-20. Score: 0
  
  If you are on Drupal10 would suggest to use the CKeditor5 extension as there is a bug with KCFinder in d10, if you still want to use KCFinder will need to fix the files manually.
  
  > **Comments:**
  > **username_0**: switching the editor fixed this specific issue.  It has not however, fixed the  biggest issue, all my other images throughout CiviCRM are not lading.  I think the issue is what is coming in for [civicrm.files].  I now have files in the editor but nowhere else.  Any help is greatly appreciated.  Thanks!  
  > **username_0**: Switching the editor works but the images do not show after being uploaded.  However if I go to version 4 again I see that https://crm.chasethemusic.org/sites/default/files/civicrm/persist/contribute/images/steve_test.png is there and is visable.  Any thoughts on using CKedtior 5 for this.  Thanks!  
  
  ---
  
  