WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] WP 3.8.1 images not showing

[Resolved] WP 3.8.1 images not showing

  • 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/

Viewing 15 replies - 1 through 15 (of 23 total)
  • 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?

    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="">

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

    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?

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

    Try 775.

    Didn’t work

    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

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

    Do you have any custom .htaccess rules in place?

    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?

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

    I do have a .htaccess file in root – so that’s a yes.

    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.

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

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘[Resolved] WP 3.8.1 images not showing’ is closed to new replies.
Skip to toolbar