Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Plugins which are uninstalled that still have files on the website to be Deleted - Fix terminology with Uninstall and Delete to prevent Confusion #1099

Closed
remyKobolski opened this issue Sep 27, 2021 · 7 comments
Assignees
Labels
Feature Issues that describe new features.
Milestone

Comments

@remyKobolski
Copy link

Some plugins allow access after de-installing, resulting in weird errors.
This is seen in FAQ- and Faq Manager -plugin. They generate a sql error, since the tables are not present any more.
Geeklog shows no links to de-installed plugins, but all code is still present and accessible by entering manually the appropriate hyperlink.

@eSilverStrike
Copy link
Member

Under the Plugins page you can delete individual plugins. This removes all tables and database records related to the plugin. Geeklog does not delete the files for the plugin. You currently have to do that manually.

When plugins are disabled or deleted from the database the plugins own code in its funcitons.inc (which is the first file a plugin should include in most cases when a page is requested) is supposed to check to see if itself is installed and enabled on Geeklog, if not then it is suppose to exit gracefully.

It sounds like the FAQ and FAQ Manager plugin do not do this properly.

@eSilverStrike
Copy link
Member

Maybe we should add a checkbox option for delete under "Uninstalled Plugins" so when someone deletes a plugin it also deletes the files. I will mark this as a feature request for this.

Looking at the plugins page, the "Plugin List" Delete option and column should probably be renamed to Uninstall to make it more clear on what you are actually doing.

@eSilverStrike eSilverStrike added the Feature Issues that describe new features. label Sep 29, 2021
@eSilverStrike eSilverStrike added this to the 2.2.2 milestone Sep 29, 2021
@remyKobolski
Copy link
Author

remyKobolski commented Sep 29, 2021 via email

@eSilverStrike
Copy link
Member

Plugins do have an enabled/disabled state though when plugins are disabled you would not be able to use the Geeklog Configuration page to adjust any of the disabled plugins settings. Just like when a plugin is uninstalled though if a plugin is disabled and someone visits one of the plugin pages, the plugin itself needs to check for this and handle it gracefully (as the page request is handled directly by the page and not routed through Geeklog itself first.

@remyKobolski
Copy link
Author

remyKobolski commented Sep 29, 2021 via email

@eSilverStrike
Copy link
Member

If you would like this feature you can make a separate feature request for it. It should be feasible without breaking plugin compatibility but more research would have to be done.

@eSilverStrike eSilverStrike self-assigned this Jan 6, 2022
@eSilverStrike eSilverStrike changed the title De-installing plugin still allows access Allow Plugins which are uninstalled that still have files on the website to be Deleted - Fix terminology with Uninstall and Delete to prevent Confusion Jan 6, 2022
eSilverStrike added a commit that referenced this issue Jan 6, 2022
…on between uninstall and delete of plugins

For feature #1099
@eSilverStrike
Copy link
Member

Okay so I have fixed the confusion of using delete instead of uninstall on the plugins page.

If the admin has plugin.install and plugin.upload access then they will also be able to delete the default plugin files and directories found in the directories:

plugins/plugin_name
public_html/plugins/plugin_name
public_html/admin/plugins/plugin_name

The plugin has to be uninstalled first before you can delete the files. The plugin delete is found in the Plugins Uninstalled list.

If the plugin has files outside these directories then they will not be deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Issues that describe new features.
Projects
None yet
Development

No branches or pull requests

2 participants