View Single Post
  #75  
Old 04-05-2012, 03:18 AM
 
chadders chadders is offline
 

Newbie
  
Join Date: Jan 2009
Posts: 2
 

Default Re: X-Cart v4.4.5 released

Quote:
Originally Posted by bf2017
I am using the latest FF, and I have checked with my host who assures me that the proper GD is loaded on my server, but I am still getting the error and cannot generate thumbnails. I have also tried this with IE9 and Safari. No luck.

I asked X-Cart, and they denied my question because I don't have a support subscription which I think is ridiculous.

So does anybody have a suggestion or know what in 4.4.5 has changed or how to fix?


I had exactly the same problem, and managed to solve it by following the trail through the language files, which led finally to the file \include\func\func.image.php. If you go to line 1179 (or thereabouts), you'll see that its says:

$thumb_image_type = $config['Appearance']['generated_thumbnail_type'];

The problem is that it's referring to an an entry in the config table. For me and for others it seems there is no entry called 'generated_thumbnail_type' in the 'Appearance' category.

Rather than mess about with the database I simply edited that line in func.image.php to read:
$thumb_image_type = "jpeg";

I suppose you could equally well make it a png if you needed transparency, but that would probably lead to bigger file sizes for your images
__________________
v4.2
Reply With Quote