The url of my blog is [[LINK href="http://interactiveblend.com/blog/"]]http://interactiveblend.com/blog/[[/LINK]]. I'm not sure what happened, but yesterday I looked and none of the styles were working for any theme. The plug-ins and pages all work, but the css is broken. I viewed the source, and the style sheet is pointing to <strong>http:///blog</strong>/wp-content/themes/minimalism/style.css instead of [[LINK href="http://interactiveblend.com/blog/wp-content/themes/minimalism/style.css"]]http://interactiveblend.com/blog/wp-content/themes/minimalism/style.css[[/LINK]] (working).
I changed the path from:
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
to
<style type="text/css" media="screen">@import url( http://interactiveblend.com/blog/wp-content/themes/minimalism/style.css );</style>
and the styles started working, but now I can't view images in my post from the <strong>wp-content/uploads</strong> folder. Why isn't my site "finding" the blog URL ([[LINK href="http://interactiveblend.com/blog"]]http://interactiveblend.com/blog[[/LINK]])?
Ramsey answers:
What does your .htaccess say? Sometimes I've found when adding plugins or other things it can overwrite the default settings in the .htaccess for pretty URLs and it can totally mess things up.
Louis Gubitosi comments:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress
Louis Gubitosi comments:
I was using /blog but something added http:// in front of that to make http:///blog
working image: http://interactiveblend.com/blog/wp-content/uploads/2010/02/sIFR2.png
When I make the img src the above url, I can see the image in the wysiwyg but when i publish the post, the image doesn't show up. It thinks its an absolute url
Ramsey comments:
--- RewriteRule . /blog/index.php [L] --- The period before the /blog is messing you up I believe. Check in your WP settings for your Permalinks. Make sure you don't have /blog or anything else in the Optional sectino for category or tag base.
Ramsey comments:
Alternatively you can try and adding a period in the category base and see what that does. But I think it's got something to do with your htaccess. If you can, set your Permalinks back to standard Wordpress Default, and delete your htaccess file from your server (MAKE SURE TO BACKUP so you can restore if it doesn't work). Then test and see if it works, and if the photos work. If they do, you know it lies with the htaccess/permalinks.
Louis Gubitosi comments:
I followed your steps and the photos still don't show up...
Ramsey comments:
You've got a setting wrong somewhere. I can't figure out where or how. Your code is pointing all your images to "blog.com" somehow -- http://www.blog.com/wp-content/uploads/2010/02/sIFR7.png
Can you put the settings back to wordpress default and let me take a look?
Louis Gubitosi comments:
same issue here - http://wordpress.org/support/topic/big-problem-with-every-theme-after-update?replies=1
Ramsey comments:
It may be in your actual theme file too. I see several references in your source code to http:///blog as well.
Ramsey comments:
That's a very strange issue. I have upgraded several sites to the new 3.0 and 3.0.1 and have done so without any similar issues, so I can't seem to recreate it. I could possibly look closer if you would feel comfortable sharing your admin details, if that is allowed. I would of course report any findings back here for full disclosure.
Ramsey comments:
Well we officially figured it out.
We tried editing the Site URL and the WordPress URL to no avail.
We tried tweaking the htaccess and permalinks, still no go.
Finally started deactivating plugins and found out that it was the "W3 Total Cache" plugin causing the issue. Ultimately, by simply deactivating that plugin, we fixed the whole problem! I have left it up to the site owner on deciding to use it or not. He may be able to continue using it if he can "rebuild" the cache, but that's a decision he needs to make.
Louis Gubitosi comments:
I decided to keep the plugin... It works when i disable the "Content Delivery Network" option. Thanks again!
Mike Truese answers:
Did you, perhaps accidentally, delete or change the blog url in the general settings page?
Louis Gubitosi comments:
no, the blog URL still says http://interactiveblend.com/blog I haven't touched anything...