vendredi 10 juillet 2015

Install and Uninstall module prestashop gets errors

Install and Uninstall prestashop module errors


Install module prestashop errors


You created a module and you get an error message when installing it, try to call your hooks register after the parent::install method
 
if (!parent::install())
return false;
Try to put this code at the beginning of the install function, if it doesn't solve your problem, try to debug your hook functions  and see if thay returns false, in this case, you shouldd correct the errors in those functions, To debug, you can use var_dump function

For example:

var_dump($this->registerHook('leftColumn'));exit;
 

Uninstall prestashop module problems

You have created a prestashop module and when your tried to uninstall it for testing purpose or others, you got prestashop errors: something related to remove override files error, this should be because prestashop failed to remove module override files, this can be the case when you manually removed this files.
So after that don't forget to remove cache/class_index.php file, which contains the prestashop classe locations, so after removing it, prestashop recreate it with the new classe paths.

If you get

The following module(s) could not be uninstalled properly:

Try to remove your override module folder, uninstall you module and restore your override folder and try to reinstall your module.
After try to remove cache/class_index.php and try to uninstall the module another once.

Hope this helping prestashop users to surpass this embarrassing problem


0 commentaires :

Enregistrer un commentaire