• I updated my PHP version, theme, and plugins, and then noticed that all of a sudden no images are showing up on either my website or in my dashboard (ie. there are placeholder boxes instead of images in the media library and preview images for installed themes). I’ve tried to deactivate all themes and plugins and switch to previous PHP version and back and none of it helped.
    If I try to open the link to one of the images on my site, I get this message: Forbidden

    You don’t have permission to access /wp-content/uploads/2019/01/237199_Aromatherapy-Rituals-3PC-Hand-Creams-Set-2048×1536.jpg on this server.
    Server unable to read htaccess file, denying access to be safe

    I also have a notification that “optional imagick module is not installed, or has been disabled”. Not sure if that is related. I tried to follow the steps to enable it, but can’t seem to find it anywhere in my cPanel, so don’t think that option is even available to me.

    I’ve read through so many forums already and tried so many things, but none of them seem to describe quite what I have and none of the solutions I’ve tried worked for me.

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • It seems to be a permission issue. Can you check permission of uploads folder and sub folders?

    Yes, when I try to access an image I also get ‘Forbidden’, followed by ‘[…] Server unable to read htaccess file, denying access to be safe’

    It looks like there’s something wrong with your .htaccess file, preventing the images from showing up. So probably the easiest way to resolve the situation is to reset the file and troubleshoot from there.

    Here is a good tutorial on how to reset your .htaccess file. It also explains why this may be happening.

    I hope that helps : )

    Thread Starter asyenka

    (@asyenka)

    @dvaer Agh! That’s one of the things that I’ve tried to do before, but didn’t actually go through with because for some reason I was unable to rename, move or pretty much do anything to the .htaccess file through the cPanel. Like I would edit the name, but then it reverts back to “.htaccess”… I don’t know what I’m doing wrong, but for some reason whenever I try to follow what appears fairly simple/clear steps for debugging my website, it’s just so much more complicated on my hosting site. Would you say at this point, this is something only the hosting site on their end can solve?

    Thread Starter asyenka

    (@asyenka)

    @dvaer actually I found a way around it by creating a copy in a different folder and removing the “.” at the beginning of the name. I’ve made the change to the “.htaccess” file that is still in the original folder but that didn’t help.

    • This reply was modified 2 years, 2 months ago by asyenka.
    Thread Starter asyenka

    (@asyenka)

    @emahajan uploads permission is “644”, but there is no sub-folders or content…. the folder is empty…

    @asyenka it’s strange, then where your images gone?
    Do you have backup of the same folder, if yes then upload any of the image e.g. in Portfolio page at the bottom this image appears /wp-content/uploads/2014/09/Margaritaville_HomeStyle_Ad-300×300.jpg then on same path upload the image with same name and check it.
    Also, for the time being, give full permission to the upload folder and check whether image appears or not.
    If still not works then you need to check the apache/server whether It’s allowing to read .htaccess or not.

    • This reply was modified 2 years, 2 months ago by emahajan.

    Hi @asyenka, at this point I would also contact your host and ask them to take a look as well. They are very experienced with cPanel and will be able to see what’s happening and assist you. They can also see things that you may not have access to. You can always also refer to this thread so that they can see what you’ve already tried.

    Good luck with it. These can be frustrating little things. Please let us know how it goes.

    Thread Starter asyenka

    (@asyenka)

    @emahajan @dvaer Problem solved!!! ??
    Turns out it was both a permissions and htaccess issue. I think my problem before was that I would just change one, then revert back to how it was before trying to fix the other. But just now I’ve updated both and everything seems up and running. Thank you both!

    Yay, Well done @asyenka! Thank you for letting us know ??

    Thread Starter asyenka

    (@asyenka)

    @dvaer @emahajan I celebrated too soon.. It’s down again, the permissions keep changing by themselves. I tried to repeat what I did before but it’s not working this time… ??
    I had some sub-folders in uploads that had the permissions changed to 777 (so anyone can write to them)! Also the code in the htaccess file keeps changing after I edit it. Could my website be hacked? Or does it sound more like an issue with plugins/themes?

    • This reply was modified 2 years, 2 months ago by asyenka.
    Anonymous User 17160716

    (@anonymized-17160716)

    asyenka, heya.

    Or does it sound more like an issue with plugins/themes?

    Sounds like an issue with your hosting provider, or software settings. Maybe you should try any security plugin with integrity check just to make sure your website isn’t hacked.

    Thread Starter asyenka

    (@asyenka)

    @m0ze I have been using Wordfence for security and it seems to be doing a pretty good job at blocking attacks and hasn’t notified me of any malicious code, but I use the free version, so maybe it’s not as effective? I just disabled, it along with all other plugins though and so far looks like the site is working (minus the contact form that requires one of the plugins). I’m going to try to reactivate the plugins one per day so enough time passes to see if any start causing problems.

    @asyenka that’s great.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘No images showing up in WordPress Dashboard or on website’ is closed to new replies.