• Resolved hawkeye126

    (@hawkeye126)


    Problem:
    2 sites I recently created can upload media but the media does not display although I can find it on the server at:

    /assets/sites/{# of site as name of folder}

    Info
    Running wordpress multisite, using subfolders, on bluehost.

    .htaccess

    # Use PHP5 Single php.ini as default
    AddHandler application/x-httpd-php5s .php
    
    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
        <IfModule mod_headers.c>
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
            AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
        <IfModule mod_mime.c>
            # DEFLATE by extension
            AddOutputFilter DEFLATE js css htm html xml
        </IfModule>
    </IfModule>
    # END W3TC Browser Cache
    
    # BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    # END WordPress
    
    # Start CloudFlare:lowermedia.net rewrite. Do not Edit
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^lowermedia.net
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
    # End CloudFlare rewrite.

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    /assets/sites/{# of site as name of folder}

    Assets? Did you change the location of your wp-content folder?

    Thread Starter hawkeye126

    (@hawkeye126)

    No, I didn’t knowingly anyway.

    The site is at the top level of public_html/ which, besides the top level files of core, contains:

    assets/
    cgi-bin/
    wp-content/
    wp-admin/
    wp-includes/

    I do not remember is assets was in the public_html folder by default as the cgi-bin/ folder was. Even is this was the case uploading works on all my sites besides two that I created in the last week.

    Thread Starter hawkeye126

    (@hawkeye126)

    Thanks @ipstenu, I have found some more info that could help

    While trying to fixed this I was able to view the photo by editing it in the dashboard. (through media in the images configuration page)

    I copied the link and got this:

    http://lowermedia.net/futurehistoryfestival/wp-admin/admin-ajax.php?action=imgedit-preview&_ajax_nonce=d48ec887e6&postid=29&rand=40856

    I navigated to that and was able to see the image.

    Can anybody help me figure out why I’m not able to see the images but I know they are on my server and I can see images on my other multisite sites? Thanks!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Well your images aren’t in /assets/, they’re in wp-content

    What version of WP were you using when you turned on Multisite?

    I have the same issue. I tried to upload images which appeared to work but the icon and image have broken links. I looked for the uploads directory to see if the images had uploaded and there wasn’t one (an uploads directory) there. I found the images in a (new) route level directory called assets.

    The image link created by WP was:

    http://www.mydomain.com/en/assets/sites/2/2013/03/image.jpg

    But the image was at:

    http://www.taoyueguan.com/assets/sites/2/2013/03/li-haisheng.jpg

    I am using the following .htaccess code from the Network Setup page:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    It is a fresh install of WordPress Multisite 3.5.1

    Thread Starter hawkeye126

    (@hawkeye126)

    Dashboard -> Sites -> All Sites -> Click Edit under the site that’s having problems

    Scroll down to Upload Path and change it to wp-content/blog.dir

    You may have to create the blog.dir if it does not exist.

    This fixed the problem for me.

    That worked for me too. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Slight Variation on Multisite Media Upload Problem’ is closed to new replies.