wordpress提示 A TimThumb error has occured Need to add the picture outside the chain domain name!

2022年2月12日16:54:01 发表评论 92 次浏览

wordpress缩略图报错,提示如下:

A TimThumb error has occured

The following error(s) occured:

  • Need to add the picture outside the chain domain name!

导致这个的原因是因为新版的缩略图处理扩展 timthumb,一般这个文件在对应主题theme目录下,命名为 timthumb-config.php 找到这个文件,修改一处代码:

if(! defined('ALLOW_EXTERNAL') ) define ('ALLOW_EXTERNAL', true); // 改为“false”将禁止裁剪外链图片,true则放行
阿修罗

发表评论

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