Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

X-Cart v4.4.2 released

 
Closed Thread
   X-Cart forums > News and Announcements
 
Thread Tools
  #181  
Old 02-20-2011, 03:19 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart v4.4.2 released

I cal this one a bug as well

http://forum.x-cart.com/showpost.php?p=310936&postcount=2
__________________
Steve Stoyanov
CFLSystems.com
Web Development
  #182  
Old 02-21-2011, 09:26 AM
 
weckie weckie is offline
 

eXpert
  
Join Date: Feb 2005
Location: Netherlands
Posts: 220
 

Default Re: X-Cart v4.4.2 released

How do i install this on LOCALHOST without the annoying message.

Do i really have to open ports and firewall etc.



Yes i know its been a long time. I am still working with a very old x-cart version. LOL

A lot has changed meanwhile i see.
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
  #183  
Old 02-22-2011, 11:19 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart v4.4.2 released

Another serious bug in 4.4.2, which I assume is also present in all 4.4.x and 4.3.x. Using Flyout menus with cache the url for images for categories will save in the cache image path as regulat http url which will result in security warning under https (if you choose to show the thumbs). If you are using cache for Flyout menus the html code is like this if thumbs are shown

HTML Code:
<a href="home.php?cat=xxx" class="icon-link sub-link"><img src="http://www.domain.com/images/C/c-xxx.jpg" alt="" width="16" height="16" />Category</a>

Turn off the Flyout cache and the image url changes when protocol changes.

Now the question here is: Why these images have absolute url in the first place? Is there a reason for the images not to use relative url?

How to fix it? There are few places where image url is constructed as

Code:
return $current_location . str_replace(XC_DS, '/', substr($image_path, strlen(preg_replace('/' . preg_quote(XC_DS, '/') . '$/S', '', $xcart_dir))));

The $current_location has to go. There is no need for it. This is in func.files.php, func.image.php, in a few function. I am not sure why this was done like this, so QT please provide a fix asap, as I am not sure if I take out $current_location it won't break something else. I don't see the reason anything at all to be referenced with absolute url.
__________________
Steve Stoyanov
CFLSystems.com
Web Development

The following user thanks cflsystems for this useful post:
am2003 (02-22-2011)
  #184  
Old 02-27-2011, 03:21 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart v4.4.2 released

Another bug in 4.4.2 OPC - see this
https://bugtracker.qtmsoft.com/view.php?id=39242

Man, that was supposed to be bug free version a year ago...
__________________
Steve Stoyanov
CFLSystems.com
Web Development
  #185  
Old 02-27-2011, 06:17 PM
 
tom437 tom437 is offline
 

eXpert
  
Join Date: Feb 2010
Posts: 209
 

Default Re: X-Cart v4.4.2 released

Quote:
Originally Posted by yehudah
This is so frustrating I have 2 clients waiting for their stores to go live and there is no stable release of 4.4x yet

When will the fixes be done

I have a suggestion for the next version set up a few beta testers in the x cart community and try to fix ALL the bugs be fore you release the final version. Come on qt you are big enough to do things proper

Hello Yehudah,

Who are you hosting your website with (www.party-wholesale.com)?

Thanks
__________________
x cart 4.4.2
  #186  
Old 03-02-2011, 06:57 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart v4.4.2 released

Ok this is not exactly a bug but it has to be fix and fast. Why on Earth 4.4.x was designed to load every single css file available no matter if the module is in use or not, for active modules? What is the login behind loading OPC css file(s) on site front page or products list page? What is the login behind loading Upsell products css file(s) on checkout pages? QT - PLEASE, an answer.

service_css.tpl loads on every single page and has the following code in it
Code:
{foreach from=$css_files item=files key=mname} {foreach from=$files item=f} {if ($f.browser eq $config.UA.browser and $f.version eq $config.UA.version) or ($f.browser eq $config.UA.browser and not $f.version) or (not $f.browser and not $f.version) or (not $f.browser)} {if $f.suffix} {load_defer file="modules/$mname/`$f.subpath``$smarty.config.CSSFilePrefix`.`$f.suffix`.css" type="css" css_inc_mode=$ie_ver} {else} {load_defer file="modules/$mname/`$f.subpath``$smarty.config.CSSFilePrefix`.css" type="css" css_inc_mode=$ie_ver} {/if} {/if} {/foreach} {/foreach}
This loads every css file in $css_files array regardless if it's needed or not. And $css_files array is populated by this code in init.php
Code:
if ($active_modules) { foreach ($active_modules as $active_module => $tmp) { $_module_dir = $xcart_dir . XC_DS . 'modules' . XC_DS . $active_module; $_config_file = $_module_dir . XC_DS . 'config.php'; $_func_file = $_module_dir . XC_DS . 'func.php'; if ( file_exists($_config_file) && is_readable($_config_file) ) { include $_config_file; } if ( file_exists($_func_file) && is_readable($_func_file) ) { include $_func_file; } } }
which calls config.php for every active module. config.php assigns all css files for its respective module to $css_files array.

Who was the bright mind behind all this? Did we really needed more bloated css? 4.4x. was suppose to be clean, css driven, up to the standards cart. Do you think Google likes to see 15+ different css files loading without even a single line from them being used? WOW. I have to revise the first line - this is a BUG, a huge one.

And by the way almost same applies to the js files loading with every page load. Lots of them and at least half of them are needed on specific pages only.

To somehow reduce that load make sure you turn off every module you don't need/use.
__________________
Steve Stoyanov
CFLSystems.com
Web Development

The following 3 users thank cflsystems for this useful post:
am2003 (03-02-2011), chamberinternet (03-03-2011), PhilJ (03-06-2011)
  #187  
Old 03-02-2011, 07:01 AM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default Re: X-Cart v4.4.2 released

Steve you need a medal. Please report it in bugracker.

Quote:
Originally Posted by cflsystems
Ok this is not exactly a bug but it has to be fix and fast. Why on Earth 4.4.x was designed to load every single css file available no matter if the module is in use or not, for active modules? What is the login behind loading OPC css file(s) on site front page or products list page? What is the login behind loading Upsell products css file(s) on checkout pages? QT - PLEASE, an answer.

service_css.tpl loads on every single page and has the following code in it
Code:
{foreach from=$css_files item=files key=mname} {foreach from=$files item=f} {if ($f.browser eq $config.UA.browser and $f.version eq $config.UA.version) or ($f.browser eq $config.UA.browser and not $f.version) or (not $f.browser and not $f.version) or (not $f.browser)} {if $f.suffix} {load_defer file="modules/$mname/`$f.subpath``$smarty.config.CSSFilePrefix`.`$f.suffix`.css" type="css" css_inc_mode=$ie_ver} {else} {load_defer file="modules/$mname/`$f.subpath``$smarty.config.CSSFilePrefix`.css" type="css" css_inc_mode=$ie_ver} {/if} {/if} {/foreach} {/foreach}
This loads every css file in $css_files array regardless if it's needed or not. And $css_files array is populated by this code in init.php
Code:
if ($active_modules) { foreach ($active_modules as $active_module => $tmp) { $_module_dir = $xcart_dir . XC_DS . 'modules' . XC_DS . $active_module; $_config_file = $_module_dir . XC_DS . 'config.php'; $_func_file = $_module_dir . XC_DS . 'func.php'; if ( file_exists($_config_file) && is_readable($_config_file) ) { include $_config_file; } if ( file_exists($_func_file) && is_readable($_func_file) ) { include $_func_file; } } }
which calls config.php for every active module. config.php assigns all css files for its respective module to $css_files array.

Who was the bright mind behind all this? Did we really needed more bloated css? 4.4x. was suppose to be clean, css driven, up to the standards cart. Do you think Google likes to see 15+ different css files loading without even a single line from them being used? WOW. I have to revise the first line - this is a BUG, a huge one.

And by the way almost same applies to the js files loading with every page load. Lots of them and at least half of them are needed on specific pages only.

To somehow reduce that load make sure you turn off every module you don't need/use.
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
  #188  
Old 03-02-2011, 07:05 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart v4.4.2 released

Reported it already. I can't believe what they have done sometimes
__________________
Steve Stoyanov
CFLSystems.com
Web Development
  #189  
Old 03-02-2011, 06:38 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: X-Cart v4.4.2 released

Probably, their intended method is to amalgamate all the css and javascipt with the intent being that on a production site, the css and javascript speed-up tools will be used. The problem is, after all the initial reported bugs associated with the speed-up tools, it is unclear if they are dependable for production yet. For example - the method in drupal has individual css files being loaded for many addons and themes used, so you can end up with many small, focused css files depending on what you have enabled in your configuration. But, when you are ready to go to production, there are effective tools to aggregate and compress the css. QT appears to want to use a similar method for performance enhancement, but they are starting with css from previous versions that is not designed modularly, and the speed up tool appears to not be trusted by many users yet - so the css architecture is actually worse than on previous versions.

---
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
  #190  
Old 03-02-2011, 08:06 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart v4.4.2 released

Even if speedup tool works ok why load all unused css files and js scripts. Just makes the load bigger for no reason.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Closed Thread
   X-Cart forums > News and Announcements



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:22 PM.

   

 
X-Cart forums © 2001-2020