• Resolved magicmat

    (@magicmat)


    I am a bit of a noob, but having problems with images that I upload to my site. I use the Insert Image tool, upload it, but the image does not display on the tool, or on the website. However, the image IS showing on the FTP Server. Previous images uploaded in the same way just a few weeks ago are displaying, but ones uploaded this week are not. Can anyone please help? Example below
    https://www.captive8media.com/wp-content/uploads/2014/01/broadcastscreenshot-300×244.jpg

    Big thanks!!

    [Moderator Note: Please ensure that you are embedding links correctly in your posts.]

Viewing 12 replies - 16 through 27 (of 27 total)
  • This is important @magicmat. I was just viewing your website & I just found out that directory browsing is enabled on your website which is allowing me to visit https://www.captive8media.com/wp-content/uploads/ of your website.

    It’s not good for your website & is a plus point for hackers. You should disable directory browsing by adding following to your .htaccess file:

    # directory browsing
    Options All -Indexes

    I think December’s are working now if you check. It’s possible that WordPress couldn’t create your 2014/01 directory when it tried earlier this month. I’d try creating the 2014/01 directory and setting its permissions to 755.

    Thread Starter magicmat

    (@magicmat)

    Thanks….the file now reads:

    # compress text, HTML, JavaScript, CSS, and XML
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript

    # remove browser bugs
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    Header append Vary User-Agent

    # directory browsing
    Options All -Indexes

    ## EXPIRES CACHING ##

    ExpiresActive On
    ExpiresByType image/jpg “access plus 1 year”
    ExpiresByType image/jpeg “access plus 1 year”
    ExpiresByType image/gif “access plus 1 year”
    ExpiresByType image/png “access plus 1 year”
    ExpiresByType text/css “access plus 1 month”
    ExpiresByType application/pdf “access plus 1 month”
    ExpiresByType text/x-javascript “access plus 1 month”
    ExpiresByType application/x-shockwave-flash “access plus 1 month”
    ExpiresByType image/x-icon “access plus 1 year”
    ExpiresDefault “access plus 2 days”

    ## EXPIRES CACHING ##

    # 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

    Is that ok?!

    Everything is fine. And December files are working. As WPRanger said, try to manually create 2014/01 folder.

    Thread Starter magicmat

    (@magicmat)

    I think December’s are working now if you check. It’s possible that WordPress couldn’t create your 2014/01 directory when it tried earlier this month. I’d try creating the 2014/01 directory and setting its permissions to 755.

    Sorry, my mistake, December WAS working, its only January that hasn’t. The directory is there on the FTP, and the images are viewable from there.

    Thread Starter magicmat

    (@magicmat)

    Its now working! Thank you so much for your help….the 755 seems to have done the trick! Much appreciated!!!

    Hooray! I love it when a plan comes together ??

    December was also not working when I looked it. But both are now working. Great plugin @wpranger & you should submit it to WordPress plugin repository.

    Thanks. I’m waiting for someone to break it first ??

    Thread Starter magicmat

    (@magicmat)

    Yeah, that’s great…although it did show it had permissions, but wasn’t showing. But great to get a breakdown of the permissions code.

    Any ideas why that occurred in Dec and Jan, but not before? Is it likely to reoccur?

    Please mark this thread as resolved so it could help others.

    Thread Starter magicmat

    (@magicmat)

    Thanks All!

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘Image Viewing Permissions’ is closed to new replies.