zhaojie1278 / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

Server path does not exist. Ensure variable $_SERVER['DOCUMENT_ROOT'] is set correctly #496

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, after installation of Timthumb on a server, ( with cache folder and correct 
permissions , as specified on 
http://www.binarymoon.co.uk/2010/11/timthumb-hints-tips/ and documentation ) 
this one still don't want to display the picture. No problem on a local 
installation with Xampp, or on another server. 

I get this specific error : 
>> A TimThumb error has occured
>> The following error(s) occured:
>> * Server path does not exist. Ensure variable $_SERVER['DOCUMENT_ROOT'] is 
set correctly
>> * Could not find the internal image you specified.

link : 
http://manujarvinen.com/~secret/testing/Artwork-Web-Folder-master_new/lib/timthu
mb.php?src=http://manujarvinen.com/~secret/testing/Artwork-Web-Folder-master_new
/01_concept-art_demo-picture.jpg&w=1100

'internal image' link is active ( 
http://manujarvinen.com/~secret/testing/Artwork-Web-Folder-master_new/01_concept
-art_demo-picture.jpg ), 
Any hint how this could be solved, and what should I try ? How to set correctly 
$_SERVER['DOCUMENT_ROOT'] ? Is it the real issue ? Thanks! 

Timthumb version : last SVN , and also tested with an older 2.8.11

Original issue reported on code.google.com by davidre...@gmail.com on 16 Sep 2014 at 12:10

GoogleCodeExporter commented 9 years ago
Hi, after research ; the bug was happening because of the tilde symbol "~" on 
the URL.
More informations here :  
http://elementdesignllc.com/2012/01/how-to-fix-timthumb-using-a-virtual-director
y-url-contains-tildes/ ; removing it solve the issue.

Original comment by davidre...@gmail.com on 16 Sep 2014 at 7:52