WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Relative Image Paths broken after 3.1.1 Upgrade (4 posts)

  1. noizangel
    Member
    Posted 3 years ago #

    Another upgrade issue. :(

    I upgraded to 3.1.1 last night and saw that all images on index.php were not displaying. My theme, Arthemia, uses an image resizer (Tim Thumb - http://code.google.com/p/timthumb/) that has not caused issues until now. I disabled plugins for both the update and afterward to try to correct the problem and it has not helped.

    Through looking at the generated code, it looks like the issue is the img src links are being generated with two // for the path like below:

    <img src="http://www.cultureaddicthistorynerd.com/wordpress/wp-content/themes/arthemia/scripts/timthumb.php?src=//wp-content/uploads/2011/03/2539062283_39ef7c486e_z.jpg&w=300&h=275&zc=1&q=100">

    However, when I edited index.php to remove the / before the src in the code, the image link ended up with no slash at all, like:

    <img src="http://www.cultureaddicthistorynerd.com/wordpress/wp-content/themes/arthemia/scripts/timthumb.php?src=wp-content/uploads/2011/03/2539062283_39ef7c486e_z.jpg&w=300&h=275&zc=1&q=100">

    Any ideas would be welcome; so far, everything else seems ok.

    My site is http://www.cultureaddicthistorynerd.com/

  2. You could try contacting the TimThumb developer to see if he can reproduce the issue: http://www.binarymoon.co.uk/projects/timthumb/

  3. _stephanie_
    Member
    Posted 3 years ago #

    Hey noizangel,

    I see your images are showing now. Could you tell me how you got timthumb.php working properly again?

  4. noizangel
    Member
    Posted 3 years ago #

    Apologies for not updating this earlier. Two fixes, the second of which I suspect is the actual fix:

    1. Upgraded to the newest version of Arthemia Free: http://colorlabsproject.com/themes/arthemia-free/

    2. In looking at posts and code, I noticed that posts with a featured image set (in addition to the custom 'Image' field timthumb.php had required in the earlier Arthemia) were both showing the image and generating proper slashes, not 2D% (I think) in their place.

    So, basically, go back and set featured images on your posts and see if that gets them generating properly. If not, maybe switch to the new theme.

Topic Closed

This topic has been closed to new replies.

About this Topic