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

An issue when updating the module

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 08-11-2015, 08:41 AM
 
Danil Danil is offline
    
Join Date: Aug 2015
Posts: 2
 

Post An issue when updating the module

I have installed the module (e.g. version 5.2.0) and I want to upgrade it to the new version (e.g. version 5.2.1)

Some files (that were present in the old version) is missing in the new version of the module.
It is assumed that they will be removed during the upgrading.

But, when I try to install the new version of the module with 'Upload add-on' button, it turns out that the old files were not removed.

And the second time (when a new version (5.2.1) of the module is already installed and I install it one more time) they are removed as expected.

It seems that an issue in the XLite\Upgrade\Entry\Module\Uploaded class. The 'getModuleInstalled' function searches for the module in the database using a new version (that not yet installed) and finds it only during re-installation (when a new version (5.2.1) of the module is already installed) so the 'loadHashesForInstalledFiles' function returns proper hashes.

Can someone tell me if this is a bug or is there any trick to force the files to be deleted the first time?
__________________
X-Cart Trial 5.2.6
Reply With Quote
  #2  
Old 08-11-2015, 08:46 AM
 
Danil Danil is offline
    
Join Date: Aug 2015
Posts: 2
 

Exclamation An issue when updating the module

I have installed the module (e.g. version 5.2.0) and I want to upgrade it to the new version (e.g. version 5.2.1)

Some files (that were present in the old version) is missing in the new version of the module.
It is assumed that they will be removed during the upgrading.

But, when I try to install the new version of the module with 'Upload add-on' button, it turns out that the old files were not removed.

And the second time (when a new version (5.2.1) of the module is already installed and I install it one more time) they are removed as expected.

It seems that an issue in the XLite\Upgrade\Entry\Module\Uploaded class. The 'getModuleInstalled' function searches for the module in the database using a new version (that not yet installed) and finds it only during re-installation (when a new version (5.2.1) of the module is already installed) so the 'loadHashesForInstalledFiles' function returns proper hashes.

Can someone tell me if this is a bug or is there any trick to force the files to be deleted the first time?
__________________
X-Cart Trial 5.2.6
Reply With Quote
  #3  
Old 08-12-2015, 05:02 AM
  seyfin's Avatar 
seyfin seyfin is offline
 

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

Default Re: An issue when updating the module

Please report this issue to our public bug-tracker, our developers will look into the possible bug. In your bug-report, please provide us with step-by-step instructions how to replicate this issue in a stock X-Cart v5.2.6, and provide us with your customer module, that can be used to replicate the issue.

Thank you.
__________________
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
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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:28 AM.

   

 
X-Cart forums © 2001-2020