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

Attention users of X-Cart vv.4.0.x - 4.7.1

 
Reply
   X-Cart forums > News and Announcements
 
Thread Tools
  #41  
Old 04-29-2015, 01:15 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

I always patch manually by downloading the files from the server and comparing with the new files using a program called Beyond Compare which makes it pretty simple.
Reply With Quote

The following user thanks Jon for this useful post:
totaltec (04-29-2015)
  #42  
Old 04-29-2015, 01:17 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Quote:
Originally Posted by Jon
I always patch manually by downloading the files from the server and comparing with the new files using a program called Beyond Compare which makes it pretty simple.
Me too. I use WinMerge every time.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
Jon (04-29-2015)
  #43  
Old 04-29-2015, 10:22 PM
 
aim aim is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 928
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Quote:
Originally Posted by herber@wirehub.nl
Hi Aim,

- Why is in the 4.6.6 > 4.7.2 upgrade, the addons.lst ignored when upgrading? All the files listed in there, are not being patched
- If I add all lines from addons.lst to file.lst, the files are patched, but it seems the modules are not upgraded very good,

I have reuploaded the upgrade packs with changes in include/patch.php file.

Please try again.


Quote:
Originally Posted by herber@wirehub.nl
see my screenshot from my previous post.


Could try to remove X-Cart cache after the upgrade
https://help.x-cart.com/index.php?title=X-Cart:Advanced_Tools#Clear_Templates.2FX-Cart_Cache
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote
  #44  
Old 04-29-2015, 10:34 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

I don't know how this worked before but the 4.2.3 patch break 4.2.2 cart. Just below the changes in func.cart.php the code calls for

$pzone["zoneid"]

which does not exist. The array for which this applies is a simple array without keys. The cart will not return any shipping rates based on user-defined zones.

replacing

$pzone["zoneid"]

with

$pzone

makes it work again.

Or just make the patch "func_query" instead of "func_query_column"....

Just another sleepless night....
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following 2 users thank cflsystems for this useful post:
aim (04-29-2015), gb2world (05-01-2015)
  #45  
Old 04-30-2015, 12:06 AM
  zone1creative's Avatar 
zone1creative zone1creative is offline
 

eXpert
  
Join Date: Jan 2009
Location: Hove, UK
Posts: 341
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

I have patched 4.4 and 4.6 store without issue.
But I am concerned about the 4.5 patch.

It seems to be very different to the other two patches.

func.perms.php does not exists currently
and func.backoffice.php 's first line includes a class that does not exists and is not available in the patch.

require_once $xcart_dir . '/include/classes/class.XCSignature.php';


I am trying to patch a 4.5.3 store with 4.5.5. Will there be a patch release for this branch?
__________________
Pinakin Patel
Zone1 Creative Ltd
http://www.zone1creative.co.uk/
Reply With Quote
  #46  
Old 04-30-2015, 12:14 AM
  zone1creative's Avatar 
zone1creative zone1creative is offline
 

eXpert
  
Join Date: Jan 2009
Location: Hove, UK
Posts: 341
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

just seen Ildar's reply earlier

The security-patch-2015-04-28_4.5.4.tgz patch should be applied for the previous 4.5.x versions.

Quote:
Originally Posted by zone1creative
I have patched 4.4 and 4.6 store without issue.
But I am concerned about the 4.5 patch.

It seems to be very different to the other two patches.

func.perms.php does not exists currently
and func.backoffice.php 's first line includes a class that does not exists and is not available in the patch.

require_once $xcart_dir . '/include/classes/class.XCSignature.php';


I am trying to patch a 4.5.3 store with 4.5.5. Will there be a patch release for this branch?
__________________
Pinakin Patel
Zone1 Creative Ltd
http://www.zone1creative.co.uk/
Reply With Quote

The following user thanks zone1creative for this useful post:
aim (04-30-2015)
  #47  
Old 04-30-2015, 12:15 AM
  zone1creative's Avatar 
zone1creative zone1creative is offline
 

eXpert
  
Join Date: Jan 2009
Location: Hove, UK
Posts: 341
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Can I just give credit to KDiff3 http://kdiff3.sourceforge.net/

This file/directory comparison tool is a life saver when it comes to these patch updates.
__________________
Pinakin Patel
Zone1 Creative Ltd
http://www.zone1creative.co.uk/
Reply With Quote

The following user thanks zone1creative for this useful post:
aim (04-30-2015)
  #48  
Old 04-30-2015, 12:46 AM
  zone1creative's Avatar 
zone1creative zone1creative is offline
 

eXpert
  
Join Date: Jan 2009
Location: Hove, UK
Posts: 341
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

I am patching xcart 4.5.3 using the security patch 4.5.4

The func.core.php came up with the following error and causing a white screen.

Quote:
Fatal error: Cannot redeclare func_data_cache_write() (previously declared in /home/paragonp/public_html/check_requirements.php:165) in /home/paragonp/public_html/include/func/func.core.php on line 2276
Using KDiff3 I spotted that the old file had
Code:
if (!function_exists('func_data_cache_write')) { function func_data_cache_write($fp, $prefix, $data) {
while the new one just declares the function.

Code:
function func_data_cache_write($fp, $prefix, $data) { // {{{
I guess the fix is to enclose the function declaration with the if exists statement.


__________________
Pinakin Patel
Zone1 Creative Ltd
http://www.zone1creative.co.uk/
Reply With Quote
  #49  
Old 04-30-2015, 01:05 AM
  zone1creative's Avatar 
zone1creative zone1creative is offline
 

eXpert
  
Join Date: Jan 2009
Location: Hove, UK
Posts: 341
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Leading on from the previous post you will need to also update the declaration of the function

if (!function_exists('func_html_entity_decode')) {

too

However, after this you just get a blank white page.

Any ideas Xcart Devs?
__________________
Pinakin Patel
Zone1 Creative Ltd
http://www.zone1creative.co.uk/
Reply With Quote
  #50  
Old 04-30-2015, 01:16 AM
 
aim aim is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 928
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Quote:
Originally Posted by zone1creative
I am patching xcart 4.5.3 using the security patch 4.5.4

The func.core.php came up with the following error and causing a white screen.

Using KDiff3 I spotted that the old file had
Code:
if (!function_exists('func_data_cache_write')) { function func_data_cache_write($fp, $prefix, $data) {
while the new one just declares the function.

Code:
function func_data_cache_write($fp, $prefix, $data) { // {{{
I guess the fix is to enclose the function declaration with the if exists statement.



Quote:
Leading on from the previous post you will need to also update the declaration of the function

if (!function_exists('func_html_entity_decode')) {

too

However, after this you just get a blank white page.

Any ideas Xcart Devs?

You are right.
xcart_4_5_4/include/func/func.core.php does not have the code "if (!function_exists('func_data_cache_write')) {"



I suggest you to not overwrite completely the original
your_xcart_4_5_3/include/func/func.core.php
with the
security-patch-2015-04-28_4.5.4.tgz-xcart/include/func/func.core.php file

The safe ways are
https://help.x-cart.com/index.php?title=X-Cart:Applying_Patches#To_apply_a_patch_via_X-Cart_Admin_area
for 4.5.4/4.5.5 versions

https://help.x-cart.com/index.php?title=X-Cart:To_apply_a_patch_manually
for 4.5.0/4.5.1/4.5.2/4.5.3 versions
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote

The following user thanks aim for this useful post:
zone1creative (04-30-2015)
Reply
   X-Cart forums > News and Announcements


Thread Tools

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 05:27 AM.

   

 
X-Cart forums © 2001-2020