WP before is iis when everything is normal, after switching to nginx found that the thumbnail can not see, out can not, after opening the thumbnail.
Error message:
A TimThumb error has occured
Could not find the internal image you specified.
Query String : src= http://my-host.it/wp-content/files_ mf/1346848579prog_ no_ pic.png TimThumb version : 2.8.14
Problem solving
1. Cause of the problem
The original problem is that timthumb can’t find the image, that is to say, the path recognized by timthumb is different from the path of the image
2. Solutions
Find timthumb. PHP in the topic, open it, and use Ctrl + F to find it
Define (‘version ‘,’version number’)
Add a line before it
$_ SERVER[‘DOCUMENT_ Root ‘] =’path’
For example, my path is/var/www/
//$_ SERVER[‘DOCUMENT_ ROOT’] = ‘/var/www/’;
Because my server is win, so here is the address of win
$_ SERVER[‘DOCUMENT_ ROOT’] = ‘C:/XXX/wwwroot’;
After saving, go back to the website to refresh, and find that the long lost thumbnail has come out, and the problem has been solved
At this time, I really feel like I can see the sunshine through the dark clouds. I’ve been in the pit for four or five hours. Alas, I’m writing here. I hope I can help you too
Similar Posts:
- The solution of WordPress timthumb unable to display thumbnail
- Error 500 when opening the site configured by nginx
- Expected rbrace error encountered in DW
- [Solved] WordPress Error: Allowed memory size of 134217728 bytes exhausted
- Can’t use Subversion command line client: svn.
- 421 Home directory not available – aborting [How to Solve]
- GNS3 0.8.6 calculating idle pc values error: Failed to find a working Idle PC value. Can’t set up hypervisor on 127…
- javax.imageio.IIOException: Can’t read input file! 23436;”209151;
- [Solved] Error: No module factory available for dependency type: ContextElementDependency
- Can’t open and lock privilege tables: Table ‘mysql.user’ doesn’t exist