X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   An issue when updating the module (https://forum.x-cart.com/showthread.php?t=72570)

Danil 08-11-2015 08:41 AM

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?

Danil 08-11-2015 08:46 AM

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?

seyfin 08-12-2015 05:02 AM

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.


All times are GMT -8. The time now is 04:40 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.