Forums

[resolved] Broken Images on a MU Network Sub-domains (10 posts)

  1. JohnRazmus
    Member
    Posted 1 year ago #

    Images on my sub-domain blog network are not showing up - not a 404, but simply showing up blank.

    I really, really need a solution to this, so please do help! I run my network on a VPS, CentOS, latest version of everything, full access to all files.

    Here is a link to an image not working: http://cat-genie.org/files/2011/02/cat-genie-e1298048555224.jpg

    Here is the contents of my .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    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]
    # END WordPress

    Please send any recommendations and I'll try em out & respond asap.

  2. spherical
    Member
    Posted 1 year ago #

    Hey. We have one of those! Rescued two families of abandoned kittens; 5 Bengals and before them, 4 Maine Coons. Add those to the kids we already had and two that showed up and you can see that the Genie helps a lot.

    Tried to access the image with Firebug running and it reports the file size as 0 bytes delivered in 411ms. Is the file there and has the correct byte amount and uploaded in binary?

    .htaccess is standard for an Apache server. I'm unfamiliar with CentOS but it being a Linux variant it should be the same. Is there another .htaccess in a parent or child directory?

  3. Andrea_r
    team pirate
    Posted 1 year ago #

    yeah the image itself looks hosed.

  4. As I mentioned in your other thread (thank you for making a new one BTW! :D )

    That's not a 404 on the images. That's a blank page, which is a PHP issue usually.

    http://cat-genie.org/wp-content/blogs.dir/1/files/2011/02/cat-genie-e1298048555224.jpg is a 404 you see.

    CentOS is what I use and .htaccess is normal. It's not an .htaccess problem. What do your error logs say?

    (One of my cats is a quarter Maine Coon... her nickname is Thugzilla)

  5. JohnRazmus
    Member
    Posted 1 year ago #

    Thank you for the support thus far, however there is more evidence that it's not that single image.

    Here is a video of the problem when uploading media: http://johnrazmus.com/jing/2011-02-27_1056.mp4

    When following Andrea's advice in a previous thread about broken permalinks and images, I followed the recommendation of adding this to the httpd.conf:

    <Directory "/">
    Options FollowSymLinks
    AllowOverride All
    </Directory>

    When I did that, the images showed up as 404 instead of blank. Any other clues?

  6. What's the NON files URL for that?

    I mean http://cat-genie.org/wp-content/blogs.dir/1/files/2011/02/cat-genie-e1298048555224.jpg is a guess. What's the actual blog number for that image?

  7. JohnRazmus
    Member
    Posted 1 year ago #

    Blog number 3 - let me know if you need any other info; thanks for helping : D

    Using the absolute filepath for the image, http://cat-genie.org/wp-content/blogs.dir/3/files/2011/02/cat-genie-e1298048555224.jpg shows up.

  8. OKAY! That's GOOD! :D

    http://cat-genie.org/wp-includes/ms-files.php?file=2011/02/cat-genie-e1298048555224.jpg does NOT work. So we know it's the .htaccess or some aspect of the redirect/

    Try this...

    <Directory "/">
    Options  Indexes FollowSymLinks Includes
    AllowOverride All
    </Directory>

    But is WP installed in / or is it in /home/username/public_html ?

  9. JohnRazmus
    Member
    Posted 1 year ago #

    It's installed in /home/username/public_html.

    I tried adding the <Directory "/"> code to the httpd.conf as well as <Directory "/home/username/public_html">, however both methods now make the images show up as 404 instead of blank.

    Thanks again, and please let me know the next thing to try : D

  10. JohnRazmus
    Member
    Posted 1 year ago #

    Images fixed - thank you all for the help attempts. Turns out some custom code I had at the end of wp-config.php was causing php to break when called to show an image - specifically the get_currentuserinfo() function.

    Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic