solved issue deleting a module

blindmime
@blindmime
12 years ago
772 posts
While attempting to delete modules, I deleted a module upon which another module is dependent. This is OK, because I want to delete that module as well. However, when I come to that module's info tab I see this message: "This module has required dependencies that are not met, and cannot be enabled" and no option to delete it.
updated by @blindmime: 02/03/14 12:42:52PM
michael
@michael
12 years ago
7,800 posts
Whats the module combo that I can use to see it happen?
blindmime
@blindmime
12 years ago
772 posts
img upload and tinymce embed
brian
@brian
12 years ago
10,149 posts
blindmime:
While attempting to delete modules, I deleted a module upon which another module is dependent. This is OK, because I want to delete that module as well. However, when I come to that module's info tab I see this message: "This module has required dependencies that are not met, and cannot be enabled" and no option to delete it.

Is this an older version of the core? This was fixed in version 5.1.4.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
12 years ago
772 posts
5.1.6
brian
@brian
12 years ago
10,149 posts
Hmm - yeah that really should not be an issue - I'm looking at the code here and I believe it is correct. I'll see if I can duplicate it.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
12 years ago
10,149 posts
Make sure you have disabled the module (i.e. uncheck the "active" checkbox and save) - you cannot delete a module unless it is inactive.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
12 years ago
772 posts
Yes, that's how I've done it. I deleted the first module that way. But, as I said in the first message here, when I go to the second module to delete it, it has an error message saying it's missing a dependent module (the first module I deleted) and I don't have a way to delete it in the control panel. I've subsequently deleted it via FTP, but thought I'd bring it up here so you can take a look.
michael
@michael
12 years ago
7,800 posts
go to:
yoursite.com/marketplace/system_update

to make sure the system is up to date. Run the integrity check to make sure the site is in order:

yoursite.com/core/integrity_check

Install 'jrEmbed' module,
* activate module.

Install 'jrUpimg' module,
* activate module.

-- trying to recreate issue ---
* deactivate tinyMCE embed button.
* delete module - save changes.

Go to upimg module's info tab, it reads "This module has required dependencies that are not met, and cannot be enabled"

(this seams to be the problem)

back to marketplace, install jrEmbed.
* make active.

on upimg INFO tab, "module active" now appears.
* deactvate
* delete - save changes.

on embed module INFO tab,
* deactvate
* delete - save changes.

-------------------
That way works. I can see its a bit of a hassle though, so have added a tracker here:
https://www.jamroom.net/the-jamroom-network/tracker/269/add-module-deactivate-and-delete-to-modules-that-have-dependencies

Thanks.
brian
@brian
12 years ago
10,149 posts
blindmime:
Yes, that's how I've done it. I deleted the first module that way. But, as I said in the first message here, when I go to the second module to delete it, it has an error message saying it's missing a dependent module (the first module I deleted) and I don't have a way to delete it in the control panel. I've subsequently deleted it via FTP, but thought I'd bring it up here so you can take a look.

I hear you - I'm not sure why you are seeing that. I'm checking this today to see if I can find a way to replicate it on 5.1.6.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
12 years ago
10,149 posts
I found the root cause of this and have it fixed for jrCore 5.1.8 - sorry for the hassle.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags