Support » Networking WordPress » uploaded images blank thumbnail and don't display

  • Resolved Stingraynut

    (@stingraynut)


    This is a brand new 3 day old multisite using subdomains

    I’m using domain mapping and after setting up the mapping I have changed the name from subdomain to the actual domain

    all is working except that when I upload a test image which I know works on other single sites, I get a blank thumbnail in the library and in the post.

    The image has uploaded and I can see it via cPanel>view but not by using the url supplied by the WordPress image uploader.
    Here is the url supplied by WP http://northernbeachesaudiology.com.au/files/Baccarat-Capri.jpg
    Looking at the path in Cpanel it would be http://sydneyentassociates.com.au/wp-content/blogs.dir/2/files/ Baccarat-Capri.jpg but this doesn’t show the image either
    Sydney… is the multisite master domain, Northern… is a mapped domain to the multisite
    I think this is either an .htaccess or httpd.config problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    If this is a BRAND NEW muyltisite, the URLs are wrong.

    http://northernbeachesaudiology.com.au/files/Baccarat-Capri.jpg shouldn’t have the files in there, and even if it did, it would have Year and Month.

    How did you map? Which plugin did you use or, if you did it manually, how?

    Thread Starter Stingraynut

    (@stingraynut)

    Hi Mika, you’ve helped me a few times, always much appreciated.

    When I say NEW, I built this multisite last Sunday.
    I have turned off year/month in the settings for each domain.
    Before I did that I still had this problem of images not displaying and it was searching for the image in Cpanel to see if it had actually uploaded that reminded me to turn off the Year/Month way of saving.

    I uploaded that picture as a test because I know it works. I’ve tried several images I’ve used on other websites – none of them will display as thumbs in the library or in posts.

    I have used Domain Mapping by Doncha.
    This is not my first multisite.

    I have another test multisite on the same server and I can upload images to that, so I must have gone wrong somewhere. Everything else seems to work.

    I deactivated and deleted all plugins, that stopped domain mapping from working and the urls revert to subdomains.
    WP shows the url like this – http://northernbeachesaudiology.sydneyentassociates.com.au/files/Baccarat-Capri.jpg
    That url will not show the image, I get ‘No results Found’ from the northern beaches website page.

    CPanel shows the path as http://sydneyentassociates.com.au/wp-content/blogs.dir/2/files/Baccarat-Capri.jpg and that shows the image.

    Somehow the file structure in WP is not working properly

    With plugins deactivated and removed, the uploaded image still doesn’t show as a thumbnail, just a blank grey box with a tick top right. It doesn’t show in the post, there’s a blank box with the title top left.

    I have swapped the htaccess file from the working test multisite, but that didn’t make any difference

    I don’t understand why the test multisite on this server works and the new one doesn’t- I’d use the test multisite but it is installed using a different domain name.

    I have now reinstalled the plugins and have a maintenance mode plugin running now so only admins can see the actual page or photo links.

    Any ideas? what should I look for?

    Here is the test multisite htaccesss file where images work

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    here is the htaccess file of the multisite where images won’t display after uploading

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    
    #rules below prevented single sign on
    
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    # These rules allow single sign on
    #RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    #RewriteCond %{REQUEST_FILENAME} -f [OR]
    #RewriteCond %{REQUEST_FILENAME} -d
    #RewriteRule ^ - [L]
    #RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    #RewriteRule ^(.*\.php)$ $1 [L]
    #RewriteRule . index.php [L]
    #END of Single sign on rules
    
    # END WordPress

    Thread Starter Stingraynut

    (@stingraynut)

    SOLVED.
    I was unable to see the network setup page to copy the htaccess and wp-config settings again.
    I added define( 'WP_ALLOW_MULTISITE', true ); to wp-config
    and then the network setup appeared.
    I copied the htaccess and then all the images uploaded appeared as thumbnails , I was able to up[load a new image, insert it into a post and see it.

    Thanks for your help mika because when you said ‘files’ shouldn’t be in the url that made me think it had to be htaccess and that got me started on troubleshooting

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘uploaded images blank thumbnail and don't display’ is closed to new replies.