• Resolved kkinard

    (@kkinard)


    after upgrading from WPMU to WP 3 (now using 3.1), images in previously published posts do not appear in the published site. A look on the server reveals that an image is located here:

    https://embeddedgurus.com/wp-content/blogs.dir/7/files/2011/02/view-transcript.png

    and the post has the path as:
    https://embeddedgurus.com/state-space/files/2011/02/view-transcript.png

    but neither path brings up the image in a browser.

    I’m suspecting a fix related to the .htaccess file or perhaps something happened in the upgrade that broke the path to images.

    I tried uploading new images with the media uploader, but these also do not display at all upon publication.

    Attempted Workaround: I removed this code from the .htaccess file
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    And now at least I can manually update image URLs in posts, but going back through all posts to update this is laborious. Also, it doesn’t solve the problem that an uploaded image has the wrong path upon insertion using the WYSIWYG editor.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @mercime

    (@mercime)

    after upgrading from WPMU to WP 3 (now using 3.1), images in previously published posts do not appear in the published site.

    When you upgraded from WPMU to WP 3.0 multisite, there was a step where you had to make a change on one line in your .htaccess file — replace wp-content/blogs.php (because that file needs to be deleted) to wp-includes/ms-files.php. If you miss this step, permalinks esp. media will get out of whack.

    Read this post to get a better handle of the necessary steps to properly upgrade from WPMU 2.9.2 to WP 3.0+
    https://developersmind.com/2010/06/17/upgrading-wordpress-mu-2-9-2-to-wordpress-3-0/

    Thread Starter kkinard

    (@kkinard)

    I corrected the .htaccess file and uploaded it to the server. Still the problem persists. I even tried uploading a new image to a new post and still the problem persists. Does something need to be UNDONE at this point?

    Thread Starter kkinard

    (@kkinard)

    Found a typo and fixed it. It works now.

    Timothy

    (@seahawknationblog)

    RESOLVED

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Media/images do not display in posts after upgrade’ is closed to new replies.