WordPress 安装ripro日主题后设置外链图片不显示 You may not fetch images from that site. To enable this site in timthumb

博客上安装日主题后启用云存储加速图片发现图片不能加载,出现报错:

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 $ALLOWED_SITES and set ALLOW_EXTERNAL=true. Or you can set ALLOW_ALL_EXTERNAL_SITES=true, depending on your security needs.

 

出现上面这种情况进入服务器找到日主题目录下的timthumb.php文件,文件位置:网站根目录下/wp-content/themes/ripro/timthumb.php,找到打开把你图片域名添加上去就好了

posted @ 2022-01-27 08:31  meetrice  阅读(300)  评论(0编辑  收藏  举报