The MU forums have moved to WordPress.org

images visible only to me, while logged in (6 posts)

  1. Beer
    Member
    Posted 15 years ago #

    New install of wpmu and buddypress plugins.

    The images are all fine, permissions look good, but they are 0 byte returned to the browser to anyone that isn't me. It's acting as if there's some kind of protection setup where only the uploader of the files has access to view them.

    Any ideas?

    The header seems ok

    ~ $ curl -I http://blogs.domain.com/files/2009/07/gallerytest.png
    HTTP/1.1 200 OK
    Date: Wed, 29 Jul 2009 13:57:42 GMT
    Server: Apache/2.2
    X-Powered-By: PHP/5.2.0-8+etch15aaa+tigertech1
    ETag: "117d83ef807181f3fcc6b01542663edb"
    Expires: Fri, 28 Sep 2012 23:44:22 GMT
    Content-Length: 65407
    Last-Modified: Tue, 28 Jul 2009 21:22:15 GMT
    Content-Type: image/png

    Then the actual retrieving of the image, not so ok

    ~ $ curl -vvv http://blogs.domain.com/files/2009/07/gallerytest.png
    * About to connect() to blogs.domain.com port 80 (#0)
    *   Trying x.x.x.x ... connected
    * Connected to blogs.domain.com (x.x.x.x) port 80 (#0)
    > GET /files/2009/07/gallerytest.png HTTP/1.1
    > User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
    > Host: blogs.domain.com
    > Accept: */*
    >
    < HTTP/1.1 200 OK
    < Date: Wed, 29 Jul 2009 13:58:00 GMT
    < Server: Apache/2.2
    < X-Powered-By: PHP/5.2.0-8+etch15aaa+tigertech1
    < ETag: "117d83ef807181f3fcc6b01542663edb"
    < Expires: Fri, 28 Sep 2012 23:44:40 GMT
    < Content-Length: 0
    < Last-Modified: Tue, 28 Jul 2009 21:22:15 GMT
    < Content-Type: image/png
    <
    * Connection #0 to host blogs.domain.com left intact
    * Closing connection #0
  2. nicktank
    Member
    Posted 15 years ago #

    Check the blogs.dir directory and see if it is saving the images to the appropriate directory.

  3. andrea_r
    Moderator
    Posted 15 years ago #

    And check the ownership & permissions of the files.

    "It's acting as if there's some kind of protection setup where only the uploader of the files has access to view them."

  4. Beer
    Member
    Posted 15 years ago #

    I can view them from the web, so yes the images are there and in the appropriate directory, and the ownership and permission of the files is correct.

    It's acting as if maybe there is a .htaccess or cookie or PHP protection in place to only allow me to view the images.

    Logged out - I cannot view the images
    Logged in - I can view the images fine
    Another Member Logged in - Cannot view the images.

    Thank you for helping solve this.

  5. Beer
    Member
    Posted 15 years ago #

    The problem was with Hypercache plugin. I haven't checked but maybe it's not compatible with wpmu.

    I disabled Hypercache for now, and am using WP-SuperCache, and everything seems to be working.

  6. LucasMS
    Member
    Posted 15 years ago #

    I have had the same problem.
    Just put "/files" in the reject uri from hyper cache and now its working fine.

About this Topic