
wordpress A TimThumb error has occured的解决方法
wordpress缩略图出现了下面的错误
解决方法,编辑主题目录下的timthumb.php文件,添加以下代码即可
1
2
3
4
5
6
7
8
A TimThumb error has occured
The following error(s) occured:
An error occured fetching image.
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.
1
2
3
4
5
6
7
8
//define ('VERSION', '2.8.14');
if(! isset($ALLOWED_SITES)){
$ALLOWED_SITES = array (
'youdomace.com',
'cdn.youdomace.com',
'other.domcae.com',
);
}
保持即可
💘 相关文章
- Openlitespeed wordpress伪静态出现404错误解决方法
- mysqldump error 1194的解決方法
- wordpress压缩前端网页代码
- wordpress一些優化代碼,實則可用,收藏版
- Starting MySQL... ERROR! ……quit without updating PID file (/opt/mysql/data/mysql.pid)解決方法
- mysql error 1364 Field doesn't have a default values的解決方法
- caution: filename not matched:解决方法
- php Parse error: syntax error, unexpected ';', expecting ',' or ')'的解决方法
- PicGo配置兼容亚马逊s3的digitalocean space出現Error Stack Begin的解決方法
- mac系统Error: The current working directory doesn't exist, cannot proceed.的解决方法