RowboTony β created an issue.
RowboTony β created an issue.
Update with my own experience. I'm using DDEV with Acquia Migrate Accelerate to move a D7 site to D9. All of my images were broken and wouldn't display. The original images were there, media uploads worked fine, file system permissions were correct, PHP, GD, etc were good.
The DDEV seconddocroot.conf.example
has the following line, when removed, then ddev restart
, it worked - my images were back, and now the styles were being properly generated!
If you are running Nginx, and you have image generation problems, this is still relevant.
# Expire rules for static content
# Media: images, icons, video, audio, HTC
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
expires 1M;
access_log off;
add_header Cache-Control "public";
}
This still seems to be a problem. I tried to change my photo yesterday, and it didn't change when I uploaded the new photo. I deleted the photo completely and left it as the default Drupal no-photo icon, andleft it for a day. I came back today, and uploaded a NEW photo, and still my OLD photo popped back in the profile, I can't upload a new photo. So, it still seems this is an issue.