WordPress thumbnail Appears“ A TimThumb error has occured "Solution to error reporting
Partial use timthumb To implement thumbnail The website with the auto clipping function of will encounter thumbnail The error code is“ A TimThumb error has occured ”
1、 Because it quoted Outer chain picture As a result, the solution is simple. You only need to add the external domain name corresponding to the image to the timthumb $ALLOWED_SITES in the. php file. The details are as follows:
if(! isset($ALLOWED_SITES)){
$ALLOWED_SITES = array (
‘www.zmki.cn’,
‘zmki.cn’,
‘a-oss.zmki.cn’,
‘pic.licaibiji.com ‘,
);
}
2、 Local pictures of the website may also appear A TimThumb error has occured Wrong, so the safest way is to add the domain name of your own site to the timthumb . php file.
If the external chain address and your own domain name address are added, they still cannot be displayed normally thumbnail , then it may be stored thumbnail The cache folder (PS: open the current theme folder directly and you can generally see the cache folder. The Z-Blog theme is in the template folder in the theme folder) does not have write permission. We just need to set the permissions of the cache folder to 777. Generally, you can modify permissions by right clicking the folder after FTP link, or log in to the file manager of the corresponding server or virtual host.