22 pointsStarting to get into this DEV thingI'm new here
Travis
Member
—
31st January 2011 (1 year ago)
Hey
I've got a new subdomain-style install with a problem. Any images I upload to the subdomain sites seem to become corrupted. Uploads work fine on the root site, farmpage.org.
I've tried deactivating all plugins, using the browser uploader, various .htaccess configurations, some wp-config changes recommended on wordpress.org, but no dice.
I also have another subdomain install running on the same box (separate Apache virtual host and IP), but everything is fine on that one. I have tried using the same settings as the working install without any luck.
I've got a new subdomain-style install with a problem. Any images I upload to the subdomain sites seem to become corrupted. Uploads work fine on the root site, farmpage.org.
I've tried deactivating all plugins, using the browser uploader, various .htaccess configurations, some wp-config changes recommended on wordpress.org, but no dice.
I also have another subdomain install running on the same box (separate Apache virtual host and IP), but everything is fine on that one. I have tried using the same settings as the working install without any luck.
6593 pointsLike some sort of WPMU DEV GodExceptionally helpfulLifetime member
Keeper of the Dark Chocolate
—
31st January 2011 (1 year ago)
#
Can you check your weberserver's error logs to see if anything is getting dropped in there? It's always a plus to do that as a first step and include that in your help request. Plus it helps keep certain people's blood pressure down which is a good thing. :)
Does it just happen with the *.png files or have you tried other extension types?
Google'ing for that error suggests it;s either a directory permissions error or the server is thinking these images are actually text files. I;m leaning towards the second one of those. Just to make sure, can you check both the permissions as well as the ownership of some of these files and let us know what they are?
Can you pull down one of these files from a subdomain via ftp (edit: Please force it to download as a binary file.) and see if it opens locally?
Please also check with your host, Media Temple, and make sure that *.png support is working. Probably is but just to make sure.
edit: You're not using Timthumb, are you? One of the plugins that you may be using may have support for that in there, like this popular post plugin. Are you using anything like that?
Hey Dr. Mike-
Nothing happening in the error log - just intermittent pinging of wp-chron:
[Mon Jan 31 05:17:24 2011] [error] [client 127.0.0.1] script '/var/www/html/wp-cron.php' not found or unable to stat
[Mon Jan 31 05:28:01 2011] [error] [client 127.0.0.1] script '/var/www/html/wp-cron.php' not found or unable to stat
[Mon Jan 31 08:21:17 2011] [error] [client 127.0.0.1] script '/var/www/html/wp-cron.php' not found or unable to stat
[Mon Jan 31 08:55:20 2011] [error] [client 127.0.0.1] script '/var/www/html/wp-cron.php' not found or unable to stat
-rw-r--r-- 1 apache apache 2178 Jan 31 10:03 wordpress-logo-hoz-rgb3-150x113.png
-rw-r--r-- 1 apache apache 14925 Jan 31 10:03 wordpress-logo-hoz-rgb3-300x68.png
-rw-r--r-- 1 apache apache 9164 Jan 31 10:03 wordpress-logo-hoz-rgb3.png
Not using timThumb. Also, this happens with all plugins and mu-plugins deactivated.
I keep leaning toward a vhost config problem, and I've tried adding an explicit AllowOverride All, but it did not make a difference after an apache restart.
I've got this in my vhost.conf (my other MU install on the same box does not have this, but MT recommends it.)
Responses (6)
Keeper of the Dark Chocolate — 31st January 2011 (1 year ago) #
Can you check your weberserver's error logs to see if anything is getting dropped in there? It's always a plus to do that as a first step and include that in your help request. Plus it helps keep certain people's blood pressure down which is a good thing. :)
Does it just happen with the *.png files or have you tried other extension types?
Google'ing for that error suggests it;s either a directory permissions error or the server is thinking these images are actually text files. I;m leaning towards the second one of those. Just to make sure, can you check both the permissions as well as the ownership of some of these files and let us know what they are?
Can you pull down one of these files from a subdomain via ftp (edit: Please force it to download as a binary file.) and see if it opens locally?
Please also check with your host, Media Temple, and make sure that *.png support is working. Probably is but just to make sure.
edit: You're not using Timthumb, are you? One of the plugins that you may be using may have support for that in there, like this popular post plugin. Are you using anything like that?
Member — 31st January 2011 (1 year ago) #
Hey Dr. Mike-
Nothing happening in the error log - just intermittent pinging of wp-chron:
This corruption happens with png, gif and jpg. Pdf's are fine.
http://test11.farmpage.org/test-images-subdomain/
And, on the root site images are all fine:
http://farmpage.org/test-images/
Here's the permissions for the upload dir:
`httpdocs]# ls -al wp-content/blogs.dir/12/files/2011/01/
Member — 31st January 2011 (1 year ago) #
Aw crap- it cut short my huge reply :(
Let's try that again, folder permissions:
Not using timThumb. Also, this happens with all plugins and mu-plugins deactivated.
I keep leaning toward a vhost config problem, and I've tried adding an explicit AllowOverride All, but it did not make a difference after an apache restart.
I've got this in my vhost.conf (my other MU install on the same box does not have this, but MT recommends it.)
I will look further into the subdomain treating images like txt files...
Thanks,
Travis
Member — 1st February 2011 (1 year ago) #
Any ideas based on the new info?
Member — 2nd February 2011 (1 year ago) #
nm- I blew away the VM and started anew. Everything's peachy now.
Sales & Support Lead — 6th February 2011 (1 year ago) #
Hiya Travis,
Glad you were able to get this working. Thanks for letting us know! :D
Become a member