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.
By xjmaas on
Hi All!
Today I updated my Drupal installation from 7.35 to the advised 7.38. Everything went like it should, thus no errors etc.
But when I visit my site, either logged in or logged out, I am missing some images I added before. Further testing shows that the images which won't show, give me HTTP Error 403 - Access Denied.
I already checked the file permissions, at several places on the server and they seem all the same for all images (it is a Linux based server)
Is this a known issue, or did I miss something, somewhere?
Xander
Comments
Not a known issue. As well as
Not a known issue. As well as permissions, check ownership of directories and files.
If you still have problems after checking that all directories and files on your site have the same owner and group set, take another look at the directory where the problem images are. Is it Drupal's public files directory or some subdirectory thereof?
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
I have checked all
I have checked all permissions, and some files in the folder can be 'served', others not. First thing I thought of, was the extension: .jpg vs .JPG
The files (images) should all come from ./sites/default/files
Sorry to repeat, as you
Sorry to repeat, as you probably got what I said in the last post, but sometimes people don't - did you check ownership as well as permissions?
If so, as a simple experiment, download one of the problem files, and open it in a potoviewer. Delete or rename it on the server and upload it again.
Unless of course you have set Drupal to use some image style, rather than the original image. In that case the file path is to a sub-directory of your public files directory.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
All files are set correctly
All files are set correctly (permissions and ownership).
As far as I know, I didn't use any special style for the images. It looks like Drupal is given the '403 Forbidden'. If I load the file from my website root, the file loads just fine
- FAILURE: http://www.xjmaas.nl/sites/default/files/rpi-server2/snip-schema.png
- FAILURE: http://www.xjmaas.nl/sites/default/files/snip-schema.png
- WORKING: http://www.xjmaas.nl/sites/default/snip-schema.png
- WORKING: http://www.xjmaas.nl/snip-schema.png
(Also did an update to 7.39 today, and the issue remains)
(edit: just updated to 7.39)
(edit2: Did some extra testing)
Your two lines marked as
Your two lines marked as failures load for me, and they load quickly. Maybe something wrong with your browser.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
@John_B,
@John_B,
See my comment below as the issue was resolved by my hosting provider. They commentde a line in a .htaccess file in .../files/...
Got feedback from my hosting
Got feedback from my hosting provider, who was kind enough to also have a look at it. They found that it was (perhaps a left over) config in the .htaccess in sites/default/files.
The
Options None
was uncommented and had to be commented.Well, I just learned something new today!
(John_B: Thanks for your thoughts and your input.)