WordPress.org

Ready to get started?Download WordPress

Forums

Contextual Related Posts
[resolved] Timthumb not working... sometimes (6 posts)

  1. boscoiscool
    Member
    Posted 12 months ago #

    I upgraded to 1.8.9.1 this morning and am noticing that some of my widget thumbnails aren't appearing. I've taken a screenshot of an example: http://snag.gy/qC4Mu.jpg

    I can't figure out why some images work and others don't. I've looked at the sources of images that work and don't work - I've pasted the sources below:

    Peach Amaretto Source - Not Working
    <img src="http://noshon.it/wp-content/plugins/contextual-related-posts/timthumb/timthumb.php?src=http%3A%2F%2Fnoshonit.s3.amazonaws.com%2Fwp-content%2Fuploads%2F2013-07-14-r-peach-amaretto-tart-125x125.jpg&w=90&h=90&zc=1&q=95" alt="Peach Amaretto Tart (Gluten Free)" title="Peach Amaretto Tart (Gluten Free)" width="90" height="90" border="0" class="crp_thumb">

    Wild Berry Bars - Working
    <img alt="Wild Berry Cheesecake Bars" title="Wild Berry Cheesecake Bars" width="90" height="90" border="0" class="crp_thumb" src="http://noshon.it/wp-content/plugins/contextual-related-posts/timthumb/90x90xtimthumb.php,qsrc=http,P3A,P2F,P2Fnoshonit.s3.amazonaws.com,P2Fwp-content,P2Fuploads,P2F2013-05-31-r-wild-berry-cheesecake-bars-125x125.jpg,aw=90,ah=90,azc=1,aq=95.pagespeed.ic.4XeI5xSP8q.webp">

    The consistent difference I notice is that images that are working have the source /timthumb/90x90xtimthumb.php/... or /timthumb/xtimthumb.php, where as images that aren't working have the path /timthumb/timthumb.php/...

    I've tried recreating the index and clearing the cache but nothing is working. I downgraded to 1.8.8, which was working, but now timthumb isn't working there either, so I've turned off timthumb.

    Do you have any idea what could be causing the issue?

    Awesome plugin! Thanks a lot for your help.

    -Alex

    http://wordpress.org/plugins/contextual-related-posts/

  2. Ajay
    Member
    Plugin Author

    Posted 12 months ago #

    Alex,

    It's really strange what you've pasted above. I would have expected the /thumb.php would work and the /90x90xthumb.php to not work.

    Your site is: http://noshon.it/ ?

  3. boscoiscool
    Member
    Posted 11 months ago #

    Ajay,

    Sorry for the delayed response - I've been out of town a couple days. Yeah, my site is http://noshon.it but right now I have timthumb disabled. I enabled it briefly this morning to confirm my previous findings and took a couple screenshots.

    This is a working photo that uses xtimthumb.php:

    http://snag.gy/bANi9.jpg

    This is a broken photo that uses timthumb.php:

    http://snag.gy/6lKs3.jpg

    This is the same recipe/image as the broken photo above. It uses timthumb from the WordPress Popular Posts plugin and is working. It uses 90x90 before timthumb:

    http://snag.gy/Mwur4.jpg

    Let me know if you want me to test anything out or need more info from me.

    Thanks a lot with your help on this!

    -Alex

  4. Ajay
    Member
    Plugin Author

    Posted 11 months ago #

    I checked this out:

    I followed the Image link:

    http://noshon.it/wp-content/plugins/contextual-related-posts/timthumb/timthumb.php?src=http%3A%2F%2Fnoshonit.s3.amazonaws.com%2Fwp-content%2Fuploads%2F2013-07-14-r-peach-amaretto-tart-125x125.jpg&w=90&h=90&zc=1&q=95

    It gives this error:

    You may not fetch images from that site. To enable this site in timthumb, you can either add it to $ALLOWED_SITES and set ALLOW_EXTERNAL=true. Or you can set ALLOW_ALL_EXTERNAL_SITES=true, depending on your security needs.

    This is a security restriction in timthumb. I will add s3.amazonaws.com as one of the additional sites allowed to fetch data from in the next version of the plugin.

    For now you can edit timthumb.php in the plugin folder and after line 138 add the additional item to the array

    s3.amazonaws.com,
  5. boscoiscool
    Member
    Posted 11 months ago #

    Ajay,

    Thanks a lot. I edited timthumb and it's working. Thanks for helping me figure it out and for adding it s3.amazonaws.com into future releases.

    Unprompted this morning, my co-founder (who deals with the site content) said "That plugin that gives suggestions for related posts is pretty awesome!"

    Thanks a lot for making this!

    -Alex

  6. Ajay
    Member
    Plugin Author

    Posted 11 months ago #

    Alex, thank you! Glad to know the plugin has been working well for you. Do convey my regards to your co-founder as well.

Reply

You must log in to post.

About this Plugin

About this Topic