logo

$8
Images in post not viewable from wp-content/uploads

The url of my blog is http://interactiveblend.com/blog/. 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 http:///blog/wp-content/themes/minimalism/style.css instead of http://interactiveblend.com/blog/wp-content/themes/minimalism/style.css (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 wp-content/uploads folder. Why isn't my site "finding" the blog URL (http://interactiveblend.com/blog)?

attachment image View Attachment

Louis Gubitosi | 08/18/10 at 5:41pm | Edit


(5) Possible Answers Submitted...

  • avatar
    Last edited:
    08/18/10
    5:55pm
    Mike Truese says:

    Did you, perhaps accidentally, delete or change the blog url in the general settings page?

    • 08/18/10 5:58pm

      Louis Gubitosi says:

      no, the blog URL still says http://interactiveblend.com/blog I haven't touched anything...

      Attached Image

  • avatar
    Last edited:
    08/18/10
    5:55pm
    Baki Goxhaj says:

    Check you setting under Settings -> General; you might be pointing your blog url on the wrong place.

  • avatar
    Last edited:
    08/19/10
    10:42am
    Ramsey says:

    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.

    • 08/18/10 9:01pm

      Louis Gubitosi says:

      # 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

    • 08/18/10 9:30pm

      Louis Gubitosi says:

      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

    • 08/18/10 9:30pm

      Ramsey says:

      --- 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.

    • 08/18/10 9:36pm

      Ramsey says:

      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.

    • 08/18/10 9:43pm

      Louis Gubitosi says:

      I followed your steps and the photos still don't show up...

    • 08/18/10 9:57pm

      Ramsey says:

      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?

    • 08/18/10 10:00pm

      Louis Gubitosi says:

      same issue here - http://wordpress.org/support/topic/big-problem-with-every-theme-after-update?replies=1

    • 08/18/10 10:00pm

      Ramsey says:

      It may be in your actual theme file too. I see several references in your source code to http:///blog as well.

    • 08/18/10 10:09pm

      Ramsey says:

      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.

    • 08/19/10 10:40am

      Ramsey says:

      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.

    • 08/19/10 11:00am

      Louis Gubitosi says:

      I decided to keep the plugin... It works when i disable the "Content Delivery Network" option. Thanks again!

  • avatar
    Last edited:
    08/19/10
    1:36am
    Oleg Butuzov says:

    so problem solved right? what was wrong - just intresting. some wp issues or htaccess?

    Previous versions of this answer: 08/19/10 at 1:36am

    • 08/19/10 8:49am

      Louis Gubitosi says:

      not solved yet... Ramsey is taking a closer look.

  • avatar
    Last edited:
    08/19/10
    3:20am
    Nilesh shiragave says:

    Did you updated WP_HOME or WP_SITEURL in your wp-config.php file.

    Or if accidently some where it is changed you can add following code to your wp-config.php

    to change the WP_HOME and WP_SITEURL

    define('WP_HOME','http://interactiveblend.com/blog/');
    define('WP_SITEURL','http://interactiveblend.com/blog/');

    Previous versions of this answer: 08/19/10 at 3:20am

    • 08/19/10 8:50am

      Louis Gubitosi says:

      right now they both say http://interactiveblend.com/blog/ but this is the URL for the WordPress, not the home URL.

    • 08/19/10 9:09am

      Nilesh shiragave says:

      Can you add this line

      define('WP_DEBUG', true);

      in your wp-config.php file

      you can find wp-config.php at http://interactiveblend.com/blog/ inside this folder.

      just add that line and let me know.


    • 08/19/10 9:10am

      Nilesh shiragave says:

      just add this line in your wp-config.php

      define('WP_DEBUG', true);

      as i said in my previous answer. I think there is problem with the bloginfo() function.

    • 08/19/10 9:15am

      Louis Gubitosi says:

      ok I added it: http://interactiveblend.com/blog/

    • 08/19/10 9:51am

      Nilesh shiragave says:

      Can you give me your blog wp-admin login details. if you want to hide them then you can contact me through my profile.

      http://wpquestions.com/user/profile/id/1614

This question has expired.





Current status of this question: Completed