The solution to the problem of "A TimThumb error has occurred" in the WordPress thumbnail

2 minutes
three hundred and seventy-three
zero

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.

This article is written by: Chief Editor Published on Software Development of Little Turkey , please indicate the source for reprinting: //hongchengtech.cn/blog/162.html
Kuke_WP editor
author

Related recommendations

One year ago (2023-11-11)

How does WordPress set WeChat login of social login interface configuration

WeChat login is a built-in function of our Cool Theme Themer framework. Through this function, users can directly log in and register through their microblog account, reducing the registration and login process. At present, the theme supports WeChat public account login (mainly for WeChat built-in browser on mobile end) and WeChat open platform login (mainly for PC end). According to the rules of WeChat, there are currently two platforms
four hundred and eighty-one
zero
One year ago (2023-11-09)

How to turn off the automatic generation of image thumbnail function of wordpress

Often, when writing an article, we will insert a picture, or upload a picture as a feature picture. Careful friends may find that there are three sizes of images in the upload folder. Why is this? In fact, it is automatically generated by WordPress when you upload pictures. The most direct disadvantage of doing this is to occupy
three hundred and eighty-seven
zero
One year ago (2023-11-07)

How to use the secondary domain name of wordpress website to store media library pictures

The reason for this article is mainly because the cool theme editor has made some WP stations inconvenient to use Tencent Cloud COS to store special fee soft coins and move to download, so today let me teach you how to set your own domain name to store media library pictures! If you want to better manage the pictures of WordPress website, you can customize and modify them
five hundred and four
zero
One year ago (2023-11-07)

How to modify the default login registration page of WordPress?

Many themes Baba customers will find that the login registration page presented by the website is different from that of the demo website after installing the theme. So what should we do? In fact, it is very simple. You only need to install a free login and registration plug-in. Solution: Go to the WP background - Plug in - Install Plug in - Search Plug in: wechat social
three hundred and twenty-eight
zero
One year ago (2023-11-07)

WordPress performance optimization: let your WP website fly!

Recently, many users have found that the official website and demo website of Cool Theme have a faster access speed. Most of the time, they click it every second. They would like to know how we do it. In fact, Cool Theme has also experienced a difficult process of slow website speed and insufficient server resources. Later, a complete set of Wo
three hundred and sixty-five
zero
One year ago (2023-11-07)

Cool Theme Launches One click Import WordPress Theme Demo Data Function

Recently, we added a very practical function to all WordPress themes of Cool Theme: one click import of demo data. This function is very suitable for newly installed WordPress websites. After importing data, we can set the website as our demo website, which is very convenient for learning and understanding various operations of WordPress and themes
three hundred and five
zero

comment

0 people have participated in the review

Scan code to add WeChat

contact us

WeChat: Kuzhuti
Online consultation: