Stay Hungry, Stay Foolish

wordpress timthumb无法显示缩略图的解决办法

wordpress使用缩略图工具timthumb.php缩略图不显示,错误信息中包含如下内容

Permission denied in  ......\timthumb.php on line 811
A TimThumb error has occured
The following error(s) occured:
serveCacheFile called in timthumb but we couldn't find the cached file.
Query String : src=http://www.example.com/wp-content/themes/XHBlog/img/pic/3.jpg&h=123&w=200&q=90&zc=1&ct=1
TimThumb version : 2.8.14

这种情况是由于主题目录下是cache文件夹账户internet... 就是用户名以IUSR开头的那个账户权限不足引起的。

将其权限改成777就行,在windows中777相当于如下设置吧(如有不正确的请指正):

你可以删除主题目录下的cache文件夹,刷新网页他会重建一个cache文件夹,然后将其权限改成上图的样子就可以了。

喜欢 (6)
取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦


Warning: Use of undefined constant PRC - assumed 'PRC' (this will throw an Error in a future version of PHP) in C:\inetpub\wordpress\wp-content\themes\XHBlog\comments.php on line 17
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址