architect Posted October 20, 2007 Share Posted October 20, 2007 I have a site which works perfectly, I have done a clone of the site and now I am have problems with the thumbnail images that display next to the product name on the category pages. If I make change to the image height and/or width in configuration/images, the images display but when the page is refreshed, I get the nice little box with the red cross to show that the image can't be displayed! I have had a look at the images directory and I can see that there are now lots of thumbnail images, it seems that every time I refresh the page, a new thumbnail is created. The cloned site is on the same server as the one which works perfectly but at a different web address, I have checked both the configure.php files and they look OK and everything else works exactly as it should. I have a feeling that the server is running Gallery but I can't remember how to check if that is true or not. Has anyone any ideas on wha the problem might be and how to fix it? Thanks Link to comment Share on other sites More sharing options...
architect Posted October 21, 2007 Author Share Posted October 21, 2007 I think I may have found a partial answer to this one myself. I found that in product_info.php on line 163 there is the following code document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH*2, SMALL_IMAGE_HEIGHT*2, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); I found that changing the 'SMALL_IMAGE_WIDTH*2, SMALL_IMAGE_HEIGHT*2' to 'SMALL_IMAGE_WIDTH*1, SMALL_IMAGE_HEIGHT*1' the small image on the product page is now displayed correctly. Now that I have changed this code, the multiple thumbnail images are not being generated anymore. Hope this helps someone else Tim Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.