phpThumb remote image brings up 404 error when actually exists
Posted: 14 January 2009 02:03 PM   [ Ignore ]  
Summer Student
Total Posts:  1
Joined  01-14-2009

Did anyone ever have this problem? With phpThumbs, some of the remote images that are processed bring up the 404 error in phpThumbs, but if you go to the image directly it exists. This is a strange problem, and I cannot seem to find a solution. The image exists on the remote sever and can be accessed, however phpThumbs brings up the 404 anyway. If you disable the error notification in phpthumbs, then the image displays fine, but then the errors won’t show.

Profile
 
 
Posted: 12 February 2009 12:39 PM   [ Ignore ]   [ # 1 ]  
Summer Student
Avatar
Total Posts:  17
Joined  03-13-2007

Same thing happens to us. We can’t have pictures in “share on facebook” and stuff like that because we get the missing picture instead of the one that is actually there. Help?

 Signature 

Aquarium of the Pacific

Profile
 
 
Posted: 25 March 2009 07:55 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Avatar
Total Posts:  17
Joined  03-13-2007

I still think this is a big problem and I am a little closer to finding a solution, so I am hoping that by posting this here, someone with more knowledge can help us.

v1.2.3 - December 19, 2003
1092     * Added anti-hotlink code so the thumbnail script on
1093       one domain cannot be used by another domain. The
1094       list of allowed domains defaults to the current
1095       domain but is configurable below as
1096       $config_nohotlink_valid_domains. The message, text
1097       size, colors and whether to blank the image or not
1098       are also configurable

How do I edit “$config_nohotlink_valid_domains”? That seems to hold the key.

[source]

 Signature 

Aquarium of the Pacific

Profile
 
 
Posted: 12 May 2009 05:01 PM   [ Ignore ]   [ # 3 ]  
Summer Student
Avatar
Total Posts:  17
Joined  03-13-2007

This is a big deal for us, any help would be appreciated. Thanks!

 Signature 

Aquarium of the Pacific

Profile
 
 
Posted: 12 May 2009 11:44 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRank
Total Posts:  4609
Joined  03-22-2004

anitza,

you can find that information in the FAQs

Q: “Off-server thumbnailing is not allowed”—how do I enable it?
A: By default, phpThumb() only makes thumbnails for the same
  domain that it is running on. To allow it to make thumbnails
  for a limited number of other domains, add them
  (in phpThumb.config.php) like this:
    $PHPTHUMB_CONFIG[‘nohotlink_valid_domains’] = array(
      @$_SERVER[‘HTTP_HOST’], ‘example.com’, ‘www.example.com’,
      ‘subdomain.example.net’, ‘example.org’);
  To disable off-server thumbnail blocking, just set:
    $PHPTHUMB_CONFIG[‘nohotlink_enabled’] = false;

 Signature 
Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 02:47 PM
Total Registered Members: 114908 Total Logged-in Users: 72
Total Topics: 122390 Total Anonymous Users: 34
Total Replies: 647095 Total Guests: 431
Total Posts: 769485    
Members ( View Memberlist )