外链图片缩略图不显示解决方法 A TimThumb error has occured

痕风 2020年7月13日00:56:45
评论
371

使用 timthumb 可以轻松实现缩略图自动裁剪的功能,但是由于某些原因,使用 timthumb 裁剪图片经常会出现缩略图无法正常显示的现象,错误提示为“A TimThumb error has occured”,遇到这种问题究竟该怎么解决呢?

错误提示

A TimThumb error has occured
The following error(s) occured:
Could not find the internal image you specified.
Query String : src=https://cdn.XXX.com/2019/06/01/V1JCX8.jpg&w=280&h=210&a=&zc=1
TimThumb version : 2.8.14

解决方法

1、编辑 timthumb.php 文件,将 ALLOW_ALL_EXTERNAL_SITES 参数的值设置为 true。

2、删除缩略图缓存文件夹,然后重新生成。

3、将缩略图缓存文件夹权限设置为 777。

4、清除浏览器缓存。

结束语

外链缩略图无法正常显示通常是因为更换了域名导致的,出现这个问题的时候,一般只需要上述四步就可以解决问题。大家如果有其他更好的意见或建议,欢迎在下方评论处留言。

weinxin
痕风的起点
专注于互联网资讯、中央空调、Windows、wordpress、建站技术、软件应用等相关网络资源的分享。
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: