Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    That’s what’s supposed to happen.

    It’s also here: http://groups.wdm.org.uk/cambridge/files/2011/04/Barclays2769-150×150.jpg by the way, not http://groups.wdm.org.uk/files/2011/04/Barclays2769-150×150.jpg

    The magic is that WordPress looks for the term ‘files’ in there, via a .htaccess rule, and says ‘Aha! Cambridge files!’ It’s complicated, but it works.

    Anyway, he needs to fix the image calls on the home page from http://groups.wdm.org.uk/files/2011/04/Barclays2769-150×150.jpg to http://groups.wdm.org.uk/cambridge/files/2011/04/Barclays2769-150×150.jpg

    Thread Starter eatanicecream

    (@eatanicecream)

    Not sure if I explained myself very well, sorry!

    The problem is that the user uploads the images to the correct folder /cambridge/files/…, which works fine from the actual blog post (http://groups.wdm.org.uk/cambridge/2011/04/30/barclays-protest-28-april). So far so good.

    However, for some reason, when the blog post is viewed from the homepage (http://groups.wdm.org.uk/cambridge), WordPress looks for the images in a different folder (that they have not been uploaded to): http://groups.wdm.org.uk/files/2011/04/Barclays2769-150×150.jpg

    So presumably the problem is that the .httaccess redirect that you mention is not working properly? Do you know how it is supposed to work?

    when the blog post is viewed from the homepage

    So… how’re you getting the blogposts to the homepage? Sitewide tags?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I would look at the theme first. I said he needs to fix the image calls on the front page for a reason. THIS:

    <div class="postbg"><div class="wp-caption alignright" style="width: 150px"><a href="../files/2011/04/Barclays-2773.jpg"><img src="../files/2011/04/Barclays-2773-150x150.jpg" alt="" width="150" height="150" /></a><p class="wp-caption-text">Can you see how appalling the food prices are?</p></div>

    is your problem. Right there it’s hard coding in the ../files/… stuff. It’s SAYING ‘Go back one folder from Cambridge, and THEN start with the images’ which is wrong. So however THAT is being done, THAT is what you need to fix.

    Short answer: It’s your theme.

    Thread Starter eatanicecream

    (@eatanicecream)

    @andrea When I say ‘homepage’ I mean the homepage of that particular blog. In this case http://groups.wdm.org.uk/cambridge. The blog posts appear on the homepage because the loop is in index.php. I’m not sure I understand your question correctly.

    @ipstenu I’ve got about 50 blogs with the same theme running off this one install,. This is the first time this has come up. Glasgow, for example (http://groups.wdm.org.uk/glasgow), does not have this problem – the images are linked to the right place from the homepage – http://groups.wdm.org.uk/glasgow/files&#8230;

    The question is, how come this particular blog has this problem? When I go to edit or view the post the img url is right, but not when viewed from http://groups.wdm.org.uk/cambridge.

    Thanks guys.

    When I say ‘homepage’ I mean the homepage of that particular blog. In this case http://groups.wdm.org.uk/cambridge. The blog posts appear on the homepage because the loop is in index.php. I’m not sure I understand your question correctly.

    Because usually people asking this question have the home page of the entire network pulling in all posts from all blogs. 🙂 It’s a consistent issue & crops up often.

    So on *single sites* your images arent’ working.

    Does the them on that site use timthumb to make thumbnails?

    Thread Starter eatanicecream

    (@eatanicecream)

    Ok, cool, I get you.

    Yes, now that you say it I remember that the theme is based on a WPGPL.com theme which I think had thimbthumb and has a custom header upload function. I don’t use thimbthumb, however.

    I can’t find the thimbthumb.php script though, I probably deleted it when I customised the theme.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    The question is, how come this particular blog has this problem? When I go to edit or view the post the img url is right, but not when viewed from http://groups.wdm.org.uk/cambridge.

    Check the source of the THEME, and how ITS calling the images. If the post content is correct, and pointing to where it should be, then that’s what’s left.

    TimThumb has issues with MultiSite, I think…

    I can’t find the thimbthumb.php script though, I probably deleted it when I customised the theme.

    If the theme WAS using timthumb to generate thumbnails, and you deleted the files and did not change how the thumbnails were called, then yeah…. that’s why.

    Go look at the original theme before you modified it.

    Thread Starter eatanicecream

    (@eatanicecream)

    Ah, I see! Fixed it, thank you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Images not showing on blog homepage’ is closed to new replies.