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

X-Cart v4.4.4 released

 
Closed Thread
   X-Cart forums > News and Announcements
 
Thread Tools
  #61  
Old 10-01-2011, 06:29 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart v4.4.4 released

It is best to patch manually then restoring original files - if you made undocumented changes to them you may not be able to apply this changes again after upgrade. Just run the upgrade - it will show a report first and will not modify any files. If you get anything else than "OK" or "Already patched" do not proceed further. First you need to manually patch files and then you can run the upgrade again
__________________
Steve Stoyanov
CFLSystems.com
Web Development

The following 2 users thank cflsystems for this useful post:
kustomrides (10-19-2011), seyfin (10-02-2011)
  #62  
Old 10-01-2011, 07:21 AM
  Ana's Avatar 
Ana Ana is offline
 

Senior Member
  
Join Date: Aug 2004
Location: Hurricane Alley, South Florida USA
Posts: 186
 

Thumbs up Re: X-Cart v4.4.4 released

I did an upgrade last night in a test environment and I have to say, in the 7 years I've been using X-Cart, this one went the most smoothly of all upgrades.

I'm still testing the functionality of the store and will be for a few days to ensure all is working properly but so far, so good.

Thanks Qualiteam for making life a bit easier this time around.

Ana
__________________
"Real knowledge is to know the extent of one's ignorance."-- Confucius

X-Cart 4.4.4
MySQL 5.0.92
Apache/2.0.64 (Unix)
PHP 5.3.6
CentOS 5.5

MODS:
Template Mela- Theme XCT010002
Altered Cart- CheckoutOne
BCS Engineering- Back In Stock Notification
X-Cart Mods- Thumbnail Candy
X-Cart Mods-Advanced Shop Closed
Google Site Search

The following user thanks Ana for this useful post:
seyfin (10-02-2011)
  #63  
Old 10-01-2011, 07:31 AM
  Ana's Avatar 
Ana Ana is offline
 

Senior Member
  
Join Date: Aug 2004
Location: Hurricane Alley, South Florida USA
Posts: 186
 

Default Re: X-Cart v4.4.4 released

Quote:
Originally Posted by Mr. G
Sergey, in the very first sentence of the 441 to 444 Upgrade Notes, it says, "If any hot fix was applied to X-Cart, it is recommended to uninstall this hot fix to reduce the possibility of an unsuccessful upgrade." Please clarify what a hotfix is. Is a hotfix a patch? QT has applied the patches as listed in the attached doc. I have made changes as listed there. Do I need to uninstall/revert each of these before doing the upgrade?

Also, assuming that my 3rd party modules (shown below) are 4.4.4 compatible, do they still need to be uninstalled before the upgrade?

I too had applied hot fixes, however, I didn't uninstall them. They rejected on the first file verify and I went into the files and manually edited them. Most of the edits were nearly identical to what the hotfix had done. After manually upgrading files, I removed them from the upgrade files.lst and ran the upgrade again. So far, I have not seen any ill effects from doing it in this manner.

As for as the 3rd party mods, I have the CheckoutOne mod installed and didn't remove that prior to upgrade. Those files that were changed with the mod rejected and I upgraded them manually as well.

I'm still testing the site to make sure all is functioning properly and probably will continue testing for a few days.

Ana
__________________
"Real knowledge is to know the extent of one's ignorance."-- Confucius

X-Cart 4.4.4
MySQL 5.0.92
Apache/2.0.64 (Unix)
PHP 5.3.6
CentOS 5.5

MODS:
Template Mela- Theme XCT010002
Altered Cart- CheckoutOne
BCS Engineering- Back In Stock Notification
X-Cart Mods- Thumbnail Candy
X-Cart Mods-Advanced Shop Closed
Google Site Search

The following user thanks Ana for this useful post:
seyfin (10-02-2011)
  #64  
Old 10-01-2011, 09:52 AM
  Ana's Avatar 
Ana Ana is offline
 

Senior Member
  
Join Date: Aug 2004
Location: Hurricane Alley, South Florida USA
Posts: 186
 

Default Re: X-Cart v4.4.4 released

Quote:
Originally Posted by Mr. G
oops, didn't refresh. Reading...

Do not do the upgrade on a live site. Copy your database over to a test database and copy your existing site to a test environment. That way, if anything goes wrong, your bread and butter is still working.

I posted a link in this thread earlier that leads to a topic specifically on upgrading.

Edit-added link: http://forum.x-cart.com/showpost.php?p=191473&postcount=1

Check it out, there is useful information in there.
__________________
"Real knowledge is to know the extent of one's ignorance."-- Confucius

X-Cart 4.4.4
MySQL 5.0.92
Apache/2.0.64 (Unix)
PHP 5.3.6
CentOS 5.5

MODS:
Template Mela- Theme XCT010002
Altered Cart- CheckoutOne
BCS Engineering- Back In Stock Notification
X-Cart Mods- Thumbnail Candy
X-Cart Mods-Advanced Shop Closed
Google Site Search

The following user thanks Ana for this useful post:
seyfin (10-02-2011)
  #65  
Old 10-03-2011, 12:36 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: X-Cart v4.4.4 released

Official patches from your File Area should not need to be removed or worked around, such as the security patches and the recent USPS patches. Please, X-Cart, consider integrating checks for these patched files in the upgrade.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux

The following user thanks cherie for this useful post:
Mr. G (10-03-2011)
  #66  
Old 10-03-2011, 05:50 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart v4.4.4 released

This is not new and it's been asked few times and still not fixed. When running the upgrade from admin the screen after the initial files check has this at the bottom

Quote:

Tick here to continue upgrading regardless of the found problems

which is checked by default. "Apply patch" and "Go back" buttons are too close to each other and one can easily hit the wrong button. Applying the patch when there are "could not patch" errors will result of not all files being patched and the database not patched as well. This should not be checked by default and the "Apply patch" button should be disabled unless box is checked.

For your own safety do this and keep it in there. Open "admin/main/patch_apply.tpl" and at the top of the file insert this

Code:
<script type="text/javascript"> //<![CDATA[ {literal} var agree_checkboxes = ['try_all']; function check_agree(form) { for (var i = 0; i < agree_checkboxes.length; i++) { var c = form.elements.namedItem(agree_checkboxes[i]); if (c && !c.checked) return false; } return true; } function patch_agree(o) { var valid = true; for (var i = 0; i < agree_checkboxes.length && valid; i++) { var c = o.form.elements.namedItem(agree_checkboxes[i]); if (c && !c.checked) valid = false; } $('input[name=submit]').button(valid ? 'enable' : 'disable') return true; } {/literal} //]]> </script>

then find

Code:
<form action="patch.php" method="post">

and replace with

Code:
<form action="patch.php" method="post" onsubmit="javascript: return check_agree(this);">

then find

Code:
<label for="try_all">{$lng.lbl_tick_here_to_apply_patch}</label><input type="checkbox" id="try_all" name="try_all" /><br />

and replace with

Code:
<label for="try_all">{$lng.lbl_tick_here_to_apply_patch}</label><input type="checkbox" id="try_all" name="try_all" onclick="javascript: patch_agree(this);" /><br />

then find

Code:
<input type="submit" value="{$lng.lbl_apply_patch|strip_tags:false|escape}" />

and replace with

Code:
<input type="submit" name="submit" value="{$lng.lbl_apply_patch|strip_tags:false|escape}"{if $could_not_patch ne "0" and $mode ne "sql"} disabled="disabled"{/if} />

Done.

Come on QT, this is your own code, just copy/paste, and you can't implement it to something as important as running a patch
__________________
Steve Stoyanov
CFLSystems.com
Web Development

The following 4 users thank cflsystems for this useful post:
am2003 (02-12-2012), Mr. G (10-03-2011), Rplantz (10-04-2011), seyfin (10-04-2011)
  #67  
Old 10-03-2011, 07:13 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: X-Cart v4.4.4 released

So got my first 4.4.3->4.4.4 live upgrade - few files to manually patch and no problems at all with the upgrade. Smooth and it looks like all works just fine. Couple new shipping methods were activated after the upgrade but I assume these were newly added shipping methods by the upgrade (still they should be added as disabled). Over all positive experience with the upgrade. Looks like 4.4.4 is way better compare to 4.4.3, I even think a little bit faster. One warning for anyone using jquery from CDN (like Google and others) - make sure you are loading 1.6.2 or OPC and and some admin features depending on it will not work
__________________
Steve Stoyanov
CFLSystems.com
Web Development

The following user thanks cflsystems for this useful post:
seyfin (10-04-2011)
  #68  
Old 10-04-2011, 07:55 AM
  seyfin's Avatar 
seyfin seyfin is offline
 

X-Cart team
  
Join Date: May 2004
Posts: 1,223
 

Default Re: X-Cart v4.4.4 released

Quote:
Originally Posted by cflsystems
This is not new and it's been asked few times and still not fixed. When running the upgrade from admin the screen after the initial files check has this at the bottom



which is checked by default. "Apply patch" and "Go back" buttons are too close to each other and one can easily hit the wrong button. Applying the patch when there are "could not patch" errors will result of not all files being patched and the database not patched as well. This should not be checked by default and the "Apply patch" button should be disabled unless box is checked.

For your own safety do this and keep it in there. Open "admin/main/patch_apply.tpl" and at the top of the file insert this

Code:
<script type="text/javascript"> //<![CDATA[ {literal} var agree_checkboxes = ['try_all']; function check_agree(form) { for (var i = 0; i < agree_checkboxes.length; i++) { var c = form.elements.namedItem(agree_checkboxes[i]); if (c && !c.checked) return false; } return true; } function patch_agree(o) { var valid = true; for (var i = 0; i < agree_checkboxes.length && valid; i++) { var c = o.form.elements.namedItem(agree_checkboxes[i]); if (c && !c.checked) valid = false; } $('input[name=submit]').button(valid ? 'enable' : 'disable') return true; } {/literal} //]]> </script>

then find

Code:
<form action="patch.php" method="post">

and replace with

Code:
<form action="patch.php" method="post" onsubmit="javascript: return check_agree(this);">

then find

Code:
<label for="try_all">{$lng.lbl_tick_here_to_apply_patch}</label><input type="checkbox" id="try_all" name="try_all" /><br />

and replace with

Code:
<label for="try_all">{$lng.lbl_tick_here_to_apply_patch}</label><input type="checkbox" id="try_all" name="try_all" onclick="javascript: patch_agree(this);" /><br />

then find

Code:
<input type="submit" value="{$lng.lbl_apply_patch|strip_tags:false|escape}" />

and replace with

Code:
<input type="submit" name="submit" value="{$lng.lbl_apply_patch|strip_tags:false|escape}"{if $could_not_patch ne "0" and $mode ne "sql"} disabled="disabled"{/if} />

Done.

Come on QT, this is your own code, just copy/paste, and you can't implement it to something as important as running a patch

Thank you Steve, we will take it into consideration for future X-Cart releases.
__________________
Sincerely yours,
Sergey Fomin
X-Cart team
Chief support group engineer

===

Check this out. Totally revamped X-Cart hosting
http://www.x-cart.com/hosting.html

Follow us:
https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart

The following 2 users thank seyfin for this useful post:
cflsystems (10-07-2011), Rplantz (10-04-2011)
  #69  
Old 10-19-2011, 01:18 PM
  kustomrides's Avatar 
kustomrides kustomrides is offline
 

eXpert
  
Join Date: Apr 2005
Location: Southern California
Posts: 212
 

Default Re: X-Cart v4.4.4 released

Quote:
Originally Posted by cflsystems
It is best to patch manually then restoring original files - if you made undocumented changes to them you may not be able to apply this changes again after upgrade. Just run the upgrade - it will show a report first and will not modify any files. If you get anything else than "OK" or "Already patched" do not proceed further. First you need to manually patch files and then you can run the upgrade again

That's my preferred method, too, owing to a number of modified files. Easier to manually patch than start fresh and reintegrate mods. If all else fails have a copy of the complete 4.4.4 version on hand for comparison.
__________________
x-cart Gold 4.7.4
RedHat Linux 7.2; Pearl 5.20.2; PHP 5.5.26; MySQL 5.6.27, server 5.1.54;
Ruby 2.1.5p273; Python 3.4.2;

Several mods in menu and skin, BSCE shipping-per-product, CDSEO Pro
  #70  
Old 10-19-2011, 01:46 PM
  Ana's Avatar 
Ana Ana is offline
 

Senior Member
  
Join Date: Aug 2004
Location: Hurricane Alley, South Florida USA
Posts: 186
 

Thumbs up Re: X-Cart v4.4.4 released

Quote:
Originally Posted by cflsystems
So got my first 4.4.3->4.4.4 live upgrade - few files to manually patch and no problems at all with the upgrade. Smooth and it looks like all works just fine. Couple new shipping methods were activated after the upgrade but I assume these were newly added shipping methods by the upgrade (still they should be added as disabled). Over all positive experience with the upgrade. Looks like 4.4.4 is way better compare to 4.4.3, I even think a little bit faster. One warning for anyone using jquery from CDN (like Google and others) - make sure you are loading 1.6.2 or OPC and and some admin features depending on it will not work

Yes, just found those shipping options activated today, believe it or not. But I agree, Steve, this one went the smoothest of them all in the 7 years I've been doing it.

Well done, Qualiteam. Glad to see the improvement.

Ana
__________________
"Real knowledge is to know the extent of one's ignorance."-- Confucius

X-Cart 4.4.4
MySQL 5.0.92
Apache/2.0.64 (Unix)
PHP 5.3.6
CentOS 5.5

MODS:
Template Mela- Theme XCT010002
Altered Cart- CheckoutOne
BCS Engineering- Back In Stock Notification
X-Cart Mods- Thumbnail Candy
X-Cart Mods-Advanced Shop Closed
Google Site Search
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 02:58 PM.

   

 
X-Cart forums © 2001-2020