Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
So I have an intranet site where all the images need to be in the private directory. After upgrading the 7.19, there was a change to image.module's image_file_download. On line 297 it now checks if $headers is empty. Adaptive Image seems to add a folder to $original_uri for the breakpoint which didn't exist on my setup. I attached an image of my dpm() output for $original_uri.
Essentially the file doesn't exist at the location specified causing $headers to return empty.
Comment | File | Size | Author |
---|---|---|---|
Screen Shot 2013-02-01 at 10.38.36 AM.png | 19.51 KB | jnettik |
Comments
Comment #1
Sborsody CreditAttribution: Sborsody commentedHave you figured anything further out? I think I'm seeing the same thing with adaptive image and the private filesystem.
Comment #2
jnettikHonestly, in the end I just pulled adaptive image module from the site I was having issues with. It wasn't that critical of a piece on that particular project. I've also been going with cs adaptive image module for responsive images. It's a javascript solution rather that a server side one and I've had much better luck with it.
Sorry I don't have much more info on the actual problem.
Comment #3
Sborsody CreditAttribution: Sborsody commentedThanks for the update. I temporarily disabled the adaptive effect from the image style. :( I have a second site that may also have the same problem.
Comment #4
vegansupreme CreditAttribution: vegansupreme commentedI've been using Private files download permission. When I allow access to the styles folder, it seems to work.