
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错误解决方法
- wordpress压缩前端网页代码
- pve error before or during data restore, some or all disks were not completely restored的解决方法
- 宝塔面板乱码的解决方法
- supervisor ERROR (spawn error)的解决方法
- mysqldump error 1194的解決方法
- 解决WordPress经典编辑器空白可视化功能不可用的方法
- 使用wp-cli来管理WordPress网站
- wordpress一些優化代碼,實則可用,收藏版
- Error(128): Key has been revoked trying to mount.cifs的解决方法