![]() |
Re: X-Cart v4.4.5 released
Go to admin / tools / summary and check on the link for php details (down the page where environment info is). On the page that shows search "gd", you should see somehting like this
gd GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.2.1 GIF Read Support enabled GIF Create Support enabled JPEG Support enabled libJPEG Version 6b PNG Support enabled libPNG Version 1.2.10 WBMP Support enabled XPM Support enabled XBM Support enabled If you don't see it there is no GD library installed, if you see it note the image types enabled. In 4.4.5 on the settings page you can specify the image type to be used when generating images |
Re: X-Cart v4.4.5 released
Thanks Steve. My GD is:
GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.1.9 GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XPM Support enabled XBM Support enabled I don't see: libJPEG Version 6b libPNG Version 1.2.10 So I asked my host to look into it, and they said that they have verified that the libs are installed. I also couldn't find on the settings page where you can specify which image type to use. |
Re: X-Cart v4.4.5 released
It is available on the Settings -> General settings -> Appearance page -> "Image type for generated thumbnails".
|
Re: X-Cart v4.4.5 released
Bug in include/version.php
This line Code:
$variants_in_use = func_query_first_cell("SELECT COUNT(*) FROM $sql_tbl[classes] WHERE avail='Y' AND is_modifier=''"); will throw sql error if product options module is off - xcart_classes table not defined in $sql_tbl array. To fix replace this Code:
$variants_in_use = func_query_first_cell("SELECT COUNT(*) FROM $sql_tbl[classes] WHERE avail='Y' AND is_modifier=''"); with Code:
if (!empty($active_modules['Product_Options'])) { |
Re: X-Cart v4.4.5 released
Quote:
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 |
Re: X-Cart v4.4.5 released
You can try and apply the following SQL patch to add the missing option:
Code:
INSERT INTO xcart_config VALUES ('generated_thumbnail_type','Image type for generated thumbnails','png','Appearance',195,'selector','png','png:png\njpeg:jpeg\ngif:gif',''); |
Re: X-Cart v4.4.5 released
Address book bug:
Add customer with address within a country with states, select a state as well. Save. Look at customer's address book - all shows ok Modify that customer's address and change country to one without states, save. Look at customer's address book - state still shows. XC doesn't pass an empty state field so updating customer address in this case will not pass new value for state and will keep the old one in there QT - please fix and provide patch now not in few months with next XC release |
Re: X-Cart v4.4.5 released
This is the fix for the above post - https://bugtracker.qtmsoft.com/view.php?id=41102
|
Re: X-Cart v4.4.5 released
USPS bug in 4.4.5, it may be present in other versions as well. It may be due to resent USPS changes though. Apparently USPS requires "girth" to be passed with each request and it cannot be 0. XC has a field for girth in USPS settings in admin and it defaults to 0. It is not possible to enter correct number there until package dimensions are known. Width, length and height are also 0 by default but XC calculates them if they are not specified or 0 to USPS standards. XC does not caluculates girth (at least in 4.4.5) and just passes whatever is specified in admin USPS settings and if it is 0 USPS returns error instead of rates.
How to fix: 1. In shipping/mod_USPS.php find Code:
$dim_girth_xml = "<Girth>".func_units_convert(func_dim_in_centimeters(@$specified_dims['girth']), 'cm', 'in', 1)."</Girth>"; and just before it add Code:
// added by CFL Systems to calculate girth if 0 OR if you don't want to modify php files 2. Just enter a number > 0 in the girth field in admin USPS settings |
Re: X-Cart v4.4.5 released
Steve,
Does this happen after adding the new USPS patch provided from X-Cart? I don't think we are having any issues yet, but havent upgraded. |
All times are GMT -8. The time now is 12:12 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.