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

  1. boscoiscool
    Posted 2 years ago #

    I upgraded to 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.



  2. Ajay
    Plugin Author

    Posted 2 years ago #


    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
    Posted 2 years ago #


    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:


    This is a broken photo that uses timthumb.php:


    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:


    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!


  4. Ajay
    Plugin Author

    Posted 2 years ago #

    I checked this out:

    I followed the Image link:


    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

  5. boscoiscool
    Posted 2 years ago #


    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!


  6. Ajay
    Plugin Author

    Posted 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contextual Related Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic