A TimThumb error has occured to show external images link

Posted October 26, 2015 5.8k views

getting error when I use timthumb.php to show the images..

A TimThumb error has occured

The following error(s) occured:
You may not fetch images from that site. To enable this site in timthumb, you can either add it to $ALLOWEDSITES and set ALLOWEXTERNAL=true. Or you can set ALLOWALLEXTERNAL_SITES=true, depending on your security needs.

TimThumb version : 2.8.10

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Find this string in your timthumb.php:

// external domains that are allowed to be displayed on your website
$allowedSites = array (

And add the site you are trying to display images from to the list, then save and relaunch.