Image assist produces img tags with src pointing at:
http://localhost/~robert/c/files/images/shot1.thumbnail.png
It works fine when opened from localhost, but it doesn't work when i open it from
http://www.domain.com/~robert/c/files/images/shot1.thumbnail.png
Url keeps pointing at localhost regardless of witch domain I use. Clearly, it should be producing relative, not absolute links.
(btw, my base_url in settings.php is set to www.domain.com)

Comments

sun’s picture

Component: Code » Documentation
Category: bug » support
Status: Active » Fixed

I've added the following snippet to the troubleshooting section in the README.txt now:

* If your site is accessible from multiple domains, embedded image tags and
  links in contents will point to the domain/URL that was accessed upon first
  view of a content.  In most cases, you want to re-generate this cached content
  after staging from a development server to a live server.  For this purpose,
  go to Image Assist's settings page and click on the link (pointing to
  'img_assist/cache/clear') in the help text at the beginning of the page.

  To circumvent this permanently, as with any other module, you need to setup
  separate database tables for Drupal's cache.  Image Assist primarily works in
  the cache_filter table.  See sites/default/settings.php for more information.
Robert_K’s picture

Ahaaa.. thanks sun

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Kobax’s picture

Can someone explain exactly what needs to be changed in settings.php? There are several sections that describe url paths, and none of them mentions the cache specifically.

Kobax’s picture

Status: Closed (fixed) » Active
sun’s picture

Status: Active » Fixed

Sorry, that's out of scope for Image Assist. You may find additional information here:

http://drupal.org/node/22267
http://drupal.org/node/2622

However, clearing the cache once a site has been moved to another domain is recommended.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

tahiticlic’s picture

Is there a way to correct it? I've the same problem and it is very important to me to use image_assist (for my clients I need something simple).
Image_assist produce "http://localhost/mysite" prefixed links... which of course doesn't work on my distant server when I migrate it.