• 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:
    https://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

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

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

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

    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.

    Thread Starter lennerose

    (@lennerose)

    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

    @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…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Images not showing up. Timthumb issue?’ is closed to new replies.