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:
- Convert URLs into links
- Convert Media tags to markup
- Correct faulty and chopped off HTML
- 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
Comment #1
thebigcat commentedHey 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.
Comment #2
joseph.olstadif this is a problem for you, you can set your base_url in the settings.php and the urls will contain that base_url
Comment #3
chris matthews commentedClosing 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