Tom1884 Posted March 5, 2017 Share Posted March 5, 2017 (edited) Trying to make this module work, I uninstalled it.Now the same Prestashop version (1.5.3.1), where it was installed one second ago, can't re-install it.Error message says "Not allowed for this versione of Prestashop"!!!How can I fix it and re-install it?Thank you Edited March 5, 2017 by Tom1884 (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted March 6, 2017 Share Posted March 6, 2017 You'll need to edit the PHP file of the module, look for the compatibility variable in the __construct function and then change it so the minimum version is 1.5.3.1 or earlier. Link to comment Share on other sites More sharing options...
Tom1884 Posted March 6, 2017 Author Share Posted March 6, 2017 You'll need to edit the PHP file of the module, look for the compatibility variable in the __construct function and then change it so the minimum version is 1.5.3.1 or earlier. Thanks you, but can't find it: function __construct() { $this->name = 'homefeatured'; $this->tab = 'front_office_features'; $this->version = '0.9'; $this->author = 'PrestaShop'; $this->need_instance = 0; parent::__construct(); $this->displayName = $this->l('Featured Products on the homepage'); $this->description = $this->l('Displays Featured Products in the middle of your homepage.'); } Link to comment Share on other sites More sharing options...
rocky Posted March 6, 2017 Share Posted March 6, 2017 Weird. I have no idea what would cause that error message then. You'll need to find the code that displays that error so you can figure out what causes it. Link to comment Share on other sites More sharing options...
Tom1884 Posted March 6, 2017 Author Share Posted March 6, 2017 (edited) Ok, I removed from classes/module/Module.php the line (start from 194) that control versions, than I could re-install. if (version_compare(PS_VERSION, $this->ps_versions_compliancy['min']) < 0 || version_compare(PS_VERSION, $this->ps_versions_compliancy['max']) > 0) { $this->_errors[] = $this->l('The version of your module is not compliant with your PrestaShop version.'); return false; Edited April 28, 2017 by Tom1884 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now