Intermittently, the images I've inserted into the body of the pages on my website disappear, but reappear after I flush the caches.

It seems clear where the problem is coming from, as the URLs in the HTML to the images are different before and after flush:

Before:

<img width="480" height="178" src="/sites/all/modules/civicrm/bin/sites/default/files/styles/large/public/Picture%20Frame%202_0.jpg" typeof="foaf:Image" class="media-image" alt="">

After:

<img width="480" height="178" src="/sites/default/files/styles/large/public/Picture%20Frame%202_0.jpg" typeof="foaf:Image" class="media-image" alt="">

I've double-checked the filters on my text formats, but nothing stands out as likely to be causing this sort of problem. The order of filters is as follows:

  1. Convert URLs into links
  2. Convert Media tags to markup
  3. Correct faulty and chopped off HTML
  4. Correct URLs with Pathologic

What seems particularly odd is that it's intermittent, and (temporarily) fixed by a cache flush.

Perhaps the problem resides somewhere other than in the Media module, but maybe someone has had/solved this problem already? (Couldn't find anything in this issue queue or in CiviCRMs...)

Comments

thebigcat’s picture

Issue summary: View changes

Hey man! Did you ever figure out a fix for this?

I've come across the same random problem as well... wrong URL for image until cache clear, then everything is back to normal.

Affects only uploaded [fielded] images that get processed by Image Styles.

joseph.olstad’s picture

Category: Bug report » Support request
Status: Active » Needs review

if this is a problem for you, you can set your base_url in the settings.php and the urls will contain that base_url

chris matthews’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Needs review » Closed (outdated)

Closing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team