jasonabc Posted February 11, 2007 Share Posted February 11, 2007 (edited) Been trying to get this mod to work (version 1.5 that Nate posted on Dec 2005) but the thumbnails are all broken. My config file is absolutely correct. I'm running: osCommerce 2.2 Milestone 2 Update 060817 PHP 5.1.6 Apache 2.0.59 The full GD library is installed on my server. Here is the path on the broken thumbnails: http://localhost/osc_stock_install/product...;w=100&h=60 And here's my config file: define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', ''); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/osc_stock_install/'); define('HTTPS_COOKIE_PATH', '/osc_stock_install/'); define('DIR_WS_HTTP_CATALOG', '/osc_stock_install/'); define('DIR_WS_HTTPS_CATALOG', '/osc_stock_install/'); define('DIR_WS_IMAGES', 'images/'); I've been right through this support thread and tried the various ideas/patches etc - none of them make any difference. Any ideas?? Edited February 11, 2007 by jasonabc Quote Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
Guest Posted February 15, 2007 Share Posted February 15, 2007 I'm having problems with this mod, after installing it all of my thumbnail images are left aligned. How do i set them back to the center? Quote Link to comment Share on other sites More sharing options...
leveera Posted March 23, 2007 Share Posted March 23, 2007 Have a problem and need your advice I have 2.2M2 and installed 'On The Fly' Thumbnails successfully. All products pictures (jpg) was properly converted to thumbnails. But a jpg pictures I uploaded after installation of 'On The Fly' Thumbnails aren't converted to thumbnails. Uploaded pictures are in images/name_of_product/... but no one is created in images/name_of_product/thumbnails/... so I have broken images on a product page. That is a trick? Sergei Quote Link to comment Share on other sites More sharing options...
Guest Posted April 4, 2007 Share Posted April 4, 2007 Hello all, I've been trying to figure this out all day, but to no avail; I think I'm going to go insane if I keep on going over the same things time after time! I've scoured the forums/google, but still nothing - any advice you may have would be welcomed. So, here's my problem: installed Auto Thumbnailer 2.2, following instructions carefully, checking for GD support (fine bar 'T1 Lib Support') etc. However, it's simply not working, with no images displaying. My site is in /catalog and images in /catalog/images, so there doesn't seem to be a path issue. When I go to 'view' one of the images that isn't displaying, I'm greeted by the following warning(s): Warning: mkdir(): Unable to access in /home/virtual/site481/fst/var/www/html/catalog/product_thumb.php on line 89 Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site481/fst/var/www/html/catalog/product_thumb.php:89) in /home/virtual/site481/fst/var/www/html/catalog/product_thumb.php on line 254 Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site481/fst/var/www/html/catalog/product_thumb.php:89) in /home/virtual/site481/fst/var/www/html/catalog/product_thumb.php on line 186 Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site481/fst/var/www/html/catalog/product_thumb.php:89) in /home/virtual/site481/fst/var/www/html/catalog/product_thumb.php on line 187 Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site481/fst/var/www/html/catalog/product_thumb.php:89) in /home/virtual/site481/fst/var/www/html/catalog/product_thumb.php on line 190 Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site481/fst/var/www/html/catalog/product_thumb.php:89) in /home/virtual/site481/fst/var/www/html/catalog/product_thumb.php on line 192 Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site481/fst/var/www/html/catalog/product_thumb.php:89) in /home/virtual/site481/fst/var/www/html/catalog/product_thumb.php on line 193 ...followed by alot of random bumpf. I've visited these lines of code, but I can't see anything wrong, and I'm growing increasingly frustrated. I'd be very, very grateful if somebody could point me in the right direction. Thanks in advance. Leumas Quote Link to comment Share on other sites More sharing options...
stevenxichen Posted April 28, 2007 Share Posted April 28, 2007 Admin Part failed, thumbernail pics are not used and the proportion is not working either. I think there should be some coding in admin/categories.php Quote Link to comment Share on other sites More sharing options...
stevenxichen Posted April 28, 2007 Share Posted April 28, 2007 Admin Part failed, thumbernail pics are not used and the proportion is not working either. I think there should be some coding in admin/categories.php Quote Link to comment Share on other sites More sharing options...
velvet Posted May 8, 2007 Share Posted May 8, 2007 Hi, i have installed 'On The Fly' Auto Thumbnailer a few days ago and ive had no problems until today when i tried to install an image slideshow to have multiple images in the product information a few moments ago. This contrib install didn't work so i uploaded the database backup which i had made minutes before and the full catalog backup which i had made minutes before. No when i goto my store most of the images are broken. This can be seen here: http://www.velvet-rose.co.uk/index/index.php?cPath=63 All the images which are broken still exist in the images/ folder. I assume that i have messed up some code somewhere as the images are being called like this: 4281_Black__large.jpg&w=81&h=110 im not sure where i can find the code where the images are called Any help with the problem is greatly appreciated. Thanks, Kind Regards, Velvet Quote Link to comment Share on other sites More sharing options...
GeorgeP Posted May 10, 2007 Share Posted May 10, 2007 Does anyone else have problems in extracting psynaptic's last version of the contribution or is it my fault ? Quote Link to comment Share on other sites More sharing options...
ColorsbyLiza Posted June 27, 2007 Share Posted June 27, 2007 :thumbsup: Wanted to thank the contributers! Works great!!! :thumbsup: Liza Quote Link to comment Share on other sites More sharing options...
Guest Posted August 1, 2007 Share Posted August 1, 2007 I'm trying to install this contribution but I have some problems. Probably this are stupid questions but as I cant find the answer, I need your help. I don't have«or can't find» the "product_thumb.php" file, where can I find that file? Images must but uploaded manually to "Imagecache" file? I would be grateful if someone could help me. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 11, 2007 Share Posted August 11, 2007 Hey, I tryed to install the sql fiel but it gaves error. So, I installed this contribution without sql and it works. You can see Visit My Website Quote Link to comment Share on other sites More sharing options...
petsk Posted August 18, 2007 Share Posted August 18, 2007 Does anyone know how to get images from a external domain working, eg: www.your-store.com/product_thumb.php?img=http://www.external-domain.com/some_image.jpg I can't find the problem in product_thumb.php. There's nothing wrong with the tep_image(); function anyway. Any ideas? :thumbsup: Quote Link to comment Share on other sites More sharing options...
ian_m Posted November 3, 2007 Share Posted November 3, 2007 This is a great contribution and works perfect, my problem is not related to any problems with this script but I have someone who has uploaded a shed load of .bmp images which wont work with GD and hence show as brokem images, is there anyway of saying if the image will not work with uploaded file format then just show the original image or indeed any other work around which doesn't means converting his images to jpeg then re-uploading them and editing hours of works. Someone please tell me there is a simple fix for this!! Cheers Ian Quote Link to comment Share on other sites More sharing options...
ericTM313 Posted December 4, 2007 Share Posted December 4, 2007 Hi all, I'm having an issue with this contrib, which i've never had before in several carts with it. This site is on the same server as the rest that work, and most of the images on this site work too. But a few random images don't work... GD is installed, etc etc. Most (probably 350 out of 360 images) work perfectly fine. But theres a few that don't, seemingly for no reason. Theyre jpegs, but i noticed that the few images that don't work are rather huge (around 2000x1000 px), could that be causing the thumbnailer to fail? I really see no other reason than that.... Any help is appreciated, thanks! Quote Link to comment Share on other sites More sharing options...
Guest Posted January 15, 2008 Share Posted January 15, 2008 Hi all,I'm having an issue with this contrib, which i've never had before in several carts with it. This site is on the same server as the rest that work, and most of the images on this site work too. But a few random images don't work... GD is installed, etc etc. Most (probably 350 out of 360 images) work perfectly fine. But theres a few that don't, seemingly for no reason. Theyre jpegs, but i noticed that the few images that don't work are rather huge (around 2000x1000 px), could that be causing the thumbnailer to fail? I really see no other reason than that.... Any help is appreciated, thanks! Try extending the php timeout number by using a directory based php.ini file. Or maybe a php value directive in .htaccess (supposed to be undesirable, but seems to work). Quote Link to comment Share on other sites More sharing options...
warrenerjm Posted January 15, 2008 Share Posted January 15, 2008 Hi I have installed 'On the fly' autothumbnailer V 1.5.1 nate 02631 15/12/05 I know it is an older one, but it worked on my previous site & the ones after are so confusing with add-ons etc. I just wanted on that works. I have oscommerce download 0806, whereas the other site was updated to this version. I have A4 size images ie rectangle landscape & verticle as well as square images, so in the configuration I have the following set 1 1 80 sub categories 80 100 small products 100 100 all products 100 true true In my products_info.php I have set it up to show the whole image, so no thumbnail or "click to enlarge" & the image shows fine, BUT in the products listing of the categories & new products & all products they are all distorting to a square. Please could someone tell me why they are not resizing to the right proportions? I have played around with the configuration & checked the code, but cannot see any differences between the old & new site? Thanks Julie Quote Link to comment Share on other sites More sharing options...
stonjie Posted January 23, 2008 Share Posted January 23, 2008 (edited) Hi all,I'm having an issue with this contrib, which i've never had before in several carts with it. This site is on the same server as the rest that work, and most of the images on this site work too. But a few random images don't work... GD is installed, etc etc. Most (probably 350 out of 360 images) work perfectly fine. But theres a few that don't, seemingly for no reason. Theyre jpegs, but i noticed that the few images that don't work are rather huge (around 2000x1000 px), could that be causing the thumbnailer to fail? I really see no other reason than that.... Any help is appreciated, thanks! Try extending the php timeout number by using a directory based php.ini file. Or maybe a php value directive in .htaccess (supposed to be undesirable, but seems to work). I'm having the same problem. Are you talking about ;;;;;;;;;;;;;;;;;;; ; Resource Limits; ;;;;;;;;;;;;;;;;;;; max_execution_time = 60 max_input_time = 60; Maximum amount of time each script may spend parsing request data memory_limit = 16M ; Maximum amount of memory a script may consume or ; Default timeout for socket based streams (seconds) default_socket_timeout = 60 Both are taken from the php.ini file. Edited January 23, 2008 by stonjie Quote Link to comment Share on other sites More sharing options...
Guest Posted March 3, 2008 Share Posted March 3, 2008 Try extending the php timeout number by using a directory based php.ini file. Or maybe a php value directive in .htaccess (supposed to be undesirable, but seems to work). I'm having the same problem. Are you talking about ;;;;;;;;;;;;;;;;;;; ; Resource Limits; ;;;;;;;;;;;;;;;;;;; max_execution_time = 60 max_input_time = 60; Maximum amount of time each script may spend parsing request data memory_limit = 16M; Maximum amount of memory a script may consume or ; Default timeout for socket based streams (seconds) default_socket_timeout = 60 Both are taken from the php.ini file. Sorry about delay in answering - max-execution time is the one Quote Link to comment Share on other sites More sharing options...
withlovenana Posted March 9, 2008 Share Posted March 9, 2008 I tried to install this contribution and got to the part where you are to replace the tep_image function code in the catalog/includes/functions/html_output.php file. When I replace my code with the supplied code as seen here: // "On the Fly" Auto Thumbnailer using GD Library, servercaching and browsercaching // Scales product images dynamically, resulting in smaller file sizes, and keeps // proper image ratio. Used in conjunction with product_thumb.php t/n generator. function tep_image($src, $alt = '', $width = '', $height = '', $params = '') { // if no file exists display the 'no image' file if (!is_file($src)) { $src = "images/no_image.jpg"; } // Set default image variable and code $image = '<img src="' . $src . '"'; // Don't calculate if the image is set to a "%" width if (strstr($width,'%') == false || strstr($height,'%') == false) { $dont_calculate = 0; } else { $dont_calculate = 1; } // Dont calculate if a pixel image is being passed (hope you dont have pixels for sale) if (!strstr($image, 'pixel')) { $dont_calculate = 0; } else { $dont_calculate = 1; } // Do we calculate the image size? if (CONFIG_CALCULATE_IMAGE_SIZE && !$dont_calculate) { // Get the image's information if ($image_size = @getimagesize($src)) { $ratio = $image_size[1] / $image_size[0]; // Set the width and height to the proper ratio if (!$width && $height) { $ratio = $height / $image_size[1]; $width = intval($image_size[0] * $ratio); } elseif ($width && !$height) { $ratio = $width / $image_size[0]; $height = intval($image_size[1] * $ratio); } elseif (!$width && !$height) { $width = $image_size[0]; $height = $image_size[1]; } // Scale the image if not the original size if ($image_size[0] != $width || $image_size[1] != $height) { $rx = $image_size[0] / $width; $ry = $image_size[1] / $height; if ($rx < $ry) { $width = intval($height / $ratio); } else { $height = intval($width * $ratio); } $image = '<img src="product_thumb.php?img=' . $src . '&w=' . tep_output_string($width) . '&h=' . tep_output_string($height) . '"'; } } elseif (IMAGE_REQUIRED == 'false') { return ''; } } // Add remaining image parameters if they exist if ($width) { $image .= ' width="' . tep_output_string($width) . '"'; } if ($height) { $image .= ' height="' . tep_output_string($height) . '"'; } if (tep_not_null($params)) $image .= ' ' . $params; $image .= ' border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title="' . tep_output_string($alt) . '"'; } $image .= '>'; return $image; } When I tried to view my catalog, I get a blank screen. What have I don't wrong? Quote Link to comment Share on other sites More sharing options...
Yak39 Posted April 1, 2008 Share Posted April 1, 2008 Ok all, here is my question I really don't have and hint after 4 days looking in the forums for a solution. First of all, this is not my first install of this great contrib. This time I just downloaded the structure of OSC i had on one site and decided to adapt it to another. For what concerns OTF-AT I've been re-uploading the product-thumb.php and then ran the sql statements. When I upload a picture I obtain this wierd issue you can see here: http://www.libreriaportavenezia.biz/shop/ Images are no resized correctyl and they appear corrupted, like they were in an high jpeg compression (but compression is set to 70). I don't get why one of those picture is working fine since they are all jpeg. No one of them has been uploaded via ftp with the exception of no-image.jpg (but still in binary mode) Most importantly, the thumb images generated look like this: THUMBNAIL_PATHfilename.jpg What the hell is going on? Can anyone assist here? Thank you very much. Quote Link to comment Share on other sites More sharing options...
Yak39 Posted April 1, 2008 Share Posted April 1, 2008 After long I've fixed it. It is all about the sql script that has to be run. Looks like the script works only with the configuration_group_id set to 100. Other number just won't work. the thing is that on id=100 I had already the Support Ticket System Contrib and the two were messing up the whole thing. Quote Link to comment Share on other sites More sharing options...
pcwebexpert Posted August 3, 2008 Share Posted August 3, 2008 All is working good exept the admin part is distorsioned do you have a solution to resolve the admin part bug. I know some part of admin like special use function tep_info_image instead of function tep_image and this will never work if we don't change some part of the code, but for the others parts of the admin using function tep_image its supose to work but it not working ( the function not resizing the product image) how we supose to fix it ? Thx for help Quote Link to comment Share on other sites More sharing options...
blr044 Posted September 10, 2008 Share Posted September 10, 2008 the config in product_thumb.php states catalog/images is the default location for the thumbnails folder. But the install instructions reads as: If all of your product images reside in catalog/images/ (with no sub-directory categorization) you can set your thumbnails directory to thumbnails/ in admin and everything should work fine. If your thumbnails/ directory was not automatically created when you browsed your store then: Which my images is. So I did put the thumbnails folder in the root directory. This is where I need my thumbnails to be. Just because I have over 1600 images - products. I have tried around 6 other images resizer mod. They end up creating the thumbs which locate in the images directory or created a imagecache folder. The server where my site is hosted has a limit of 2000 files. Once I exceed that, then some images or folders in the image directory become invisible. So this why I need to have the thumbnails folder in the root instead of images. Been trying, but with no luck. Also at the present time this mod is creating thumb in both - images and thumbnails. So am looking for a little help. Thanks. blr044 Quote Link to comment Share on other sites More sharing options...
thieves Posted September 13, 2008 Share Posted September 13, 2008 Hi I have added this contribution, but now my pictures do not come up at all. I just get this message Warning: Division by zero in /home/thieves/public_html/buyers/includes/functions/html_output.php on line 119 Warning: Division by zero in /home/thieves/public_html/buyers/includes/functions/html_output.php on line 120 Does anyone know what i may have done wrong? Thank you Quote Link to comment Share on other sites More sharing options...
blr044 Posted September 14, 2008 Share Posted September 14, 2008 I did install this mod. Am having a few problems. Before leaving my question, I notice there is two threads for this mod. One is lcated in this one and the orther is located here! This is where I post my question about three days ago. Am looking for some help on this. Thank you. blr044 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.