WordPress.org

Ready to get started?Download WordPress

Forums

Images not showing up. Timthumb issue? (6 posts)

  1. lennerose
    Member
    Posted 1 year ago #

    Hi, I recently was given a job to fix something I'm really not sure about. We used to ask our host to update our website but they recently gave us freedom to edit it ourselves. So here's the problem, I uploaded an image in the advertisement settings using the main settings tab. the image won't show up in the live website. It will only show a broken image with a link to just http. when I manually open the link it says:

    A TimThumb error has occured

    The following error(s) occured:
    Could not find the internal image you specified.

    Query String : src=.com/wp-content/uploads/2011/05/greenads1jpg.jpg&h=150&w=150&zc=1
    TimThumb version : 2.8.6

    and then the errors in the console tab shows this:
    http://www.philippinegreenpages.com/wp-content/themes/PhilGreenPages/include/timthumb.php?src=.com/wp-content/uploads/2011/05/greenads1jpg.jpg&h=150&w=150&zc=1
    Failed to load resource: the server responded with a status of 400 (Bad Request)

    How to fix this?? :( help

  2. michael.mariart
    Member
    Posted 1 year ago #

    Check that the image file that your script is refering to is actually on the server. From the looks of that error message the origianl image file doesn't exist, so the script is throwing an error to tell you.

    And looking at the error, it's obvious (to me at least). The file uses the file that's specified after "src=" in the URL, so in your case that is

    .com/wp-content/uploads/2011/05/greenads1jpg.jpg&h=150&w=150&zc=1

    Notice that you're missing every prt of the domain name before .com there?

    All that you need to do is set that link to use your full domain name and it works fine. I've tested this and can tell you that it's workng the way that it should.

  3. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Better not to use TimThumb as a number of problems have been reported: http://code.google.com/p/timthumb/issues/list

    Additionally some hosts are reportedly blocking/ disabling sites with this script.

  4. michael.mariart
    Member
    Posted 1 year ago #

    I do agree with Krishna. TimThumb is one of the worst scripts that's beeen exploited in a long time, and even the new versions are still getting hacked. I've had to remove it from 4 our my sites here becaues of that.

    The problem is that a lot of themes and plugins still use it because they haen't found out a way to do it themselves, or they are to lazy to figure it out by themselves. In some cases it's easy to remove it from a theme, but in others it's a nightmare so even though it should be done, it's still something that may be very difficult for a lot of users.

  5. lennerose
    Member
    Posted 1 year ago #

    thank you for your replies! sorry for the totally newbie question, I'm not really that advanced in scripts.

    I did realize that timthumb is quite a trouble to have around. I might just remove it, but I don't know how to do that XD

  6. angsolution
    Member
    Posted 1 year ago #

    @lennerose
    I presume you are running a multisite wordpress install.

    I had the same problem with one of my themes.

    I don't think you can easily removed timthumb without breaking your theme...

Topic Closed

This topic has been closed to new replies.

About this Topic