Image styles not generated on first page load until page refreshed

Created on 13 February 2014, over 10 years ago
Updated 22 September 2023, 9 months ago

I'm having an issue about image derivatives rendered as broken links after flushing image styles. The links are not in fact broken when checked from firebug. Images are displayed only after page refresh and image style are created normally. This issue is not page or node specific and having the issue on only one of installations. I've checked permissions and ownership of files directory, cleared the cache, disabling apc and memcache and nothing helps. I posted a sample image file that gets generated.

πŸ’¬ Support request
Status

Fixed

Version

8.3 ⚰️

Component
Image systemΒ  β†’

Last updated 4 minutes ago

Created by

πŸ‡ΉπŸ‡·Turkey sozkara

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡΅πŸ‡°Pakistan muhammad.tanweer

    I recently had an issue where when I would upload a new image (and before saving the form), the image uploads via ajax (standard with drupal), but the thumbnail showed broken. I checked and the thumbnail was available in files directory. The image would show when i would right lcick on the broken thumbnail and hit "load image". After stumbling on many things I found it was a blank space at the start of one of my custom module files.
    So it is likely the space is at a place where you have added/updated some code. Check your custom modules, themes etc files.

  • πŸ‡¦πŸ‡·Argentina Markisich Gualeguaychu

    Hi, I was 2 weeks with this issue, looking for problem in cache and reverse proxy, until I found this post.
    I had a space in a custom module in front of <?php
    the version of drupal i'm using drupal 9.5.11

    I would like to know if the problem is Drupal, symfony or PHP?

Production build 0.69.0 2024