[SOLVED][Drupal ImageCache] Imagecache modifying storage path after server migration

| | 1 min read

A Drupal user encountered a scenario where when the Drupal site with an existing ImageCache path was moved to a new server, the ImageCache created new paths with the old image paths still in existence, i.e. adding a 'files' entry to the existing path. This basically meant that the new image path was being added to the existing image path when the presets were called. If you are facing a scenario that is similar to the one the user is facing in your Drupal installation then read on to know the solution.

Here is the fix.

  • The simplest solution would be to chmod the additional files folder to 000
  • However it does no correct or address the issue which casued the files directory to be created in the first place.

The complete solution is as follows.

  • Go to admin/content/types
  • There choose the content type for which the issue occurs
  • When you get there, Select manage fields
  • Next we should configure Image field (field_image_cache)
  • Go to admin/content/node-type/product/fields/field_image_cache>
  • Open the additional Path Settings
  • Delete the entry "files" in the "File path:" field

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.