Jump to content

Re-installing issue of a module


Tom1884

Recommended Posts

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 by Tom1884 (see edit history)
Link to comment
Share on other sites

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

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 by Tom1884 (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...