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)
-   -   module version "" does not match the core version ("5.3") (https://forum.x-cart.com/showthread.php?t=74640)

lse_coinify 11-08-2016 03:42 AM

module version "" does not match the core version ("5.3")
 
Hello,
The Coinify's module to accept bitcoin payments on x-cart was working fine with 5.2, but apparently 5.3 is breaking backwards compatibility. (Source: https://github.com/CoinifySoftware/x-cart )

When I am trying to install it I have this error:
PHP Code:

[errorNov 08 2016 10:21:42module version "" does not match the core version ("5.3"


I have tried to fix it by looking at the documentation, but I still don't know what is wrong in the source code and what should be updated.

Can anybody help me?

qualiteam 11-08-2016 08:31 PM

Re: module version "" does not match the core version ("5.3")
 
You should change the version returned by getMajorVersion() method:
https://github.com/CoinifySoftware/x-cart/blob/master/classes/XLite/Module/Coinify/Coinify/Main.php

Also, the 5.3 version uses a different template engine, so you should adapt the template too:
https://github.com/CoinifySoftware/x-cart/blob/master/skins/admin/en/modules/Coinify/Coinify/config.tpl

Also, please check this article:
http://devs.x-cart.com/en/migration_guides/updating_modules_from_5.2_to_5.3_branch.html

lse_coinify 11-09-2016 12:25 AM

Re: module version "" does not match the core version ("5.3")
 
Quote:

Originally Posted by qualiteam
You should change the version returned by getMajorVersion() method:
https://github.com/CoinifySoftware/x-cart/blob/master/classes/XLite/Module/Coinify/Coinify/Main.php

Also, the 5.3 version uses a different template engine, so you should adapt the template too:
https://github.com/CoinifySoftware/x-cart/blob/master/skins/admin/en/modules/Coinify/Coinify/config.tpl

Also, please check this article:
http://devs.x-cart.com/en/migration_guides/updating_modules_from_5.2_to_5.3_branch.html


I have tone all of them in the development branch
https://github.com/CoinifySoftware/x-cart/blob/develop/classes/XLite/Module/Coinify/Coinify/Main.php

But as you can see it is still not accepted... can anybody help? I am super confused by this change. :(

qualiteam 11-09-2016 01:10 AM

Re: module version "" does not match the core version ("5.3")
 
Your getMinorRequiredCoreVersion() method returns a wrong value: it should return the third digit of your module version, and at the moment it returns the first two digits.

lse_coinify 11-09-2016 03:39 AM

Re: module version "" does not match the core version ("5.3")
 
Quote:

Originally Posted by qualiteam
Your getMinorRequiredCoreVersion() method returns a wrong value: it should return the third digit of your module version, and at the moment it returns the first two digits.



Something like:

PHP Code:

/**
     * Get the required version of Core
     *
     * @return string
     */
    
public static function getMinorRequiredCoreVersion()
    {
        return 
'1';
    } 


It still does not work! :(

qualiteam 11-10-2016 11:20 PM

Re: module version "" does not match the core version ("5.3")
 
It looks like XC5 has cached the value returned by this method.
Try to remove information about previous module versions from the database and redeploy the store to make XC5 re-read this data from your module:
Code:

delete from xc_modules where author='Coinify';

lse_coinify 11-11-2016 12:43 AM

Re: module version "" does not match the core version ("5.3")
 
We have decided to drop x-cart support since nobody is using it anymore, and to waste time to update the module to 5.2 is not worth it.

Thanks anyway for your help.

qualiteam 11-11-2016 02:13 AM

Re: module version "" does not match the core version ("5.3")
 
It is sad that X-Cart users don't use your module.
Perhaps, it is because only a few were aware of it - I don't see the module listed on our marketplace website: https://market.x-cart.com/addons

Anyway, we will be happy to see your module if you ever decide to return to the X-Cart community!


All times are GMT -8. The time now is 10:17 AM.

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