• Resolved atharqureshi

    (@atharqureshi)


    Hi champs,

    I am wondering around the WP forums since long but couldn’t fix my problem with the provided solutions. Can anyone help me please? It’s getting critical.

    The images I am uploading to my child website under WP multisite are not showing up on the website, neither in the media library. The primary site is working fine. I am using sub-folders for sub sites. My HTACCESS file is as below:

    RewriteOptions inherit
    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    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).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>

    Primary website: https://www.halalway.com.au
    child website: https://www.halalway.com.au/hcsa

    Please tell me what I need to do in order to fix this dirty default ill.

    Thanks, Athar.

Viewing 15 replies - 1 through 15 (of 16 total)
  • are your images not uploading, or are they there but uploading without dimensions? I have images that are uploading but the database says there are no width and height. see my thread

    Thread Starter atharqureshi

    (@atharqureshi)

    @jefferisp7

    Thanks for your reply. The images are uploading all good. In-fact, if I access them individually from their physical address, they open up and appear all good.

    They are just not appearing in media library and on my site.

    Any clue?

    if they aren’t appearing in the media library, how are you finding their actual address?
    My thumbnails aren’t appearing but it appears to be that the size data is missing from the images:
    https://screencast.com/t/646uuuu7M0

    Image data says it is missing

    Thread Starter atharqureshi

    (@atharqureshi)

    WP stores them in the wp-content/blog.dir/(blog id) structure by default. You can get it from there.

    you can then check their actual presence using any FTP client.

    You can also get the address by simply right-click > inspect element in Chrome browser on that particular image.

    I just did a test upload and got the right image data. But I removed SuperCache first.
    I think that may fix it, but did you do a bulk upload drag and drop? I did for my original images, and am wondering if a bulk upload is part of the problem.

    Also got this message:

    Dear User,

    WP Super Cache was removed from your blog but the mod_rewrite rules
    in your .htaccess were not.

    Please edit the following file and remove the code
    between ‘BEGIN WPSuperCache’ and ‘END WPSuperCache’. Please backup the file first!

    /usr/home/igota/public_html/SITENAME//.htaccess

    Regards,
    WP Super Cache Plugin
    https://www.ads-software.com/extend/plugins/wp-super-cache/

    Thread Starter atharqureshi

    (@atharqureshi)

    well, so far, I have only few images uploaded with the theme generator Artisteer. Uploaded the contents with the theme, didnt work.

    Tried uploading single image files, doesn’t work either.

    Researching on the forums, the htaccess file may need some tweaks.

    Since my website is pretty new, and I have tried re-doing the whole thing again and again with no success, I guess I dont need to run the Super Cache do I?

    I think only logos and backgrounds upload with Artisteer’s zip files. When you say single images, are you using the media library? FTP won’t work because the database doesn’t know the images are there.

    Thread Starter atharqureshi

    (@atharqureshi)

    No, actually the whole content can be exported to zip files (including all images) in Artistter and therefore are uploaded with the theme. My other client sites are working all good.

    Regardless of the above, when I upload any image to media lib, it does show the uploading process but, no thumbnail and no image file, only an apparent blank thumbnail type box depicting the image is there.

    I can use FTP to see the uploaded files in their actual address. The files are uploaded by default to this location (as said earlier):

    /site.com.au/wp-content/blogs.dir/7/files

    Where 7 is the sub-site id number. Therefore, files are there, but when it comes to loading on pages, the path of the images are different. Its coming like the following:

    https://www.site.com.au/hcsa/files/2013/12/Fresh_Meat.png

    Any clue???

    Thread Starter atharqureshi

    (@atharqureshi)

    Update:

    My hosting provider says that it is not possible to set “AllowOverride” to “All” or “Options All” in the httpd.conf file, because I am under the shared hosting server :(.

    Thread Starter atharqureshi

    (@atharqureshi)

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    The problem is your server can’t process this line in your .htaccess:

    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    My hosting provider says that it is not possible to set “AllowOverride” to “All” or “Options All” in the httpd.conf file, because I am under the shared hosting server :

    So … You can’t use Multisite UNLESS you’re willing to try and ditch ms-files. https://halfelf.org/2012/dumping-ms-files/

    Thread Starter atharqureshi

    (@atharqureshi)

    @ipstenu, thanks for your reply. I am reading your link.

    Please advise if there exist any other simple solution.

    Thread Starter atharqureshi

    (@atharqureshi)

    @ipstenu, I have read the link https://halfelf.org/2012/dumping-ms-files/ but I am confused.

    Having read the comments and suggestions in the end, I dont know what to do and where to start.

    Any assistance will be very much appreciated.

    Thread Starter atharqureshi

    (@atharqureshi)

    should I also try to do the force redirect in my .htaccess file? Would that help at all?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Please stop tagging this ModLook. You don’t need a moderator.

    If the directions are confusing, you need to hire someone: https://jobs.wordpress.net

    The process is confusing, I agree, but you have three options:

    1) Get rid of MS files

    2) Install a NEW version of WordPress with WP 3.8, port your main site over by exporting/importing content, delete the current install, and use the new one

    3) Force the redirects with .htaccess:

    RewriteRule ^hcsa/files/(.*)$ /hsca/wp-content/blogs.dir/7/files/$1 [R=301,L]

    However you will have to do that for EACH and every subsite on your network, manually.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Images not loading in Multi site environment.’ is closed to new replies.