WordPress.org

Forums

[resolved] WP 3.8.1 images not showing (24 posts)

  1. sepruda
    Member
    Posted 1 year ago #

    No images are showing on my site. When I upload images, they're shown with the broken link icon. This is also true when I try to edit them in the media library.

    It was suggested with WP 3.7.1. that you change permissions to 0755 in the /wp-uploads folders, I have done this, but it didn't help.

    Webpage http://www.danskmammakirurgiskselskab.dk/

  2. Dave Naylor
    Member
    Posted 1 year ago #

    On your main page, there's a large area that looks like it should be displaying an image, however this is the underlying html:

    <img src="" width="940" height="350" alt="">

    If it was a permissions issue, there would at least be the image link even if it wouldn't display. Can you link to somewhere else on your site where an image is missing?

  3. sepruda
    Member
    Posted 1 year ago #

    Actually that is the only image I have on this site. I put the image back on.

    <img src="http://www.danskmammakirurgiskselskab.dk/wp-content/uploads/2014/01/Eremitagestatue-940x350.png" width="940" height="350" alt="">

  4. Dave Naylor
    Member
    Posted 1 year ago #

    When you changed the permissions on the uploads/ directory, did you recurse into its subdirectories?

  5. sepruda
    Member
    Posted 1 year ago #

    I'm not sure...but when I right-click for instance the directory named "01" in "2014" in the /uploads directory, it has the 755 value. So I guess I did?

  6. sepruda
    Member
    Posted 1 year ago #

    I just did it again selecting recurse into subdirectories, still the same unfortunately.

  7. Dave Naylor
    Member
    Posted 1 year ago #

    Try 775.

  8. sepruda
    Member
    Posted 1 year ago #

    Didn't work

  9. Dave Naylor
    Member
    Posted 1 year ago #

    How odd. I have a small plugin on Github that will show you all the permissions of your uploads directory. Install that and see if you find any errors:

    WP Upload Permissions

  10. sepruda
    Member
    Posted 1 year ago #

    I checked all the file permissions, all files have 644 all folders have 755. It seems it isn't about permissions?

  11. Dave Naylor
    Member
    Posted 1 year ago #

    Do you have any custom .htaccess rules in place?

  12. sepruda
    Member
    Posted 1 year ago #

    I'm afraid I don't know. I recently took over from another, and I'm not too wordpress-savvy yet..How do I check if I do?

  13. Dave Naylor
    Member
    Posted 1 year ago #

    If it's in use, .htaccess will be in the root directory of the installation.

  14. sepruda
    Member
    Posted 1 year ago #

    I do have a .htaccess file in root - so that's a yes.

  15. sepruda
    Member
    Posted 1 year ago #

    This is the content:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    # Added by Surftown to prevent brute force attack against wp-login.php
    <IfModule mod_rewrite.c>
    	RewriteEngine on
    	RewriteCond %{REQUEST_METHOD} POST
    	RewriteCond %{HTTP_COOKIE} !^.*wordpress_test_cookie.*$ [NC]
            RewriteCond %{HTTP_REFERER} !medlemmer [NC]
    	RewriteRule wp-login.php  - [F,L]
    </IfModule>
    
    <IfModule mod_security.c>
        SecFilterEngine Off
    </IfModule>
    
    <IfModule mod_security2.c>
    SecRuleEngine Off
    </IfModule>

    It seems to be something my webhost added.

  16. Dave Naylor
    Member
    Posted 1 year ago #

    Looks like you'll have to speak with your hosts.

  17. sepruda
    Member
    Posted 1 year ago #

    Do you see any conflicts with my images in the .htaccess-file? I could try moving it, and see if it works.

  18. Dave Naylor
    Member
    Posted 1 year ago #

    There's nothing in there related to images and if you checked the file permissions and they are fine, there's something not so obvious at play. It's difficult to say exactly what without getting access to your server, which is why it's only something your hosts can help you with.

  19. sepruda
    Member
    Posted 1 year ago #

    Allright, I'll try contacting them. Thank you for your help and patience!

  20. RobinLau
    Member
    Posted 1 year ago #

    I meet this issue too. Anyone know how to resolve it ??
    THX

  21. esmi
    Forum Moderator
    Posted 1 year ago #

    @RobinLau: If you require assistance then, as per the Forum Welcome, please post your own topic.

  22. aiyeboy
    Member
    Posted 1 year ago #

    i have been facing this for few days now, my site does not show images, i tried everything possible but its not coming up, i had to change theme but now my logo isnt showing again

  23. esmi
    Forum Moderator
    Posted 1 year ago #

    @aiyeboy: If you require assistance then, as per the Forum Welcome, please post your own topic.

  24. sepruda
    Member
    Posted 1 year ago #

    Problem was solved by my webhost. Seems a .htaccess file had been placed in the picture folder. Renaming it, fixed the problem.

Topic Closed

This topic has been closed to new replies.

About this Topic