Posted on: 07/17/03 04:39am
By: raffles
Hi!
Is it only in my installations (local and on the server) that I only can uninstall plugins when they are "activated"?
The reason for this seems to be that in line 79 of lib.plugins.php the function for deinstallation cannot be found as the functions.inc of deactivated plugins seems not to be included (wherever this is made or not made).
Is that normal or a mistake? I thought usually plugins should first be deactivated before deinstallation.
regards
Daniel
P.S. my system runs 1.3.7 SR2 with:
plugins:
staticpages 1.2
menu 1.61
birthdays 1.0
lists 0.3
external 1.0
contact 1 (which claims to be 1.1 on the download)
blocks:
themechanger
calendar
groupaccess
emailchecker
Re:uninstall plugin error?
Posted on: 07/17/03 09:06am
By: Anonymous (Mark)
I experience the same thing where I can uninstall plugins without ever deactivating them. The plugins I have installed include a check for this, but it\'s never executed. I was trying to figure out if it was my installation or a bug.
Re:uninstall plugin error?
Posted on: 07/17/03 10:49am
By: Dirk
The problem is that the uninstall function is (usually) in the plugin\'s functions.inc - but that file is not loaded when the plugin is not active.
I guess the we need to check for this in the plugin editor and load functions.inc there, if necessary ... Someone would need to submit this as a bug report.
bye, Dirk
Re:uninstall plugin error?
Posted on: 07/23/03 03:42pm
By: Dirk
[QUOTE BY= Dirk]I guess the we need to check for this in the plugin editor and load functions.inc there, if necessary ...[/QUOTE]
I just noticed that we\'re already doing this - so it shouldn\'t be a problem to uninstall a plugin that is not active.
Which plugin is causing you problems?
bye, Dirk
Re:uninstall plugin error?
Posted on: 07/23/03 06:50pm
By: Anonymous (Mark)
The plugins uninstall okay when not active. They also uninstall when they are still active. I think the problem is the latter point. I tried this out on external pages, file manager, and lists.
Re:uninstall plugin error?
Posted on: 07/24/03 03:25am
By: Dirk
[QUOTE BY= Mark]They also uninstall when they are still active. I think the problem is the latter point.[/QUOTE]
Hmm, I don\'t see this as a problem. Why should you be forced to deactivate the plugin first? If you decide to uninstall the plugin, it should let you do that.
bye, Dirk
Re:uninstall plugin error?
Posted on: 07/24/03 05:52am
By: raffles
Hi!
Well for me they don\'t uninstall when they are not active (but maybe that\'s my weired installation). They ask for the uninstall function which is in the functions.inc which is not included as the plugin is not active.
But I think the programmers wanted admins to disable first before uninstlling. I mean ... if this is not wanted any more then this should be made clear and not just forgotten or overlloked. Especially as the universal plugin also claims to work like this.
regards
Daniel
Re:uninstall plugin error?
Posted on: 07/24/03 06:28am
By: Dirk
As I wrote above, you should be able to uninstall a plugin at any time - no matter if it\'s active or not. And that does work in Geeklog 1.3.8, AFAICS.
However, you are running 1.3.7 and, as you noticed, you can\'t uninstall plugins which are not active there because it can\'t find the uninstall function. That has been fixed in Geeklog 1.3.8.
bye, Dirk