
wordpress A TimThumb error has occured的解决方法
wordpress缩略图出现了下面的错误
解决方法,编辑主题目录下的timthumb.php文件,添加以下代码即可
1
2
3
4
5
6
7
8
9
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错误解决方法
- 使用wp-cli来管理WordPress网站
- ERROR: Could not install packages due to an OSError: Missing dependencies for SOCKS support.的解决方法
- Starting MySQL... ERROR! ……quit without updating PID file (/opt/mysql/data/mysql.pid)解決方法
- wordpress必备的代码神器插件-Code Snippets
- 解决WordPress经典编辑器空白可视化功能不可用的方法
- 设置WordPress的附件图片地址为二级域名或其它一级域名的方法
- nginx: [warn] "ssl_stapling" ignored, not supported error
- 宝塔面板乱码的解决方法
- 解决nginx反向代理验证码不显示的方法