完美解决wordpress主题中timthumb.php不显示缩略图问题-WordPress主题

摘要:很多客户在使用大挖wordpress主题时都会遇到一个使用问题中就是不显示缩略图,大挖都会回答说通过ftp修改一下主题内…

很多客户在使用大挖wordpress主题时都会遇到一个使用问题中就是不显示缩略图,大挖都会回答说通过ftp修改一下主题内的cache及timthumb.php的权限为777,但是个别的客户还是会出现没有正常生成的情况,这个是由于个别服务器环境配置问题导航的,通常是使用SAE和BAE,SAE还好说,已经有朋友写出了一个SAE专用的timthumb.php,但BAE一直没有解决,没有关系,今天大挖教你解决这个问题,完美适配几乎所有主机。

首先我们找到wordpress主题文件夹中的timthumb.php文件,查找下面函数

我们把语句中包含了一个缓存文件夹./cache给删除掉,

这样就可以正常显示wordpress缩略图了,是不是超级简单

来源:http://www.wazhuti.com/2930.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_12935.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?