The thumbnail appears A TimThumb error has occuredWordPress solution
Nowadays, many sites like to use Timthumb to automatically crop thumbnails, but it often fails to occured. The error will be “A timthumb error has occured”.
Now this situation is generally due to the reference of the external link image (that is, not their own site image) caused, the solution is also very simple, just need to add the corresponding external link domain name to the $ALLOWED_SITES in the timthumb. PHP file in the following format. The details are as follows:
if(! isset($ALLOWED_SITES)){
$ALLOWED_SITES = array (
'www.zmki.cn',
'zmki.cn',
'a-oss.zmki.cn',
'pic.licaibiji.com ',
);
}
The occured occured error of A TimThumb has occured not only because of the occured image, but also because of the occured image of the site. So the safest thing to do is to add the domain name of your site to $ALLOWED_SITES in the TimThumb. PHP file according to the above method.
If you add the external link address and your own domain address, you still cannot display the thumbnail properly
If you add the outer chain after the address and domain name or not normal display thumbnails, then it may be to store the thumbnail cache folder cache (PS: direct open can now use the theme folder is generally see the cache folder, Z – Blog theme is inside the theme folder template folder) without written permission. All we need to do is set the cache folder permissions to 777. Generally through the FTP link after the right folder can modify the permissions, or log in the corresponding server or virtual host file manager to set.
For those who don’t know how to use the Pagoda panel to build wordpress sites, take a look at the previous section:
Tutorial pagoda panel (1) based on the cloud server build pagodas panels most complete tutorial, a pagoda tutorial (2) add a WordPress site detailed graphic tutorials pagoda pagoda panel panel tutorial (3) based on the pagoda panels successfully configured web site SSL security certificate pagoda tutorial (4) the WordPress site backup and restore (pagoda panel)
The original address: http://tencent.yundashi168.com/683.html
Read More:
- PHP uses timthumb to generate thumbnails
- C language — to solve the problem of program flashback when programming (in VS)
- This program cannot be started because vcruntime140 is missing from your computer_ 1.dll。 Try to install the program again to solve the problem.
- To solve the problem of flashback of calling class function of glutsolidcube() in Win32 program
- WordPress: How to Remove the directory name in the link
- How to solve the problem that the output results of C + + program written in VS2010 flash by
- wordpress :This block has encountered an error and cannot be previewed
- A JavaScript error occured in the main process
- A strange problem in compiling OpenGL program
- Solve the problem that the interface between C # WinForm program and Oracle doesn’t respond for a long time
- Python program uses OS. System () method to call exe program, resulting in no response of main program process
- Solve the problem that better scroll lateral scrolling has no effect
- A solution to the problem of “straight ‘\ 357’ in program” when compiling GCC
- [OpenGL] cannot start this program because the computer is missing glut32.dll. Try to re install the program to fix this problem. …
- Solve the problem of VC 6.0 fatal error C1033: cannot open program database’.\debug\vc60.pdb’
- Install apache2.4 on windows to solve the problem of the requested operation has failed
- Solve the problem that TeamViewer software prompts that the trial period has expired and cannot be operated remotely
- The problem of failed to create process occurs in pyinstaller package program of Python
- Solve the problem of using in tensoft 2. X tf.contrib.slim No module named appears in the package: tensorflow.contrib problem
- Solve the problem of attributeerror: module ‘SciPy’ has no attribute ‘Stats’