WordPress.org

Ready to get started?Download WordPress

Forums

Problem displaying image multisite (15 posts)

  1. sebastien2020
    Member
    Posted 1 year ago #

    Hello,

    Here is my problem, I have a network with two different blogs.

    When I try to add an image, the image is not displayed. (see below)

    http://rankdatingsite.com/

    link to image not found : http://rankdatingsite.com/files/2013/03/choisir_site_de_rencontre1-150x150.jpg

    Do I have to change the upload url path ? Or is there another solution ?

    Thanks

  2. derrick_w
    Member
    Posted 1 year ago #

    Did you search the forum using your/this topic title?

  3. sebastien2020
    Member
    Posted 1 year ago #

    Yes, I tried some of the solutions that I found but it's not working.

    By changing upload path in the settings but it doensn't work.

    I also try to change the .htaccess to this

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

    but it didn't work out

  4. derrick_w
    Member
    Posted 1 year ago #

    Please provide links to "the solutions that" you "found but it's not working" so we don't repeat ourselves.

    When you describe something like "by changing upload path" please indicate the before and after path and any/all errors, warnings, etc.

    Same goes for "change the .htaccess to this." What was it before the change? I THINK the RewriteRule and link you provided would result in your server looking for
    http://rankdatingsite.com/wp-includes/ms-files.php?file=2013/03/choisir_site_de_rencontre1-150x150.jpg

    Does the link to the .jpg you posted above, indicate the physical path? ie. In an FTP client the path is /files/2013/03/choisir_site_de_rencontre1-150x150.jpg

  5. sebastien2020
    Member
    Posted 1 year ago #

    Here is what's in my .htaccess

    SetEnv PHP_VER 5
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]

    Do I have to change something ?

  6. sebastien2020
    Member
    Posted 1 year ago #

    And here are the settings of the site :

    Upload Path : wp-content/blogs.dir/2/files
    Fileupload Url : http://rankdatingsite.tccompany.be/files

    The image is displayed through that url : http://rankdatingsite.com/wp-includes/ms-files.php?file=/2013/03/choisir_site_de_rencontre1-150x150.jpg

    But not on the site via the default rewritting as /files/year/month/filename.jpg as you can see below http://rankdatingsite.com/2013/03/23/quel_site_de_rencontre_choisir/

  7. Is allowOverride set to All on your httpd.conf?

  8. sebastien2020
    Member
    Posted 1 year ago #

    I asked to my host because I'm on a shared server and I don't know how to access to the httpd.conf.

    I wait for their answer

  9. sebastien2020
    Member
    Posted 1 year ago #

    Hello Mika,

    I asked to my host, but due to my hosting choice (shared hosting) I can't configure the file ini.php.

    Do you know have another solution ?

    Thks

  10. Not ini.php, httpd.conf

    And if you can't edit that, then you can't use Multisite UNLESS you totally reinstall it, in a new location, as v 3.5

    You see, if you start with 3.5, your images don't use /files/

    Or you can try this: http://halfelf.org/2012/dumping-ms-files/

  11. sebastien2020
    Member
    Posted 1 year ago #

    Hello Mika,

    I reinstall the v.3.5 but I still have the same problem :

    On the main site when I uploaded an image, the image is on the server there :
    http://tccompany.be/wp-content/uploads/2013/03/choisir_site_de_rencontre2.jpg

    On the second site, when I upload an image, the image is uploaded on the server there :
    http://rankdatingsite.com/files/2013/03/choisir_site_de_rencontre1.jpg

    The image is not found, but it's really on the server on that url :

    http://rankdatingsite.com/wp-content/blogs.dir/2/files/2013/03/choisir_site_de_rencontre.jpg

    Do you know how I can solve this issue ! I 'm becomming a bit crazy !

    Thanks
    Regards

  12. When you reinstalled, did you totally delete your site and start over from a clean slate? New database, new files, new everything? Or did you just copy the files back up?

  13. sebastien2020
    Member
    Posted 1 year ago #

    No I first made a copy of the database then I upgrade to WP 3.5 and re-installed the plugins.
    Should I delete everything and re-install everything ?
    Can I still make a copy of the DataBase, beacause I already have some content.

    Thks

  14. Not easily.

    You can try this: http://halfelf.org/2012/dumping-ms-files/

    Or this: http://trepmal.com/2013/03/24/removing-ms-files-php-dependency/

    But if they're out of your league, then you really need to start over.

    Backup your content. Export it to an XML and you can reimport, though you may not get your images.

Topic Closed

This topic has been closed to new replies.

About this Topic