WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] another "images broken in multisite" with a wp_debug twist (9 posts)

  1. Gabe462
    Member
    Posted 1 year ago #

    I've read through half a dozen variations on this issue. The twist is that unless I enable wp_debug, my theme breaks by not being able to find .css and .js files in addition to images. (see http://samadhi.gabeherbert.com/teacher/ (wp_debug disabled at time of writing) ) None of my daughter sites are showing images, but the mama is.

    here's my .htaccess:

    # BEGIN WordPress
    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

    this image
    http://samadhi.gabeherbert.com/files/2012/11/rainbowcake-125x125.jpg

    doesn't show up even if I change it to
    http://samadhi.gabeherbert.com/wp-includes/ms-files.php?file=2012/11/rainbowcake-125x125.jpg

    I'm on a dreamhost shared account, so I probably can't look at httpd.conf. They just migrated a datacenter and a couple of quirks have popped up. This may be one!

    thanks in advance.

  2. Gabe462
    Member
    Posted 1 year ago #

    I checked with DreamHost; AllowOverride is none

  3. Ipstenu-DH
    DreamHost Rep
    Posted 1 year ago #

    That would be why (though it surprises me...)

    You can edit it if you have a VPS: http://wiki.dreamhost.com/VPS#httpd.conf

    They just migrated a datacenter and a couple of quirks have popped up. This may be one!

    Was this working before we moved you? If so, ask support to change it back for you :)

  4. Gabe462
    Member
    Posted 1 year ago #

    It was working for a year or two! I've opened a support ticket.

    The strangest thing is that on Tuesday, around 10 users disappeared from wp_users. Is there any way that could be related?

  5. Gabe462
    Member
    Posted 1 year ago #

    The last DH rep I talked to insisted that I could set AllowOverride in .htaccess

    adding
    <Directory />
    AllowOverride Options
    </Directory>

    gives me 500 internal server error. Is my syntax incorrect? Is this even going to work?

  6. Ipstenu-DH
    DreamHost Rep
    Posted 1 year ago #

    Maybe... Try this?

    <Directory /home/myname/mydomain.com>
    AllowOverride Options All
    </Directory>

    The strangest thing is that on Tuesday, around 10 users disappeared from wp_users. Is there any way that could be related?

    It's possible, but they sound like coincidence. Kind of like the 'everything that can go wrong, will at the same time...'

  7. Gabe462
    Member
    Posted 1 year ago #

    That didn't work.

    BUT I GOT IT!
    I thought...
    why might this URL be not working?
    http://samadhi.gabeherbert.com/wp-includes/ms-files.php?file=2012/11/rainbowcake-125x125.jpg

    then noticed the .htaccess file that existed in wp-include:

    <Files *.php>
    deny from all
    </Files>
    <Files wp-tinymce.php>
    allow from all
    </Files>

    *facepalm*

    I'm pretty sure that came from Sucuri's "one-click hardening". They seem smarter than that. What's going on here?

  8. Switching hats, since yu don't need my DH self for this one ;)

    <Files *.php>
    deny from all
    </Files>

    That makes no sense at all, and I doubt sucuri would do that since it says "No one can get to any PHP files! HAHHAHHAHHAHHAH!'

  9. Gabe462
    Member
    Posted 1 year ago #

    Confirmed that this came from the sucuri plugin!

    I've informed their support :p

Topic Closed

This topic has been closed to new replies.

About this Topic