Problem displaying image multisite
-
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)
link to image not found : http://rankdatingsite.com/files/2013/03/choisir_site_de_rencontre1-150×150.jpg
Do I have to change the upload url path ? Or is there another solution ?
Thanks
-
Did you search the forum using your/this topic title?
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
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.jpgDoes 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-150×150.jpg
http://rankdatingsite.com/wp-includes/ms-files.php?file=/2013/03/choisir_site_de_rencontre1-150×150.jpg works, so what’s in your .htaccess? 🙂
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 ?
And here are the settings of the site :
Upload Path : wp-content/blogs.dir/2/files
Fileupload Url : http://rankdatingsite.tccompany.be/filesThe image is displayed through that url : http://rankdatingsite.com/wp-includes/ms-files.php?file=/2013/03/choisir_site_de_rencontre1-150×150.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/
Is allowOverride set to All on your httpd.conf?
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
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
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/
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.jpgOn 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.jpgThe 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
RegardsWhen 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?
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
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.
The topic ‘Problem displaying image multisite’ is closed to new replies.