Support » Networking WordPress » media library problems

  • I uploaded photos and it seems to be done corectly but photos don’t appear neither to library as thumbnails nor to posts that they have been attached.
    I try to trace the problem in the internet and I am surpised about how many people out there encounder the same problem I think that the problem has to do with permalinks and resides in either wp-admin/media-upload.php or .httpaccess but I do not know how to fix it. I have to mention that I am using mu and I have installed it in a subfolder.

Viewing 8 replies - 1 through 8 (of 8 total)
  • it seems to be done corectly

    Images should be being uploaded into directories under /wp-content/blogs.dir/<site ID>/files/… Can you confirm that the image files are being successfully uploaded there? That will rule out problems with file and directory permissions.

    I think that the problem has to do with permalinks and resides in either wp-admin/media-upload.php or .httpaccess

    For your images to be viewed, the rewrite rules in your .htaccess file have to be correct. Have they ever worked? Is this a new install? Perhaps you could post the rules you are using?

    Thread Starter Apostolos Gazepis

    (@gazepisapostolos)

    Thank you for response digilmour, Images are in the correct path according your mention above, I haven’t ever worked .httpaccess as it new installation.

    RewriteEngine On
    RewriteBase /

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    URL to your site please.

    you said you were using mu. What version? If you;re using a new 3.0 version and you enabled multisite, yes there is a slight difference in relation to rewrite rules.

    Thread Starter Apostolos Gazepis

    (@gazepisapostolos)

    The url to the site is parissisc.eserres.gr and I am using 3.0.1 version of wordpress.

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    The difference Andrea’s referring to is that if you’re on 3.0.1 then you shouldn’t have blogs.php in there, but ms-files.php.

    See Andrea’s http://wpmututorials.com/how-to/upgrading-from-wpmu-to-wp-3-0/ for how to fix that.

    Yep, someone gave you the old htaccess file for wpmu. On a new installation, 3.0 and above, the network is not enabled out of the box. You *had* to edit the htaccess file to enable it.

    Thread Starter Apostolos Gazepis

    (@gazepisapostolos)

    A hundrents of thousants thanks to both of you dgilmour and Andrea_r. You are the best thanks to your responses my problem solved and I am sure that many people that will read your advice will thank you too, cause it is an issue for those who upgrade from later versions of wordpress mu to the most new.Thank you.

    I’ve noted it both in my blog alreayd and the codex, so I’m not sure where else (other than a huge blinking dashboard message) we can do to notify users.

    Oh wait, you get that message. 😉

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘media library problems’ is closed to new replies.