Wordpress Timthumb可以';t在其后面显示图像';s上传
我正在使用名为用户化身的Wordpress插件,它使用Timthumb进行图像显示。当我打开页面显示图像时,控制台中会出现错误500,当我在“新建”选项卡中使用该图像链接时,会出现以下错误:Wordpress Timthumb可以';t在其后面显示图像';s上传,wordpress,timthumb,Wordpress,Timthumb,我正在使用名为用户化身的Wordpress插件,它使用Timthumb进行图像显示。当我打开页面显示图像时,控制台中会出现错误500,当我在“新建”选项卡中使用该图像链接时,会出现以下错误: A TimThumb error has occured The following error(s) occured: Could not create the index.html file - to fix this create an empty file named index.html fil
A TimThumb error has occured
The following error(s) occured:
Could not create the index.html file - to fix this create an empty file named index.html file in the cache directory.
Could not create cache clean timestamp file.
Query String : src=http://my.domain.com/wp-content/uploads/avatars/1/1358504649-bpfull.jpg&w=150&id=1&random=1358504649
TimThumb version : 2.8.10
我认为这是服务器错误或配置错误,所有内容都被上传到文件夹uploads
,然后进入avatars
子文件夹,该子文件夹具有0777
权限,文件夹1
也具有0777
在索引中,有缓存
和temp
文件夹,它们都具有0777
权限。
GD Image Lib已在服务器上启用。查看timtumb-config.php,检查
文件\u CACHE\u目录是否设置为您认为的目录
您还可以删除tim thumb缓存目录中现有的index.html文件,因为tim thumb将自动创建该文件(为了以防万一,请先将其备份到某个位置)
您可能还需要检查配置文件,查看内存限制是否设置得足够高,以适合您的特定图像
您还应该检查缓存文件夹是否由Web服务器而不是您所有
这里的其他故障排除帮助:正如@jopacic所说。对我同样有效的是:
- 将“缓存”目录权限更改为777
- 正在删除“缓存”目录中的index.html文件
试试看,它应该可以工作了我删除了index.html和那个.touch文件,它就工作了。哦,我的上帝。谢谢你的回答!乔帕西克,同样的事情对我也起了作用。index.html和touchfile不属于正确的用户。这始终是一个权限问题…注意:当mod je摄像头内的缓存文件夹具有644或755时,也会发生此问题。设置为777