1

i just recently learned that i must unistall the module before delete it from modules folder ( "I thought that the deleting is the unistall" ), so can you please give a solution to delete the disabled modules from database ? and is that make a problem?

3

Yes, you can get errors when you delete the module files without disabling it first. It's best to completely uninstall the module, which allows the module to clean up after itself (eg. delete configuration from the database). After that, you can safely delete the files.

If you already deleted the files, the easiest way to get rid of bits and pieces left in the database, is to restore the files (download the module again and put the files back where they were), follow the uninstall process, and delete the files. Make sure you download the exact same version of the module you had installed earlier.

So how do you know which module version you had? Ideally you are already using a version control system (such as Git) to manage your code, so you can always look back in the history to find out which module version you were using. If you don't have version control, you can try to find the version number in the database as described in this answer. As a last resort, try to remember when you installed or last updated the module and look in the module's releases list to find a version close to that date.

  • Ok ! Thank you marc , is there any way that let me detect the version of the module ? – MohK Dec 9 '16 at 16:09
  • I have problem in File (Field) Paths module , it display "&" as "&amp" so I think the problem is in deleted modules ??? – MohK Dec 9 '16 at 16:12
  • I'm sorry, I can't tell you if that was caused by the missing module files. I don't know the module and your site well enough to answer that. See the updated answer for instructions to find the module number. – marcvangend Dec 9 '16 at 21:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.