Timthumb在上传后无法显示图像

jOp*_*cic 5 wordpress wordpress-plugin timthumb

我正在使用名为User Avatar的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 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
Run Code Online (Sandbox Code Playgroud)

我认为这是一个服务器错误或配置错误,一切都被上传到文件夹uploads,然后进入avatars子文件夹,其中有0777权限,文件夹1也有0777.

Insinde,有两个cachetemp文件夹,都有0777权限.GD Image Lib已在服务器上启用.

小智 10

查看你的timthumb-config.php,检查是否FILE_CACHE_DIRECTORY设置了你认为的目录.

你也可以删除tim拇指缓存目录中的现有index.html文件,因为tim拇指会自动创建它(为了以防万一,先备份它)

您可能还需要检查配置文件,以查看是否MEMORY_LIMIT为您的特定图像设置了足够高的值.

您还应检查缓存文件夹是否由Web服务器拥有,而不是由您拥有.

其他疑难解答帮助:http://www.binarymoon.co.uk/2010/11/timthumb-hints-tips/

  • 我删除了index.html和.touch文件,但它确实有效.哦,我的上帝.谢谢你的回答! (4认同)