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

module version "" does not match the core version ("5.3")

 
Closed Thread
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-08-2016, 03:42 AM
 
lse_coinify lse_coinify is offline
 

Newbie
  
Join Date: Nov 2016
Posts: 4
 

Default 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?
__________________
X-Cart 5.2
Coinify Bitcoin Module
  #2  
Old 11-08-2016, 08:31 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
  #3  
Old 11-09-2016, 12:25 AM
 
lse_coinify lse_coinify is offline
 

Newbie
  
Join Date: Nov 2016
Posts: 4
 

Default 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.
__________________
X-Cart 5.2
Coinify Bitcoin Module
  #4  
Old 11-09-2016, 01:10 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
  #5  
Old 11-09-2016, 03:39 AM
 
lse_coinify lse_coinify is offline
 

Newbie
  
Join Date: Nov 2016
Posts: 4
 

Default 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!
__________________
X-Cart 5.2
Coinify Bitcoin Module
  #6  
Old 11-10-2016, 11:20 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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';
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
  #7  
Old 11-11-2016, 12:43 AM
 
lse_coinify lse_coinify is offline
 

Newbie
  
Join Date: Nov 2016
Posts: 4
 

Default 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.
__________________
X-Cart 5.2
Coinify Bitcoin Module
  #8  
Old 11-11-2016, 02:13 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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!
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions

The following user thanks qualiteam for this useful post:
cherie (11-18-2016)
Closed Thread
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

   

 
X-Cart forums © 2001-2020